Searched refs:nh_res_table (Results 1 - 4 of 4) sorted by relevance
/kernel/linux/linux-6.6/net/ipv4/ |
H A D | nexthop.c | 152 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_tabl in nexthop_res_table_alloc() [all...] |
/kernel/linux/linux-6.6/include/net/ |
H A D | nexthop.h | 80 struct nh_res_table { struct 128 struct nh_res_table __rcu *res_table; 214 struct nh_notifier_res_table_info *nh_res_table; member
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_router.c | 4843 const struct nh_notifier_res_table_info *nh_res_table, in mlxsw_sp_nexthop_obj_res_group_size_validate() 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() 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 in mlxsw_sp_nexthop_obj_res_group_validate() 4842 mlxsw_sp_nexthop_obj_res_group_size_validate(struct mlxsw_sp *mlxsw_sp, const struct nh_notifier_res_table_info *nh_res_table, struct netlink_ext_ack *extack) mlxsw_sp_nexthop_obj_res_group_size_validate() argument 4885 mlxsw_sp_nexthop_obj_res_group_validate(struct mlxsw_sp *mlxsw_sp, const struct nh_notifier_res_table_info *nh_res_table, struct netlink_ext_ack *extack) mlxsw_sp_nexthop_obj_res_group_validate() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/netdevsim/ |
H A D | fib.c | 1138 occ = info->nh_res_table->num_nh_buckets; in nsim_nexthop_create()
|
Completed in 22 milliseconds