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()
171 WARN_ON(f6i->fib6_node); in fib6_info_destroy_rcu()
183 static struct fib6_node *node_alloc(struct net *net) in node_alloc()
185 struct fib6_node *fn; in node_alloc()
194 static void node_free_immediate(struct net *net, struct fib6_node *fn) in node_free_immediate()
202 struct fib6_node *fn = container_of(head, struct fib6_node, rcu); in node_free_rcu()
207 static void node_free(struct net *net, struct fib6_node *fn) in node_free()
741 static struct fib6_node *fib6_add_1(struct net *net, in fib6_add_1()
743 struct fib6_node *root, in fib6_add_1()
749 struct fib6_node *fn, *in, *ln; in fib6_add_1()
750 struct fib6_node *pn = NULL; in fib6_add_1()
1027 static void fib6_purge_rt(struct fib6_info *rt, struct fib6_node *fn, in fib6_purge_rt()
1067 static int fib6_add_rt2node(struct fib6_node *fn, struct fib6_info *rt, in fib6_add_rt2node()
1249 rcu_assign_pointer(rt->fib6_node, fn); in fib6_add_rt2node()
1279 rcu_assign_pointer(rt->fib6_node, fn); in fib6_add_rt2node()
1289 iter->fib6_node = NULL; in fib6_add_rt2node()
1305 iter->fib6_node = NULL; in fib6_add_rt2node()
1343 struct fib6_node *fn = rcu_dereference_protected(rt->fib6_node, in __fib6_update_sernum_upto_root()
1375 int fib6_add(struct fib6_node *root, struct fib6_info *rt, in fib6_add()
1379 struct fib6_node *fn, *pn = NULL; in fib6_add()
1407 struct fib6_node *sn; in fib6_add()
1410 struct fib6_node *sfn; in fib6_add()
1549 static struct fib6_node *fib6_node_lookup_1(struct fib6_node *root, in fib6_node_lookup_1()
1552 struct fib6_node *fn; in fib6_node_lookup_1()
1565 struct fib6_node *next; in fib6_node_lookup_1()
1580 struct fib6_node *subtree = FIB6_SUBTREE(fn); in fib6_node_lookup_1()
1594 struct fib6_node *sfn; in fib6_node_lookup_1()
1618 struct fib6_node *fib6_node_lookup(struct fib6_node *root, in fib6_node_lookup()
1622 struct fib6_node *fn; in fib6_node_lookup()
1658 static struct fib6_node *fib6_locate_1(struct fib6_node *root, in fib6_locate_1()
1663 struct fib6_node *fn, *prev = NULL; in fib6_locate_1()
1708 struct fib6_node *fib6_locate(struct fib6_node *root, in fib6_locate()
1713 struct fib6_node *fn; in fib6_locate()
1723 struct fib6_node *subtree = FIB6_SUBTREE(fn); in fib6_locate()
1748 struct fib6_node *fn) in fib6_find_prefix()
1750 struct fib6_node *child_left, *child_right; in fib6_find_prefix()
1778 static struct fib6_node *fib6_repair_tree(struct net *net, in fib6_repair_tree()
1780 struct fib6_node *fn) in fib6_repair_tree()
1784 struct fib6_node *child; in fib6_repair_tree()
1795 struct fib6_node *fn_r = rcu_dereference_protected(fn->right, in fib6_repair_tree()
1797 struct fib6_node *fn_l = rcu_dereference_protected(fn->left, in fib6_repair_tree()
1799 struct fib6_node *pn = rcu_dereference_protected(fn->parent, in fib6_repair_tree()
1801 struct fib6_node *pn_r = rcu_dereference_protected(pn->right, in fib6_repair_tree()
1803 struct fib6_node *pn_l = rcu_dereference_protected(pn->left, in fib6_repair_tree()
1903 static void fib6_del_route(struct fib6_table *table, struct fib6_node *fn, in fib6_del_route()
1931 rt->fib6_node = NULL; in fib6_del_route()
2006 struct fib6_node *fn; in fib6_del()
2012 fn = rcu_dereference_protected(rt->fib6_node, in fib6_del()
2065 struct fib6_node *fn, *pn, *left, *right; in fib6_walk_continue()
2196 rcu_access_pointer(rt->fib6_node), in fib6_clean_node()
2224 static void fib6_clean_tree(struct net *net, struct fib6_node *root, in fib6_clean_tree()
2453 sizeof(struct fib6_node), 0, in fib6_init()