Searched refs:nh_entries (Results 1 - 6 of 6) sorted by relevance
/kernel/linux/linux-6.6/include/net/ |
H A D | nexthop.h | 129 struct nh_grp_entry nh_entries[]; member 190 struct nh_notifier_grp_entry_info nh_entries[]; member 312 return nhg->nh_entries[nhsel].nh; in nexthop_mpath_select() 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() 347 nh = nh_grp->nh_entries[0].nh; in nexthop_is_blackhole() 402 struct nexthop *nhe = nhg->nh_entries[i].nh; in nexthop_get_nhc_lookup() 431 struct nexthop *nhe = nhg->nh_entries[i].nh; in nexthop_uses_dev()
|
/kernel/linux/linux-5.10/include/net/ |
H A D | nexthop.h | 81 struct nh_grp_entry nh_entries[]; member 198 return nhg->nh_entries[nhsel].nh; in nexthop_mpath_select() 209 struct nexthop *nhe = nhg->nh_entries[i].nh; in nexthop_mpath_fill_node() 212 int weight = nhg->nh_entries[i].weight; in nexthop_mpath_fill_node() 233 nh = nh_grp->nh_entries[0].nh; in nexthop_is_blackhole() 288 struct nexthop *nhe = nhg->nh_entries[i].nh; in nexthop_get_nhc_lookup() 317 struct nexthop *nhe = nhg->nh_entries[i].nh; in nexthop_uses_dev()
|
/kernel/linux/linux-5.10/net/ipv4/ |
H A D | nexthop.c | 79 struct nh_grp_entry *nhge = &nhg->nh_entries[i]; in nexthop_free_mpath() 138 nhg = kzalloc(struct_size(nhg, nh_entries, num_nh), GFP_KERNEL); in nexthop_grp_alloc() 214 .id = nhg->nh_entries[i].nh->id, in nla_put_nh_group() 215 .weight = nhg->nh_entries[i].weight - 1, in nla_put_nh_group() 554 struct nh_grp_entry *nhge = &nhg->nh_entries[i]; in nexthop_select_path() 599 struct nh_grp_entry *nhge = &nhg->nh_entries[i]; in nexthop_for_each_fib6_nh() 731 nhi = rtnl_dereference(nhg->nh_entries[0].nh->nh_info); in fib_check_nexthop() 769 total += nhg->nh_entries[i].weight; in nh_group_rebalance() 772 struct nh_grp_entry *nhge = &nhg->nh_entries[i]; in nh_group_rebalance() 807 nhges = nhg->nh_entries; in remove_nh_grp_entry() [all...] |
/kernel/linux/linux-6.6/net/ipv4/ |
H A D | nexthop.c | 127 info->nh_grp = kzalloc(struct_size(info->nh_grp, nh_entries, num_nh), in nh_notifier_mpath_info_init() 136 struct nh_grp_entry *nhge = &nhg->nh_entries[i]; in nh_notifier_mpath_info_init() 140 info->nh_grp->nh_entries[i].id = nhge->nh->id; in nh_notifier_mpath_info_init() 141 info->nh_grp->nh_entries[i].weight = nhge->weight; in nh_notifier_mpath_info_init() 142 __nh_notifier_single_info_init(&info->nh_grp->nh_entries[i].nh, in nh_notifier_mpath_info_init() 474 struct nh_grp_entry *nhge = &nhg->nh_entries[i]; in nexthop_free_group() 536 nhg = kzalloc(struct_size(nhg, nh_entries, num_nh), GFP_KERNEL); in nexthop_grp_alloc() 679 p->id = nhg->nh_entries[i].nh->id; in nla_put_nh_group() 680 p->weight = nhg->nh_entries[i].weight - 1; in nla_put_nh_group() 1174 struct nh_grp_entry *nhge = &nhg->nh_entries[ in nexthop_select_path_fdb() [all...] |
/kernel/linux/linux-6.6/drivers/net/netdevsim/ |
H A D | fib.c | 1135 occ += info->nh_grp->nh_entries[i].weight; in nsim_nexthop_create()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_router.c | 4831 nh = &nh_grp->nh_entries[i].nh; in mlxsw_sp_nexthop_obj_group_validate() 5092 nh_obj = &info->nh_grp->nh_entries[i].nh; in mlxsw_sp_nexthop_obj_group_info_init() 5093 weight = info->nh_grp->nh_entries[i].weight; in mlxsw_sp_nexthop_obj_group_info_init()
|
Completed in 26 milliseconds