Lines Matching refs:new_nh
316 __nh_notifier_single_info_init(&info->nh_res_bucket->new_nh, newi); in nh_notifier_res_bucket_info_init()
380 struct nexthop *new_nh, in call_nexthop_res_bucket_notifiers() argument
384 struct nh_info *newi = nh_res_dereference(new_nh->nh_info); in call_nexthop_res_bucket_notifiers()
2280 static int insert_nexthop(struct net *net, struct nexthop *new_nh, in insert_nexthop() argument
2287 u32 new_id = new_nh->id; in insert_nexthop()
2307 rc = replace_nexthop(net, nh, new_nh, cfg, extack); in insert_nexthop()
2309 new_nh = nh; /* send notification with old nh */ in insert_nexthop()
2325 if (new_nh->is_group) { in insert_nexthop()
2326 struct nh_group *nhg = rtnl_dereference(new_nh->nh_grp); in insert_nexthop()
2350 rb_link_node_rcu(&new_nh->rb_node, parent, pp); in insert_nexthop()
2351 rb_insert_color(&new_nh->rb_node, root); in insert_nexthop()
2356 rc = call_nexthop_notifiers(net, NEXTHOP_EVENT_REPLACE, new_nh, extack); in insert_nexthop()
2358 rb_erase(&new_nh->rb_node, &net->nexthop.rb_root); in insert_nexthop()
2363 nexthop_notify(RTM_NEWNEXTHOP, new_nh, &cfg->nlinfo); in insert_nexthop()
2366 nexthop_replace_notify(net, new_nh, &cfg->nlinfo); in insert_nexthop()