Lines Matching refs:new_nh
315 __nh_notifier_single_info_init(&info->nh_res_bucket->new_nh, newi); in nh_notifier_res_bucket_info_init()
379 struct nexthop *new_nh, in call_nexthop_res_bucket_notifiers() argument
383 struct nh_info *newi = nh_res_dereference(new_nh->nh_info); in call_nexthop_res_bucket_notifiers()
2260 static int insert_nexthop(struct net *net, struct nexthop *new_nh, in insert_nexthop() argument
2267 u32 new_id = new_nh->id; in insert_nexthop()
2287 rc = replace_nexthop(net, nh, new_nh, cfg, extack); in insert_nexthop()
2289 new_nh = nh; /* send notification with old nh */ in insert_nexthop()
2305 if (new_nh->is_group) { in insert_nexthop()
2306 struct nh_group *nhg = rtnl_dereference(new_nh->nh_grp); in insert_nexthop()
2330 rb_link_node_rcu(&new_nh->rb_node, parent, pp); in insert_nexthop()
2331 rb_insert_color(&new_nh->rb_node, root); in insert_nexthop()
2336 rc = call_nexthop_notifiers(net, NEXTHOP_EVENT_REPLACE, new_nh, extack); in insert_nexthop()
2338 rb_erase(&new_nh->rb_node, &net->nexthop.rb_root); in insert_nexthop()
2343 nexthop_notify(RTM_NEWNEXTHOP, new_nh, &cfg->nlinfo); in insert_nexthop()
2345 nexthop_replace_notify(net, new_nh, &cfg->nlinfo); in insert_nexthop()