Lines Matching refs:leaf
244 rcu_assign_pointer(table->tb6_root.leaf, in fib6_alloc_table()
460 err = fib6_rt_dump(w->leaf, w->args); in fib6_node_dump()
461 w->leaf = NULL; in fib6_node_dump()
522 w->leaf = rt; in fib6_dump_node()
543 w->leaf = NULL; in fib6_dump_node()
758 struct fib6_info *leaf = rcu_dereference_protected(fn->leaf, in fib6_add_1() local
760 key = (struct rt6key *)((u8 *)leaf + offset); in fib6_add_1()
786 RCU_INIT_POINTER(fn->leaf, NULL); in fib6_add_1()
787 fib6_info_release(leaf); in fib6_add_1()
790 rcu_access_pointer(fn->leaf) == in fib6_add_1()
792 RCU_INIT_POINTER(fn->leaf, NULL); in fib6_add_1()
898 in->leaf = fn->leaf; in fib6_add_1()
899 fib6_info_hold(rcu_dereference_protected(in->leaf, in fib6_add_1()
1041 struct fib6_info *leaf = rcu_dereference_protected(fn->leaf, in fib6_purge_rt() local
1044 if (!(fn->fn_flags & RTN_RTINFO) && leaf == rt) { in fib6_purge_rt()
1048 rcu_assign_pointer(fn->leaf, new_leaf); in fib6_purge_rt()
1065 struct fib6_info *leaf = rcu_dereference_protected(fn->leaf, in fib6_add_rt2node() local
1083 ins = &fn->leaf; in fib6_add_rt2node()
1085 for (iter = leaf; iter; in fib6_add_rt2node()
1159 if (ins == &fn->leaf) in fib6_add_rt2node()
1168 sibling = leaf; in fib6_add_rt2node()
1211 (notify_sibling_rt || ins == &fn->leaf)) { in fib6_add_rt2node()
1264 if (!info->skip_notify_kernel && ins == &fn->leaf) { in fib6_add_rt2node()
1423 rcu_assign_pointer(sfn->leaf, in fib6_add()
1459 if (!rcu_access_pointer(fn->leaf)) { in fib6_add()
1462 rcu_assign_pointer(fn->leaf, in fib6_add()
1466 rcu_assign_pointer(fn->leaf, rt); in fib6_add()
1490 rcu_dereference_protected(pn->leaf, in fib6_add()
1494 RCU_INIT_POINTER(pn->leaf, NULL); in fib6_add()
1508 rcu_assign_pointer(pn->leaf, pn_leaf); in fib6_add()
1529 !rcu_access_pointer(fn->leaf)))) in fib6_add()
1578 struct fib6_info *leaf = rcu_dereference(fn->leaf); in fib6_node_lookup_1() local
1581 if (!leaf) in fib6_node_lookup_1()
1584 key = (struct rt6key *) ((u8 *)leaf + args->offset); in fib6_node_lookup_1()
1661 struct fib6_info *leaf = rcu_dereference(fn->leaf); in fib6_locate_1() local
1665 if (!leaf) { in fib6_locate_1()
1672 key = (struct rt6key *)((u8 *)leaf + offset); in fib6_locate_1()
1756 return rcu_dereference_protected(child_left->leaf, in fib6_find_prefix()
1759 return rcu_dereference_protected(child_right->leaf, in fib6_find_prefix()
1785 rcu_assign_pointer(fn->leaf, net->ipv6.fib6_null_entry); in fib6_repair_tree()
1800 struct fib6_info *fn_leaf = rcu_dereference_protected(fn->leaf, in fib6_repair_tree()
1802 struct fib6_info *pn_leaf = rcu_dereference_protected(pn->leaf, in fib6_repair_tree()
1838 rcu_assign_pointer(fn->leaf, new_fn_leaf); in fib6_repair_tree()
1892 RCU_INIT_POINTER(pn->leaf, NULL); in fib6_repair_tree()
1901 struct fib6_info *leaf, *replace_rt = NULL; in fib6_del_route() local
1914 leaf = rcu_dereference_protected(fn->leaf, in fib6_del_route()
1916 if (leaf == rt && !rt->fib6_nsiblings) { in fib6_del_route()
1946 if (rt->fib6_metric == leaf->fib6_metric && in fib6_del_route()
1947 rt6_qualify_for_ecmp(leaf)) in fib6_del_route()
1960 if (w->state == FWS_C && w->leaf == rt) { in fib6_del_route()
1962 w->leaf = rcu_dereference_protected(rt->fib6_next, in fib6_del_route()
1964 if (!w->leaf) in fib6_del_route()
1974 if (!rcu_access_pointer(fn->leaf)) { in fib6_del_route()
2021 for (rtp = &fn->leaf; *rtp; rtp = rtp_next) { in fib6_del()
2100 w->leaf = rcu_dereference_protected(fn->leaf, 1); in fib6_walk_continue()
2103 if (w->leaf && fn->fn_flags & RTN_RTINFO) { in fib6_walk_continue()
2141 w->leaf = rcu_dereference_protected(w->node->leaf, 1); in fib6_walk_continue()
2181 w->leaf = NULL; in fib6_clean_node()
2188 w->leaf = rt; in fib6_clean_node()
2209 w->leaf = rt; in fib6_clean_node()
2380 rcu_assign_pointer(net->ipv6.fib6_main_tbl->tb6_root.leaf, in fib6_net_init()
2392 rcu_assign_pointer(net->ipv6.fib6_local_tbl->tb6_root.leaf, in fib6_net_init()
2509 iter->w.leaf = NULL; in ipv6_route_native_seq_show()
2521 iter->w.leaf = rcu_dereference_protected( in ipv6_route_yield()
2522 iter->w.leaf->fib6_next, in ipv6_route_yield()
2525 if (!iter->skip && iter->w.leaf) in ipv6_route_yield()
2527 } while (iter->w.leaf); in ipv6_route_yield()
2599 return iter->w.leaf; in ipv6_route_seq_next()
2677 iter->w.leaf = NULL; in ipv6_route_seq_show()