Lines Matching refs:fib6_node
57 struct fib6_node *fn);
58 static struct fib6_node *fib6_repair_tree(struct net *net,
60 struct fib6_node *fn);
108 struct fib6_node *fn; in fib6_update_sernum()
110 fn = rcu_dereference_protected(f6i->fib6_node, in fib6_update_sernum()
169 WARN_ON(f6i->fib6_node); in fib6_info_destroy_rcu()
181 static struct fib6_node *node_alloc(struct net *net) in node_alloc()
183 struct fib6_node *fn; in node_alloc()
192 static void node_free_immediate(struct net *net, struct fib6_node *fn) in node_free_immediate()
200 struct fib6_node *fn = container_of(head, struct fib6_node, rcu); in node_free_rcu()
205 static void node_free(struct net *net, struct fib6_node *fn) in node_free()
685 static struct fib6_node *fib6_add_1(struct net *net, in fib6_add_1()
687 struct fib6_node *root, in fib6_add_1()
693 struct fib6_node *fn, *in, *ln; in fib6_add_1()
694 struct fib6_node *pn = NULL; in fib6_add_1()
971 static void fib6_purge_rt(struct fib6_info *rt, struct fib6_node *fn, in fib6_purge_rt()
1009 static int fib6_add_rt2node(struct fib6_node *fn, struct fib6_info *rt, in fib6_add_rt2node()
1176 rcu_assign_pointer(rt->fib6_node, fn); in fib6_add_rt2node()
1206 rcu_assign_pointer(rt->fib6_node, fn); in fib6_add_rt2node()
1216 iter->fib6_node = NULL; in fib6_add_rt2node()
1232 iter->fib6_node = NULL; in fib6_add_rt2node()
1270 struct fib6_node *fn = rcu_dereference_protected(rt->fib6_node, in __fib6_update_sernum_upto_root()
1302 int fib6_add(struct fib6_node *root, struct fib6_info *rt, in fib6_add()
1306 struct fib6_node *fn, *pn = NULL; in fib6_add()
1335 struct fib6_node *sn; in fib6_add()
1338 struct fib6_node *sfn; in fib6_add()
1475 static struct fib6_node *fib6_node_lookup_1(struct fib6_node *root, in fib6_node_lookup_1()
1478 struct fib6_node *fn; in fib6_node_lookup_1()
1491 struct fib6_node *next; in fib6_node_lookup_1()
1506 struct fib6_node *subtree = FIB6_SUBTREE(fn); in fib6_node_lookup_1()
1520 struct fib6_node *sfn; in fib6_node_lookup_1()
1544 struct fib6_node *fib6_node_lookup(struct fib6_node *root, in fib6_node_lookup()
1548 struct fib6_node *fn; in fib6_node_lookup()
1584 static struct fib6_node *fib6_locate_1(struct fib6_node *root, in fib6_locate_1()
1589 struct fib6_node *fn, *prev = NULL; in fib6_locate_1()
1634 struct fib6_node *fib6_locate(struct fib6_node *root, in fib6_locate()
1639 struct fib6_node *fn; in fib6_locate()
1649 struct fib6_node *subtree = FIB6_SUBTREE(fn); in fib6_locate()
1674 struct fib6_node *fn) in fib6_find_prefix()
1676 struct fib6_node *child_left, *child_right; in fib6_find_prefix()
1704 static struct fib6_node *fib6_repair_tree(struct net *net, in fib6_repair_tree()
1706 struct fib6_node *fn) in fib6_repair_tree()
1710 struct fib6_node *child; in fib6_repair_tree()
1721 struct fib6_node *fn_r = rcu_dereference_protected(fn->right, in fib6_repair_tree()
1723 struct fib6_node *fn_l = rcu_dereference_protected(fn->left, in fib6_repair_tree()
1725 struct fib6_node *pn = rcu_dereference_protected(fn->parent, in fib6_repair_tree()
1727 struct fib6_node *pn_r = rcu_dereference_protected(pn->right, in fib6_repair_tree()
1729 struct fib6_node *pn_l = rcu_dereference_protected(pn->left, in fib6_repair_tree()
1825 static void fib6_del_route(struct fib6_table *table, struct fib6_node *fn, in fib6_del_route()
1837 rt->fib6_node = NULL; in fib6_del_route()
1898 struct fib6_node *fn = rcu_dereference_protected(rt->fib6_node, in fib6_del()
1954 struct fib6_node *fn, *pn, *left, *right; in fib6_walk_continue()
2085 rcu_access_pointer(rt->fib6_node), in fib6_clean_node()
2113 static void fib6_clean_tree(struct net *net, struct fib6_node *root, in fib6_clean_tree()
2338 sizeof(struct fib6_node), in fib6_init()