Home
last modified time | relevance | path

Searched refs:nh_entries (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/include/net/
Dnexthop.h129 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()
/linux-6.1.9/net/ipv4/
Dnexthop.c127 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()
1161 struct nh_grp_entry *nhge = &nhg->nh_entries[i]; in nexthop_select_path_hthr()
[all …]
/linux-6.1.9/drivers/net/netdevsim/
Dfib.c1135 occ += info->nh_grp->nh_entries[i].weight; in nsim_nexthop_create()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_router.c4606 nh = &nh_grp->nh_entries[i].nh; in mlxsw_sp_nexthop_obj_group_validate()
4869 nh_obj = &info->nh_grp->nh_entries[i].nh; in mlxsw_sp_nexthop_obj_group_info_init()
4870 weight = info->nh_grp->nh_entries[i].weight; in mlxsw_sp_nexthop_obj_group_info_init()