Home
last modified time | relevance | path

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

/linux-6.1.9/tools/testing/selftests/drivers/net/mlxsw/spectrum/
Drif_counter_scale.sh8 local max_rifs
11 max_rifs=$(devlink_resource_size_get rifs)
15 ((max_rifs -= $(devlink_resource_occ_get rifs)))
22 if ((max_cnts > max_rifs && should_fail)); then
27 target=$((max_rifs < max_cnts ? max_rifs : max_cnts))
/linux-6.1.9/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/
Drif_counter_scale.sh8 local max_rifs
11 max_rifs=$(devlink_resource_size_get rifs)
15 ((max_rifs -= $(devlink_resource_occ_get rifs)))
22 if ((max_cnts > max_rifs && should_fail)); then
27 target=$((max_rifs < max_cnts ? max_rifs : max_cnts))
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum.c3711 u64 max_rifs; in mlxsw_sp_resources_rifs_register() local
3716 max_rifs = MLXSW_CORE_RES_GET(mlxsw_core, MAX_RIFS); in mlxsw_sp_resources_rifs_register()
3717 devlink_resource_size_params_init(&size_params, max_rifs, max_rifs, in mlxsw_sp_resources_rifs_register()
3720 return devl_resource_register(devlink, "rifs", max_rifs, in mlxsw_sp_resources_rifs_register()
Dspectrum_router.c2311 u64 max_rifs = MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_RIFS); in mlxsw_sp_router_neigh_ent_ipv4_process() local
2320 if (WARN_ON_ONCE(rif >= max_rifs)) in mlxsw_sp_router_neigh_ent_ipv4_process()
9945 u64 max_rifs = MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_RIFS); in mlxsw_sp_rifs_init() local
9954 mlxsw_sp->router->rifs = kcalloc(max_rifs, in mlxsw_sp_rifs_init()
10345 u64 max_rifs; in __mlxsw_sp_router_init() local
10350 max_rifs = MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_RIFS); in __mlxsw_sp_router_init()
10354 mlxsw_reg_rgcr_max_router_interfaces_set(rgcr_pl, max_rifs); in __mlxsw_sp_router_init()