Home
last modified time | relevance | path

Searched refs:num_nh (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/include/net/
Dnexthop.h121 u16 num_nh; member
188 u16 num_nh; member
297 rc = nh_grp->num_nh; in nexthop_num_path()
309 if (nhsel >= nhg->num_nh) in nexthop_mpath_select()
322 for (i = 0; i < nhg->num_nh; i++) { in nexthop_mpath_fill_node()
344 if (nh_grp->num_nh > 1) in nexthop_is_blackhole()
401 for (i = 0; i < nhg->num_nh; i++) { in nexthop_get_nhc_lookup()
430 for (i = 0; i < nhg->num_nh; i++) { in nexthop_uses_dev()
/linux-6.1.9/net/ipv4/
Dnexthop.c123 u16 num_nh = nhg->num_nh; in nh_notifier_mpath_info_init() local
127 info->nh_grp = kzalloc(struct_size(info->nh_grp, nh_entries, num_nh), in nh_notifier_mpath_info_init()
132 info->nh_grp->num_nh = num_nh; in nh_notifier_mpath_info_init()
135 for (i = 0; i < num_nh; i++) { in nh_notifier_mpath_info_init()
473 for (i = 0; i < nhg->num_nh; ++i) { in nexthop_free_group()
532 static struct nh_group *nexthop_grp_alloc(u16 num_nh) in nexthop_grp_alloc() argument
536 nhg = kzalloc(struct_size(nhg, nh_entries, num_nh), GFP_KERNEL); in nexthop_grp_alloc()
538 nhg->num_nh = num_nh; in nexthop_grp_alloc()
660 size_t len = nhg->num_nh * sizeof(*p); in nla_put_nh_group()
678 for (i = 0; i < nhg->num_nh; ++i) { in nla_put_nh_group()
[all …]
/linux-6.1.9/net/mpls/
Daf_mpls.c510 static struct mpls_route *mpls_rt_alloc(u8 num_nh, u8 max_alen, u8 max_labels) in mpls_rt_alloc() argument
516 size = sizeof(*rt) + num_nh * nh_size; in mpls_rt_alloc()
524 rt->rt_nhn = num_nh; in mpls_rt_alloc()
525 rt->rt_nhn_alive = num_nh; in mpls_rt_alloc()
/linux-6.1.9/drivers/net/netdevsim/
Dfib.c1134 for (i = 0; i < info->nh_grp->num_nh; i++) in nsim_nexthop_create()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_router.c4602 for (i = 0; i < nh_grp->num_nh; i++) { in mlxsw_sp_nexthop_obj_group_validate()
4840 nhs = info->nh_grp->num_nh; in mlxsw_sp_nexthop_obj_group_info_init()