Searched refs:trie (Results 1 – 9 of 9) sorted by relevance
/linux-6.3-rc2/kernel/bpf/ |
A D | lpm_trie.c | 325 if (trie->n_entries == trie->map.max_entries) { in trie_update_elem() 336 trie->n_entries++; in trie_update_elem() 348 slot = &trie->root; in trie_update_elem() 379 trie->n_entries--; in trie_update_elem() 422 trie->n_entries--; in trie_update_elem() 456 trim = &trie->root; in trie_delete_elem() 480 trie->n_entries--; in trie_delete_elem() 561 trie = bpf_map_area_alloc(sizeof(*trie), NUMA_NO_NODE); in trie_alloc() 562 if (!trie) in trie_alloc() 569 trie->max_prefixlen = trie->data_size * 8; in trie_alloc() [all …]
|
/linux-6.3-rc2/fs/unicode/ |
A D | utf8-norm.c | 318 if (*trie & NEXTBYTE) { in utf8nlookup() 329 offset = trie[offlen]; in utf8nlookup() 332 offset |= trie[offlen]; in utf8nlookup() 334 trie += offset; in utf8nlookup() 337 node = (*trie & TRIENODE); in utf8nlookup() 338 trie++; in utf8nlookup() 347 node = (*trie & LEFTNODE); in utf8nlookup() 348 trie += offlen + 1; in utf8nlookup() 355 trie++; in utf8nlookup() 365 if (LEAF_CCC(trie) == DECOMPOSE && LEAF_STR(trie)[0] == HANGUL) in utf8nlookup() [all …]
|
A D | mkutf8data.c | 2709 utf8trie_t *trie; in utf8nlookup() local 2723 if (*trie & NEXTBYTE) { in utf8nlookup() 2734 offset = trie[offlen]; in utf8nlookup() 2737 offset |= trie[offlen]; in utf8nlookup() 2739 trie += offset; in utf8nlookup() 2742 node = (*trie & TRIENODE); in utf8nlookup() 2743 trie++; in utf8nlookup() 2753 trie += offlen + 1; in utf8nlookup() 2760 trie++; in utf8nlookup() 2770 if (LEAF_CCC(trie) == DECOMPOSE && LEAF_STR(trie)[0] == HANGUL) in utf8nlookup() [all …]
|
/linux-6.3-rc2/Documentation/networking/ |
A D | fib_trie.rst | 4 LC-trie implementation notes 14 trie node or tnode 40 the trie is kept level balanced moving, under certain conditions, the 68 straightforward trie lookup. 71 Inserts a new leaf node in the trie. This is bit more complicated than 73 level compression algorithm on part of the trie. 79 The key function for the dynamic trie after any change in the trie 80 it is run to optimize and reorganize. It will walk the trie upwards 102 This walks the full trie (using nextleaf()) and searches for empty 108 entire trie for each prefix length. In comparison, fib_hash is organized [all …]
|
/linux-6.3-rc2/net/ipv4/ |
A D | fib_trie.c | 1218 struct trie *t = (struct trie *)tb->tb_data; in fib_table_insert() 1447 struct trie *t = (struct trie *) tb->tb_data; in fib_table_lookup() 1714 struct trie *t = (struct trie *) tb->tb_data; in fib_table_delete() 1842 struct trie *t = (struct trie *)tb->tb_data; in fib_trie_free() 1959 struct trie *t = (struct trie *)tb->tb_data; in fib_table_flush_external() 2028 struct trie *t = (struct trie *)tb->tb_data; in fib_table_flush() 2114 struct trie *t = (struct trie *)tb->tb_data; in __fib_info_notify_update() 2209 struct trie *t = (struct trie *)tb->tb_data; in fib_table_notify() 2250 struct trie *t = (struct trie *)tb->tb_data; in __trie_free_rcu() 2353 struct trie *t = (struct trie *)tb->tb_data; in fib_table_dump() [all …]
|
/linux-6.3-rc2/drivers/net/wireguard/ |
A D | allowedips.c | 111 static struct allowedips_node *find_node(struct allowedips_node *trie, u8 bits, in find_node() argument 114 struct allowedips_node *node = trie, *found = NULL; in find_node() 149 static bool node_placement(struct allowedips_node __rcu *trie, const u8 *key, in node_placement() argument 153 struct allowedips_node *node = rcu_dereference_protected(trie, lockdep_is_held(lock)); in node_placement() 181 static int add(struct allowedips_node __rcu **trie, u8 bits, const u8 *key, in add() argument 189 if (!rcu_access_pointer(*trie)) { in add() 196 connect_node(trie, 2, node); in add() 199 if (node_placement(*trie, key, cidr, bits, &node, lock)) { in add() 213 down = rcu_dereference_protected(*trie, lockdep_is_held(lock)); in add() 228 connect_node(trie, 2, newnode); in add() [all …]
|
/linux-6.3-rc2/Documentation/bpf/ |
A D | map_lpm_trie.rst | 13 Internally, data is stored in an unbalanced trie of nodes that uses 26 The value type stored in the LPM trie can be any user defined type. 96 A userspace program can iterate through the entries in an LPM trie using 101 ``-ENOENT`` if ``cur_key`` is the last key in the trie, or negative 104 ``bpf_map_get_next_key()`` will iterate through the LPM trie elements 112 of LPM trie usage from userspace. The code snippets below demonstrate 118 The following BPF code snippet shows how to declare a new LPM trie for IPv4 157 LPM trie: 171 of an LPM trie:
|
/linux-6.3-rc2/Documentation/networking/devlink/ |
A D | devlink-dpipe.rst | 34 Level Path Compression trie (LPC-trie) in hardware.
|
/linux-6.3-rc2/Documentation/RCU/ |
A D | RTFP.txt | 159 Robert Olsson described an RCU-protected trie-hash combination 1539 ,Title="{TRASH}: A dynamic {LC}-trie and hash data structure" 1545 RCU-protected dynamic trie-hash combination. 1796 ,Title="{TRASH}: A dynamic {LC}-trie and hash data structure" 1804 RCU-protected dynamic trie-hash combination.
|
Completed in 29 milliseconds