Lines Matching refs:fib6_node
59 struct fib6_node *fn);
60 static struct fib6_node *fib6_repair_tree(struct net *net,
62 struct fib6_node *fn);
110 struct fib6_node *fn; in fib6_update_sernum()
112 fn = rcu_dereference_protected(f6i->fib6_node, in fib6_update_sernum()
176 WARN_ON(f6i->fib6_node); in fib6_info_destroy_rcu()
216 static struct fib6_node *node_alloc(struct net *net) in node_alloc()
218 struct fib6_node *fn; in node_alloc()
227 static void node_free_immediate(struct net *net, struct fib6_node *fn) in node_free_immediate()
235 struct fib6_node *fn = container_of(head, struct fib6_node, rcu); in node_free_rcu()
240 static void node_free(struct net *net, struct fib6_node *fn) in node_free()
660 static struct fib6_node *fib6_add_1(struct net *net, in fib6_add_1()
662 struct fib6_node *root, in fib6_add_1()
668 struct fib6_node *fn, *in, *ln; in fib6_add_1()
669 struct fib6_node *pn = NULL; in fib6_add_1()
900 static void fib6_purge_rt(struct fib6_info *rt, struct fib6_node *fn, in fib6_purge_rt()
936 static int fib6_add_rt2node(struct fib6_node *fn, struct fib6_info *rt, in fib6_add_rt2node()
1085 rcu_assign_pointer(rt->fib6_node, fn); in fib6_add_rt2node()
1113 rcu_assign_pointer(rt->fib6_node, fn); in fib6_add_rt2node()
1123 iter->fib6_node = NULL; in fib6_add_rt2node()
1139 iter->fib6_node = NULL; in fib6_add_rt2node()
1177 struct fib6_node *fn = rcu_dereference_protected(rt->fib6_node, in __fib6_update_sernum_upto_root()
1201 int fib6_add(struct fib6_node *root, struct fib6_info *rt, in fib6_add()
1205 struct fib6_node *fn, *pn = NULL; in fib6_add()
1234 struct fib6_node *sn; in fib6_add()
1237 struct fib6_node *sfn; in fib6_add()
1372 static struct fib6_node *fib6_node_lookup_1(struct fib6_node *root, in fib6_node_lookup_1()
1375 struct fib6_node *fn; in fib6_node_lookup_1()
1388 struct fib6_node *next; in fib6_node_lookup_1()
1403 struct fib6_node *subtree = FIB6_SUBTREE(fn); in fib6_node_lookup_1()
1417 struct fib6_node *sfn; in fib6_node_lookup_1()
1441 struct fib6_node *fib6_node_lookup(struct fib6_node *root, in fib6_node_lookup()
1445 struct fib6_node *fn; in fib6_node_lookup()
1481 static struct fib6_node *fib6_locate_1(struct fib6_node *root, in fib6_locate_1()
1486 struct fib6_node *fn, *prev = NULL; in fib6_locate_1()
1530 struct fib6_node *fib6_locate(struct fib6_node *root, in fib6_locate()
1535 struct fib6_node *fn; in fib6_locate()
1545 struct fib6_node *subtree = FIB6_SUBTREE(fn); in fib6_locate()
1570 struct fib6_node *fn) in fib6_find_prefix()
1572 struct fib6_node *child_left, *child_right; in fib6_find_prefix()
1600 static struct fib6_node *fib6_repair_tree(struct net *net, in fib6_repair_tree()
1602 struct fib6_node *fn) in fib6_repair_tree()
1606 struct fib6_node *child; in fib6_repair_tree()
1617 struct fib6_node *fn_r = rcu_dereference_protected(fn->right, in fib6_repair_tree()
1619 struct fib6_node *fn_l = rcu_dereference_protected(fn->left, in fib6_repair_tree()
1621 struct fib6_node *pn = rcu_dereference_protected(fn->parent, in fib6_repair_tree()
1623 struct fib6_node *pn_r = rcu_dereference_protected(pn->right, in fib6_repair_tree()
1625 struct fib6_node *pn_l = rcu_dereference_protected(pn->left, in fib6_repair_tree()
1721 static void fib6_del_route(struct fib6_table *table, struct fib6_node *fn, in fib6_del_route()
1733 rt->fib6_node = NULL; in fib6_del_route()
1792 struct fib6_node *fn = rcu_dereference_protected(rt->fib6_node, in fib6_del()
1848 struct fib6_node *fn, *pn, *left, *right; in fib6_walk_continue()
1978 rcu_access_pointer(rt->fib6_node), in fib6_clean_node()
2006 static void fib6_clean_tree(struct net *net, struct fib6_node *root, in fib6_clean_tree()
2222 sizeof(struct fib6_node), in fib6_init()