Searched refs:num_nh (Results 1 – 4 of 4) sorted by relevance
130 u16 num_nh; member 139 struct nh_grp_entry nh_entries[] __counted_by(num_nh);202 u16 num_nh; member 205 struct nh_notifier_grp_entry_info nh_entries[] __counted_by(num_nh);228 u16 num_nh; member 230 struct nh_notifier_grp_hw_stats_entry_info stats[] __counted_by(num_nh);329 rc = nh_grp->num_nh; in nexthop_num_path() 341 if (nhsel >= nhg->num_nh) in nexthop_mpath_select() 354 for (i = 0; i < nhg->num_nh; i++) { in nexthop_mpath_fill_node() 376 if (nh_grp->num_nh > in nexthop_is_blackhole() [all...]
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() 549 static struct nh_group *nexthop_grp_alloc(u16 num_nh) in nexthop_grp_alloc() argument 553 nhg = kzalloc(struct_size(nhg, nh_entries, num_nh), GFP_KERNEL); in nexthop_grp_alloc() 555 nhg->num_nh in nexthop_grp_alloc() 2101 int i, num_nh = nhg->num_nh; remove_nexthop_group() local 2700 u16 num_nh = nla_len(grps_attr) / sizeof(*entry); nexthop_create_group() local [all...]
1134 for (i = 0; i < info->nh_grp->num_nh; i++) in nsim_nexthop_create()
4952 for (i = 0; i < nh_grp->num_nh; i++) { in mlxsw_sp_nexthop_obj_group_validate() 5188 nhs = info->nh_grp->num_nh; in mlxsw_sp_nexthop_obj_group_info_init() 5655 for (nhi = 0; nhi < info->num_nh; nhi++) { in mlxsw_sp_nexthop_obj_mp_hw_stats_get() 5682 for (nhi = 0; nhi < info->num_nh; nhi++) in mlxsw_sp_nexthop_obj_res_hw_stats_get() 5685 if (WARN_ON_ONCE(nhi == info->num_nh)) { in mlxsw_sp_nexthop_obj_res_hw_stats_get()