Home
last modified time | relevance | path

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

/openbmc/linux/net/ipv4/
H A Dnexthop.c480 WARN_ON(nhg->spare == nhg); in nexthop_free_group()
486 kfree(nhg); in nexthop_free_group()
537 if (nhg) in nexthop_grp_alloc()
540 return nhg; in nexthop_grp_alloc()
685 if (nhg->resilient && nla_put_nh_group_res(skb, nhg)) in nla_put_nh_group()
1065 if (nhg[i].resvd1 || nhg[i].resvd2) { in nh_check_attr_group()
1074 if (nhg[i].id == nhg[j].id) { in nh_check_attr_group()
2453 if (!nhg) { in nexthop_create_group()
2461 kfree(nhg); in nexthop_create_group()
2465 nhg->spare->spare = nhg; in nexthop_create_group()
[all …]
/openbmc/linux/include/net/
H A Dnexthop.h309 if (nhsel >= nhg->num_nh) in nexthop_mpath_select()
312 return nhg->nh_entries[nhsel].nh; in nexthop_mpath_select()
319 struct nh_group *nhg = rtnl_dereference(nh->nh_grp); in nexthop_mpath_fill_node() local
322 for (i = 0; i < nhg->num_nh; i++) { in nexthop_mpath_fill_node()
323 struct nexthop *nhe = nhg->nh_entries[i].nh; in nexthop_mpath_fill_node()
326 int weight = nhg->nh_entries[i].weight; in nexthop_mpath_fill_node()
398 struct nh_group *nhg = rcu_dereference(nh->nh_grp); in nexthop_get_nhc_lookup() local
401 for (i = 0; i < nhg->num_nh; i++) { in nexthop_get_nhc_lookup()
402 struct nexthop *nhe = nhg->nh_entries[i].nh; in nexthop_get_nhc_lookup()
430 for (i = 0; i < nhg->num_nh; i++) { in nexthop_uses_dev()
[all …]