Home
last modified time | relevance | path

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

/openbmc/linux/net/ipv4/
H A 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 …]
/openbmc/linux/include/net/
H A 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
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_router.c4844 const struct nh_notifier_res_table_info *nh_res_table, in mlxsw_sp_nexthop_obj_res_group_size_validate() argument
4851 if (nh_res_table->num_nh_buckets < 32) { in mlxsw_sp_nexthop_obj_res_group_size_validate()
4861 if (nh_res_table->num_nh_buckets >= size_range->start && in mlxsw_sp_nexthop_obj_res_group_size_validate()
4862 nh_res_table->num_nh_buckets <= size_range->end) { in mlxsw_sp_nexthop_obj_res_group_size_validate()
4875 nh_res_table->num_nh_buckets, in mlxsw_sp_nexthop_obj_res_group_size_validate()
4877 if (err || nh_res_table->num_nh_buckets != alloc_size) { in mlxsw_sp_nexthop_obj_res_group_size_validate()
4887 const struct nh_notifier_res_table_info *nh_res_table, in mlxsw_sp_nexthop_obj_res_group_validate() argument
4894 nh_res_table, in mlxsw_sp_nexthop_obj_res_group_validate()
4899 for (i = 0; i < nh_res_table->num_nh_buckets; i++) { in mlxsw_sp_nexthop_obj_res_group_validate()
4903 nh = &nh_res_table->nhs[i]; in mlxsw_sp_nexthop_obj_res_group_validate()
[all …]
/openbmc/linux/drivers/net/netdevsim/
H A Dfib.c1138 occ = info->nh_res_table->num_nh_buckets; in nsim_nexthop_create()