• Home
  • Raw
  • Download

Lines Matching refs:old

1335 static int fib6_check_nh_list(struct nexthop *old, struct nexthop *new,  in fib6_check_nh_list()  argument
1340 if (list_empty(&old->f6i_list)) in fib6_check_nh_list()
1343 list_for_each_entry(f6i, &old->f6i_list, nh_list) { in fib6_check_nh_list()
1411 static int fib_check_nh_list(struct nexthop *old, struct nexthop *new, in fib_check_nh_list() argument
1416 list_for_each_entry(fi, &old->fi_list, nh_list) { in fib_check_nh_list()
1956 static int replace_nexthop_grp(struct net *net, struct nexthop *old, in replace_nexthop_grp() argument
1971 oldg = rtnl_dereference(old->nh_grp); in replace_nexthop_grp()
2023 newg->nh_entries[i].nh_parent = old; in replace_nexthop_grp()
2025 rcu_assign_pointer(old->nh_grp, newg); in replace_nexthop_grp()
2062 struct nexthop *old, in replace_nexthop_single_notify_res() argument
2076 if (nhge->nh == old) { in replace_nexthop_single_notify_res()
2094 if (nhge->nh == old) in replace_nexthop_single_notify_res()
2104 struct nexthop *old, in replace_nexthop_single_notify() argument
2118 old, oldi, newi, in replace_nexthop_single_notify()
2125 static int replace_nexthop_single(struct net *net, struct nexthop *old, in replace_nexthop_single() argument
2146 new->nh_flags |= old->nh_flags & (RTNH_F_OFFLOAD | RTNH_F_TRAP); in replace_nexthop_single()
2148 oldi = rtnl_dereference(old->nh_info); in replace_nexthop_single()
2151 newi->nh_parent = old; in replace_nexthop_single()
2154 old_protocol = old->protocol; in replace_nexthop_single()
2155 old_nh_flags = old->nh_flags; in replace_nexthop_single()
2157 old->protocol = new->protocol; in replace_nexthop_single()
2158 old->nh_flags = new->nh_flags; in replace_nexthop_single()
2160 rcu_assign_pointer(old->nh_info, newi); in replace_nexthop_single()
2164 list_for_each_entry(nhge, &old->grp_list, nh_list) { in replace_nexthop_single()
2167 err = replace_nexthop_single_notify(net, nhp, old, oldi, newi, in replace_nexthop_single()
2177 list_for_each_entry(nhge, &old->grp_list, nh_list) { in replace_nexthop_single()
2190 rcu_assign_pointer(old->nh_info, oldi); in replace_nexthop_single()
2191 old->nh_flags = old_nh_flags; in replace_nexthop_single()
2192 old->protocol = old_protocol; in replace_nexthop_single()
2193 oldi->nh_parent = old; in replace_nexthop_single()
2195 list_for_each_entry_continue_reverse(nhge, &old->grp_list, nh_list) { in replace_nexthop_single()
2198 replace_nexthop_single_notify(net, nhp, old, newi, oldi, NULL); in replace_nexthop_single()
2200 call_nexthop_notifiers(net, NEXTHOP_EVENT_REPLACE, old, extack); in replace_nexthop_single()
2244 static int replace_nexthop(struct net *net, struct nexthop *old, in replace_nexthop() argument
2255 err = fib_check_nh_list(old, new, extack); in replace_nexthop()
2259 err = fib6_check_nh_list(old, new, extack); in replace_nexthop()
2269 list_for_each_entry(nhge, &old->grp_list, nh_list) { in replace_nexthop()
2288 if (old->is_group) in replace_nexthop()
2289 err = replace_nexthop_grp(net, old, new, cfg, extack); in replace_nexthop()
2291 err = replace_nexthop_single(net, old, new, extack); in replace_nexthop()
2294 nh_rt_cache_flush(net, old, new); in replace_nexthop()