Searched refs:num_nh_buckets (Results 1 – 4 of 4) sorted by relevance
96 u16 num_nh_buckets; member97 struct nh_res_bucket nh_buckets[] __counted_by(num_nh_buckets);217 u16 num_nh_buckets; member219 struct nh_notifier_single_info nhs[] __counted_by(num_nh_buckets);
165 u16 num_nh_buckets = res_table->num_nh_buckets; in nh_notifier_res_table_info_init() local170 size = struct_size(info->nh_res_table, nhs, num_nh_buckets); in nh_notifier_res_table_info_init()176 info->nh_res_table->num_nh_buckets = num_nh_buckets; in nh_notifier_res_table_info_init()179 for (i = 0; i < num_nh_buckets; i++) { in nh_notifier_res_table_info_init()563 const u16 num_nh_buckets = cfg->nh_grp_res_num_buckets; in nexthop_res_table_alloc() local567 size = struct_size(res_table, nh_buckets, num_nh_buckets); in nexthop_res_table_alloc()578 res_table->num_nh_buckets = num_nh_buckets; in nexthop_res_table_alloc()654 res_table->num_nh_buckets) || in nla_put_nh_group_res()1479 u16 bucket_index = hash % res_table->num_nh_buckets; in nexthop_select_path_res()1860 for (i = 0; i < res_table->num_nh_buckets; i++) { in nh_res_table_upkeep()[all …]
1138 occ = info->nh_res_table->num_nh_buckets; in nsim_nexthop_create()
4974 if (nh_res_table->num_nh_buckets < 32) { in mlxsw_sp_nexthop_obj_res_group_size_validate()4984 if (nh_res_table->num_nh_buckets >= size_range->start && in mlxsw_sp_nexthop_obj_res_group_size_validate()4985 nh_res_table->num_nh_buckets <= size_range->end) { in mlxsw_sp_nexthop_obj_res_group_size_validate()4998 nh_res_table->num_nh_buckets, in mlxsw_sp_nexthop_obj_res_group_size_validate()5000 if (err || nh_res_table->num_nh_buckets != alloc_size) { in mlxsw_sp_nexthop_obj_res_group_size_validate()5022 for (i = 0; i < nh_res_table->num_nh_buckets; i++) { in mlxsw_sp_nexthop_obj_res_group_validate()5191 nhs = info->nh_res_table->num_nh_buckets; in mlxsw_sp_nexthop_obj_group_info_init()