Lines Matching refs:newnode
184 struct allowedips_node *node, *parent, *down, *newnode; in add() local
205 newnode = kmem_cache_zalloc(node_cache, GFP_KERNEL); in add()
206 if (unlikely(!newnode)) in add()
208 RCU_INIT_POINTER(newnode->peer, peer); in add()
209 list_add_tail(&newnode->peer_list, &peer->allowedips_list); in add()
210 copy_and_assign_cidr(newnode, key, cidr, bits); in add()
218 connect_node(&node->bit[bit], bit, newnode); in add()
225 if (newnode->cidr == cidr) { in add()
226 choose_and_connect_node(newnode, down); in add()
228 connect_node(trie, 2, newnode); in add()
230 choose_and_connect_node(parent, newnode); in add()
236 list_del(&newnode->peer_list); in add()
237 kmem_cache_free(node_cache, newnode); in add()
241 copy_and_assign_cidr(node, newnode->bits, cidr, bits); in add()
244 choose_and_connect_node(node, newnode); in add()