Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_router.c8098 static int mlxsw_sp_rif_index_alloc(struct mlxsw_sp *mlxsw_sp, u16 *p_rif_index, in mlxsw_sp_rif_index_alloc() argument
8101 *p_rif_index = gen_pool_alloc(mlxsw_sp->router->rifs_table, in mlxsw_sp_rif_index_alloc()
8103 if (*p_rif_index == 0) in mlxsw_sp_rif_index_alloc()
8105 *p_rif_index -= MLXSW_SP_ROUTER_GENALLOC_OFFSET; in mlxsw_sp_rif_index_alloc()
8108 WARN_ON_ONCE(*p_rif_index % rif_entries); in mlxsw_sp_rif_index_alloc()