Lines Matching refs:leaf

246 		rcu_assign_pointer(table->tb6_root.leaf,  in fib6_alloc_table()
462 err = fib6_rt_dump(w->leaf, w->args); in fib6_node_dump()
463 w->leaf = NULL; in fib6_node_dump()
525 w->leaf = rt; in fib6_dump_node()
546 w->leaf = NULL; in fib6_dump_node()
762 struct fib6_info *leaf = rcu_dereference_protected(fn->leaf, in fib6_add_1() local
764 key = (struct rt6key *)((u8 *)leaf + offset); in fib6_add_1()
790 RCU_INIT_POINTER(fn->leaf, NULL); in fib6_add_1()
791 fib6_info_release(leaf); in fib6_add_1()
794 rcu_access_pointer(fn->leaf) == in fib6_add_1()
796 RCU_INIT_POINTER(fn->leaf, NULL); in fib6_add_1()
902 in->leaf = fn->leaf; in fib6_add_1()
903 fib6_info_hold(rcu_dereference_protected(in->leaf, in fib6_add_1()
1047 struct fib6_info *leaf = rcu_dereference_protected(fn->leaf, in fib6_purge_rt() local
1050 if (!(fn->fn_flags & RTN_RTINFO) && leaf == rt) { in fib6_purge_rt()
1054 rcu_assign_pointer(fn->leaf, new_leaf); in fib6_purge_rt()
1071 struct fib6_info *leaf = rcu_dereference_protected(fn->leaf, in fib6_add_rt2node() local
1089 ins = &fn->leaf; in fib6_add_rt2node()
1091 for (iter = leaf; iter; in fib6_add_rt2node()
1165 if (ins == &fn->leaf) in fib6_add_rt2node()
1174 sibling = leaf; in fib6_add_rt2node()
1217 (notify_sibling_rt || ins == &fn->leaf)) { in fib6_add_rt2node()
1270 if (!info->skip_notify_kernel && ins == &fn->leaf) { in fib6_add_rt2node()
1428 rcu_assign_pointer(sfn->leaf, in fib6_add()
1464 if (!rcu_access_pointer(fn->leaf)) { in fib6_add()
1467 rcu_assign_pointer(fn->leaf, in fib6_add()
1471 rcu_assign_pointer(fn->leaf, rt); in fib6_add()
1495 rcu_dereference_protected(pn->leaf, in fib6_add()
1499 RCU_INIT_POINTER(pn->leaf, NULL); in fib6_add()
1513 rcu_assign_pointer(pn->leaf, pn_leaf); in fib6_add()
1534 !rcu_access_pointer(fn->leaf)))) in fib6_add()
1583 struct fib6_info *leaf = rcu_dereference(fn->leaf); in fib6_node_lookup_1() local
1586 if (!leaf) in fib6_node_lookup_1()
1589 key = (struct rt6key *) ((u8 *)leaf + args->offset); in fib6_node_lookup_1()
1666 struct fib6_info *leaf = rcu_dereference(fn->leaf); in fib6_locate_1() local
1670 if (!leaf) { in fib6_locate_1()
1677 key = (struct rt6key *)((u8 *)leaf + offset); in fib6_locate_1()
1761 return rcu_dereference_protected(child_left->leaf, in fib6_find_prefix()
1764 return rcu_dereference_protected(child_right->leaf, in fib6_find_prefix()
1790 rcu_assign_pointer(fn->leaf, net->ipv6.fib6_null_entry); in fib6_repair_tree()
1805 struct fib6_info *fn_leaf = rcu_dereference_protected(fn->leaf, in fib6_repair_tree()
1807 struct fib6_info *pn_leaf = rcu_dereference_protected(pn->leaf, in fib6_repair_tree()
1843 rcu_assign_pointer(fn->leaf, new_fn_leaf); in fib6_repair_tree()
1897 RCU_INIT_POINTER(pn->leaf, NULL); in fib6_repair_tree()
1906 struct fib6_info *leaf, *replace_rt = NULL; in fib6_del_route() local
1919 leaf = rcu_dereference_protected(fn->leaf, in fib6_del_route()
1921 if (leaf == rt && !rt->fib6_nsiblings) { in fib6_del_route()
1948 if (rt->fib6_metric == leaf->fib6_metric && in fib6_del_route()
1949 rt6_qualify_for_ecmp(leaf)) in fib6_del_route()
1962 if (w->state == FWS_C && w->leaf == rt) { in fib6_del_route()
1964 w->leaf = rcu_dereference_protected(rt->fib6_next, in fib6_del_route()
1966 if (!w->leaf) in fib6_del_route()
1976 if (!rcu_access_pointer(fn->leaf)) { in fib6_del_route()
2023 for (rtp = &fn->leaf; *rtp; rtp = rtp_next) { in fib6_del()
2102 w->leaf = rcu_dereference_protected(fn->leaf, 1); in fib6_walk_continue()
2105 if (w->leaf && fn->fn_flags & RTN_RTINFO) { in fib6_walk_continue()
2143 w->leaf = rcu_dereference_protected(w->node->leaf, 1); in fib6_walk_continue()
2183 w->leaf = NULL; in fib6_clean_node()
2190 w->leaf = rt; in fib6_clean_node()
2211 w->leaf = rt; in fib6_clean_node()
2386 rcu_assign_pointer(net->ipv6.fib6_main_tbl->tb6_root.leaf, in fib6_net_init()
2398 rcu_assign_pointer(net->ipv6.fib6_local_tbl->tb6_root.leaf, in fib6_net_init()
2515 iter->w.leaf = NULL; in ipv6_route_native_seq_show()
2527 iter->w.leaf = rcu_dereference_protected( in ipv6_route_yield()
2528 iter->w.leaf->fib6_next, in ipv6_route_yield()
2531 if (!iter->skip && iter->w.leaf) in ipv6_route_yield()
2533 } while (iter->w.leaf); in ipv6_route_yield()
2607 return iter->w.leaf; in ipv6_route_seq_next()
2685 iter->w.leaf = NULL; in ipv6_route_seq_show()