Searched refs:num_nh (Results 1 – 5 of 5) sorted by relevance
/linux/include/net/ |
H A D | nexthop.h | 130 u16 num_nh; member 139 struct nh_grp_entry nh_entries[] __counted_by(num_nh); 200 u16 num_nh; member 203 struct nh_notifier_grp_entry_info nh_entries[] __counted_by(num_nh); 226 u16 num_nh; member 228 struct nh_notifier_grp_hw_stats_entry_info stats[] __counted_by(num_nh); 327 rc = nh_grp->num_nh; in nexthop_num_path() 339 if (nhsel >= nhg->num_nh) in nexthop_mpath_select() 352 for (i = 0; i < nhg->num_nh; i++) { in nexthop_mpath_fill_node() 374 if (nh_grp->num_nh > 1) in nexthop_is_blackhole() [all …]
|
/linux/net/ipv4/ |
H A D | nexthop.c | 136 u16 num_nh = nhg->num_nh; in nh_notifier_mpath_info_init() local 140 info->nh_grp = kzalloc(struct_size(info->nh_grp, nh_entries, num_nh), in nh_notifier_mpath_info_init() 145 info->nh_grp->num_nh = num_nh; in nh_notifier_mpath_info_init() 149 for (i = 0; i < num_nh; i++) { in nh_notifier_mpath_info_init() 488 for (i = 0; i < nhg->num_nh; ++i) { in nexthop_free_group() 548 static struct nh_group *nexthop_grp_alloc(u16 num_nh) in nexthop_grp_alloc() argument 552 nhg = kzalloc(struct_size(nhg, nh_entries, num_nh), GFP_KERNEL); in nexthop_grp_alloc() 554 nhg->num_nh = num_nh; in nexthop_grp_alloc() 718 stats, nhg->num_nh), in nh_notifier_grp_hw_stats_init() 723 info->nh_grp_hw_stats->num_nh = nhg->num_nh; in nh_notifier_grp_hw_stats_init() [all …]
|
/linux/net/mpls/ |
H A D | af_mpls.c | 511 static struct mpls_route *mpls_rt_alloc(u8 num_nh, u8 max_alen, u8 max_labels) in mpls_rt_alloc() argument 517 size = sizeof(*rt) + num_nh * nh_size; in mpls_rt_alloc() 525 rt->rt_nhn = num_nh; in mpls_rt_alloc() 526 rt->rt_nhn_alive = num_nh; in mpls_rt_alloc()
|
/linux/drivers/net/netdevsim/ |
H A D | fib.c | 1134 for (i = 0; i < info->nh_grp->num_nh; i++) in nsim_nexthop_create()
|
/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_router.c | 4949 for (i = 0; i < nh_grp->num_nh; i++) { in mlxsw_sp_nexthop_obj_group_validate() 5185 nhs = info->nh_grp->num_nh; in mlxsw_sp_nexthop_obj_group_info_init() 5652 for (nhi = 0; nhi < info->num_nh; nhi++) { in mlxsw_sp_nexthop_obj_mp_hw_stats_get() 5679 for (nhi = 0; nhi < info->num_nh; nhi++) in mlxsw_sp_nexthop_obj_res_hw_stats_get() 5682 if (WARN_ON_ONCE(nhi == info->num_nh)) { in mlxsw_sp_nexthop_obj_res_hw_stats_get()
|