Home
last modified time | relevance | path

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

/Linux-v6.6/net/ipv4/
Dnexthop.c152 struct nh_res_table *res_table = rtnl_dereference(nhg->res_table); in nh_notifier_res_table_info_init()
158 size = struct_size(info->nh_res_table, nhs, num_nh_buckets); in nh_notifier_res_table_info_init()
159 info->nh_res_table = __vmalloc(size, GFP_KERNEL | __GFP_ZERO | in nh_notifier_res_table_info_init()
161 if (!info->nh_res_table) in nh_notifier_res_table_info_init()
164 info->nh_res_table->num_nh_buckets = num_nh_buckets; in nh_notifier_res_table_info_init()
173 __nh_notifier_single_info_init(&info->nh_res_table->nhs[i], in nh_notifier_res_table_info_init()
200 vfree(info->nh_res_table); in nh_notifier_grp_info_fini()
256 struct nh_res_table *res_table; in nh_notifier_res_bucket_idle_timer_get()
545 static struct nh_res_table *
549 struct nh_res_table *res_table; in nexthop_res_table_alloc()
[all …]
/Linux-v6.6/include/net/
Dnexthop.h80 struct nh_res_table { struct
128 struct nh_res_table __rcu *res_table;
214 struct nh_notifier_res_table_info *nh_res_table; member
/Linux-v6.6/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_router.c4843 const struct nh_notifier_res_table_info *nh_res_table, in mlxsw_sp_nexthop_obj_res_group_size_validate() argument
4850 if (nh_res_table->num_nh_buckets < 32) { in mlxsw_sp_nexthop_obj_res_group_size_validate()
4860 if (nh_res_table->num_nh_buckets >= size_range->start && in mlxsw_sp_nexthop_obj_res_group_size_validate()
4861 nh_res_table->num_nh_buckets <= size_range->end) { in mlxsw_sp_nexthop_obj_res_group_size_validate()
4874 nh_res_table->num_nh_buckets, in mlxsw_sp_nexthop_obj_res_group_size_validate()
4876 if (err || nh_res_table->num_nh_buckets != alloc_size) { in mlxsw_sp_nexthop_obj_res_group_size_validate()
4886 const struct nh_notifier_res_table_info *nh_res_table, in mlxsw_sp_nexthop_obj_res_group_validate() argument
4893 nh_res_table, in mlxsw_sp_nexthop_obj_res_group_validate()
4898 for (i = 0; i < nh_res_table->num_nh_buckets; i++) { in mlxsw_sp_nexthop_obj_res_group_validate()
4902 nh = &nh_res_table->nhs[i]; in mlxsw_sp_nexthop_obj_res_group_validate()
[all …]
/Linux-v6.6/drivers/net/netdevsim/
Dfib.c1138 occ = info->nh_res_table->num_nh_buckets; in nsim_nexthop_create()