Lines Matching refs:leaf
245 rcu_assign_pointer(table->tb6_root.leaf, in fib6_alloc_table()
461 err = fib6_rt_dump(w->leaf, w->args); in fib6_node_dump()
462 w->leaf = NULL; in fib6_node_dump()
524 w->leaf = rt; in fib6_dump_node()
545 w->leaf = NULL; in fib6_dump_node()
761 struct fib6_info *leaf = rcu_dereference_protected(fn->leaf, in fib6_add_1() local
763 key = (struct rt6key *)((u8 *)leaf + offset); in fib6_add_1()
789 RCU_INIT_POINTER(fn->leaf, NULL); in fib6_add_1()
790 fib6_info_release(leaf); in fib6_add_1()
793 rcu_access_pointer(fn->leaf) == in fib6_add_1()
795 RCU_INIT_POINTER(fn->leaf, NULL); in fib6_add_1()
901 in->leaf = fn->leaf; in fib6_add_1()
902 fib6_info_hold(rcu_dereference_protected(in->leaf, in fib6_add_1()
1046 struct fib6_info *leaf = rcu_dereference_protected(fn->leaf, in fib6_purge_rt() local
1049 if (!(fn->fn_flags & RTN_RTINFO) && leaf == rt) { in fib6_purge_rt()
1053 rcu_assign_pointer(fn->leaf, new_leaf); in fib6_purge_rt()
1070 struct fib6_info *leaf = rcu_dereference_protected(fn->leaf, in fib6_add_rt2node() local
1088 ins = &fn->leaf; in fib6_add_rt2node()
1090 for (iter = leaf; iter; in fib6_add_rt2node()
1164 if (ins == &fn->leaf) in fib6_add_rt2node()
1173 sibling = leaf; in fib6_add_rt2node()
1216 (notify_sibling_rt || ins == &fn->leaf)) { in fib6_add_rt2node()
1269 if (!info->skip_notify_kernel && ins == &fn->leaf) { in fib6_add_rt2node()
1427 rcu_assign_pointer(sfn->leaf, in fib6_add()
1463 if (!rcu_access_pointer(fn->leaf)) { in fib6_add()
1466 rcu_assign_pointer(fn->leaf, in fib6_add()
1470 rcu_assign_pointer(fn->leaf, rt); in fib6_add()
1494 rcu_dereference_protected(pn->leaf, in fib6_add()
1498 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()
1943 if (rt->fib6_metric == leaf->fib6_metric && in fib6_del_route()
1944 rt6_qualify_for_ecmp(leaf)) in fib6_del_route()
1957 if (w->state == FWS_C && w->leaf == rt) { in fib6_del_route()
1959 w->leaf = rcu_dereference_protected(rt->fib6_next, in fib6_del_route()
1961 if (!w->leaf) in fib6_del_route()
1971 if (!rcu_access_pointer(fn->leaf)) { in fib6_del_route()
2018 for (rtp = &fn->leaf; *rtp; rtp = rtp_next) { in fib6_del()
2097 w->leaf = rcu_dereference_protected(fn->leaf, 1); in fib6_walk_continue()
2100 if (w->leaf && fn->fn_flags & RTN_RTINFO) { in fib6_walk_continue()
2138 w->leaf = rcu_dereference_protected(w->node->leaf, 1); in fib6_walk_continue()
2178 w->leaf = NULL; in fib6_clean_node()
2185 w->leaf = rt; in fib6_clean_node()
2206 w->leaf = rt; in fib6_clean_node()
2381 rcu_assign_pointer(net->ipv6.fib6_main_tbl->tb6_root.leaf, in fib6_net_init()
2393 rcu_assign_pointer(net->ipv6.fib6_local_tbl->tb6_root.leaf, in fib6_net_init()
2510 iter->w.leaf = NULL; in ipv6_route_native_seq_show()
2522 iter->w.leaf = rcu_dereference_protected( in ipv6_route_yield()
2523 iter->w.leaf->fib6_next, in ipv6_route_yield()
2526 if (!iter->skip && iter->w.leaf) in ipv6_route_yield()
2528 } while (iter->w.leaf); in ipv6_route_yield()
2602 return iter->w.leaf; in ipv6_route_seq_next()
2680 iter->w.leaf = NULL; in ipv6_route_seq_show()