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()
759 struct fib6_info *leaf = rcu_dereference_protected(fn->leaf, in fib6_add_1() local
761 key = (struct rt6key *)((u8 *)leaf + offset); in fib6_add_1()
787 RCU_INIT_POINTER(fn->leaf, NULL); in fib6_add_1()
788 fib6_info_release(leaf); in fib6_add_1()
791 rcu_access_pointer(fn->leaf) == in fib6_add_1()
793 RCU_INIT_POINTER(fn->leaf, NULL); in fib6_add_1()
899 in->leaf = fn->leaf; in fib6_add_1()
900 fib6_info_hold(rcu_dereference_protected(in->leaf, in fib6_add_1()
1044 struct fib6_info *leaf = rcu_dereference_protected(fn->leaf, in fib6_purge_rt() local
1047 if (!(fn->fn_flags & RTN_RTINFO) && leaf == rt) { in fib6_purge_rt()
1051 rcu_assign_pointer(fn->leaf, new_leaf); in fib6_purge_rt()
1068 struct fib6_info *leaf = rcu_dereference_protected(fn->leaf, in fib6_add_rt2node() local
1086 ins = &fn->leaf; in fib6_add_rt2node()
1088 for (iter = leaf; iter; in fib6_add_rt2node()
1162 if (ins == &fn->leaf) in fib6_add_rt2node()
1171 sibling = leaf; in fib6_add_rt2node()
1214 (notify_sibling_rt || ins == &fn->leaf)) { in fib6_add_rt2node()
1267 if (!info->skip_notify_kernel && ins == &fn->leaf) { in fib6_add_rt2node()
1425 rcu_assign_pointer(sfn->leaf, in fib6_add()
1461 if (!rcu_access_pointer(fn->leaf)) { in fib6_add()
1464 rcu_assign_pointer(fn->leaf, in fib6_add()
1468 rcu_assign_pointer(fn->leaf, rt); in fib6_add()
1492 rcu_dereference_protected(pn->leaf, in fib6_add()
1496 RCU_INIT_POINTER(pn->leaf, NULL); in fib6_add()
1510 rcu_assign_pointer(pn->leaf, pn_leaf); in fib6_add()
1531 !rcu_access_pointer(fn->leaf)))) in fib6_add()
1580 struct fib6_info *leaf = rcu_dereference(fn->leaf); in fib6_node_lookup_1() local
1583 if (!leaf) in fib6_node_lookup_1()
1586 key = (struct rt6key *) ((u8 *)leaf + args->offset); in fib6_node_lookup_1()
1663 struct fib6_info *leaf = rcu_dereference(fn->leaf); in fib6_locate_1() local
1667 if (!leaf) { in fib6_locate_1()
1674 key = (struct rt6key *)((u8 *)leaf + offset); in fib6_locate_1()
1758 return rcu_dereference_protected(child_left->leaf, in fib6_find_prefix()
1761 return rcu_dereference_protected(child_right->leaf, in fib6_find_prefix()
1787 rcu_assign_pointer(fn->leaf, net->ipv6.fib6_null_entry); in fib6_repair_tree()
1802 struct fib6_info *fn_leaf = rcu_dereference_protected(fn->leaf, in fib6_repair_tree()
1804 struct fib6_info *pn_leaf = rcu_dereference_protected(pn->leaf, in fib6_repair_tree()
1840 rcu_assign_pointer(fn->leaf, new_fn_leaf); in fib6_repair_tree()
1894 RCU_INIT_POINTER(pn->leaf, NULL); in fib6_repair_tree()
1903 struct fib6_info *leaf, *replace_rt = NULL; in fib6_del_route() local
1916 leaf = rcu_dereference_protected(fn->leaf, in fib6_del_route()
1918 if (leaf == rt && !rt->fib6_nsiblings) { in fib6_del_route()
1945 if (rt->fib6_metric == leaf->fib6_metric && in fib6_del_route()
1946 rt6_qualify_for_ecmp(leaf)) in fib6_del_route()
1959 if (w->state == FWS_C && w->leaf == rt) { in fib6_del_route()
1961 w->leaf = rcu_dereference_protected(rt->fib6_next, in fib6_del_route()
1963 if (!w->leaf) in fib6_del_route()
1973 if (!rcu_access_pointer(fn->leaf)) { in fib6_del_route()
2020 for (rtp = &fn->leaf; *rtp; rtp = rtp_next) { in fib6_del()
2099 w->leaf = rcu_dereference_protected(fn->leaf, 1); in fib6_walk_continue()
2102 if (w->leaf && fn->fn_flags & RTN_RTINFO) { in fib6_walk_continue()
2140 w->leaf = rcu_dereference_protected(w->node->leaf, 1); in fib6_walk_continue()
2180 w->leaf = NULL; in fib6_clean_node()
2187 w->leaf = rt; in fib6_clean_node()
2208 w->leaf = rt; in fib6_clean_node()
2379 rcu_assign_pointer(net->ipv6.fib6_main_tbl->tb6_root.leaf, in fib6_net_init()
2391 rcu_assign_pointer(net->ipv6.fib6_local_tbl->tb6_root.leaf, in fib6_net_init()
2508 iter->w.leaf = NULL; in ipv6_route_native_seq_show()
2520 iter->w.leaf = rcu_dereference_protected( in ipv6_route_yield()
2521 iter->w.leaf->fib6_next, in ipv6_route_yield()
2524 if (!iter->skip && iter->w.leaf) in ipv6_route_yield()
2526 } while (iter->w.leaf); in ipv6_route_yield()
2600 return iter->w.leaf; in ipv6_route_seq_next()
2678 iter->w.leaf = NULL; in ipv6_route_seq_show()