Home
last modified time | relevance | path

Searched refs:nhg (Results 1 – 2 of 2) sorted by relevance

/linux-6.15/net/ipv4/
H A Dnexthop.c496 WARN_ON(nhg->spare == nhg); in nexthop_free_group()
502 kfree(nhg); in nexthop_free_group()
553 if (nhg) in nexthop_grp_alloc()
556 return nhg; in nexthop_grp_alloc()
903 if (nhg->resilient && nla_put_nh_group_res(skb, nhg)) in nla_put_nh_group()
1301 if (nhg[i].id == nhg[j].id) { in nh_check_attr_group()
2702 if (!nhg) { in nexthop_create_group()
2710 kfree(nhg); in nexthop_create_group()
2714 nhg->spare->spare = nhg; in nexthop_create_group()
2762 WARN_ON_ONCE(nhg->hash_threshold + nhg->resilient != 1); in nexthop_create_group()
[all …]
/linux-6.15/include/net/
H A Dnexthop.h339 if (nhsel >= nhg->num_nh) in nexthop_mpath_select()
342 return nhg->nh_entries[nhsel].nh; in nexthop_mpath_select()
352 for (i = 0; i < nhg->num_nh; i++) { in nexthop_mpath_fill_node()
353 struct nexthop *nhe = nhg->nh_entries[i].nh; in nexthop_mpath_fill_node()
356 int weight = nhg->nh_entries[i].weight; in nexthop_mpath_fill_node()
428 struct nh_group *nhg = rcu_dereference(nh->nh_grp); in nexthop_get_nhc_lookup() local
431 for (i = 0; i < nhg->num_nh; i++) { in nexthop_get_nhc_lookup()
432 struct nexthop *nhe = nhg->nh_entries[i].nh; in nexthop_get_nhc_lookup()
457 struct nh_group *nhg = rcu_dereference(nh->nh_grp); in nexthop_uses_dev() local
460 for (i = 0; i < nhg->num_nh; i++) { in nexthop_uses_dev()
[all …]