Home
last modified time | relevance | path

Searched refs:allowedips_node (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/drivers/net/wireguard/
H A Dallowedips.c41 static void push_rcu(struct allowedips_node **stack, in push_rcu()
42 struct allowedips_node __rcu *p, unsigned int *len) in push_rcu()
59 container_of(rcu, struct allowedips_node, rcu) }; in root_free_rcu()
111 static struct allowedips_node *find_node(struct allowedips_node *trie, u8 bits, in find_node()
114 struct allowedips_node *node = trie, *found = NULL; in find_node()
132 struct allowedips_node *node; in lookup()
150 u8 cidr, u8 bits, struct allowedips_node **rnode, in node_placement()
154 struct allowedips_node *parent = NULL; in node_placement()
169 static inline void connect_node(struct allowedips_node __rcu **parent, u8 bit, struct allowedips_no… in connect_node()
175 static inline void choose_and_connect_node(struct allowedips_node *parent, struct allowedips_node *… in choose_and_connect_node()
[all …]
H A Dallowedips.h15 struct allowedips_node { struct
17 struct allowedips_node __rcu *bit[2]; argument
30 struct allowedips_node __rcu *root4; argument
31 struct allowedips_node __rcu *root6;
44 int wg_allowedips_read_node(struct allowedips_node *node, u8 ip[16], u8 *cidr);
H A Dnetlink.c100 struct allowedips_node *next_allowedip;
110 struct allowedips_node *allowedips_node = ctx->next_allowedip; in get_peer() local
123 if (!allowedips_node) { in get_peer()
160 allowedips_node = in get_peer()
162 struct allowedips_node, peer_list); in get_peer()
164 if (!allowedips_node) in get_peer()
175 list_for_each_entry_from(allowedips_node, &peer->allowedips_list, in get_peer()
180 family = wg_allowedips_read_node(allowedips_node, ip, &cidr); in get_peer()
184 ctx->next_allowedip = allowedips_node; in get_peer()
/openbmc/linux/drivers/net/wireguard/selftest/
H A Dallowedips.c22 static __init void print_node(struct allowedips_node *node, u8 bits) in print_node()
64 static __init void print_tree(struct allowedips_node __rcu *top, u8 bits) in print_tree()
496 struct allowedips_node *iter_node; in wg_allowedips_selftest()