Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_policer.c18 struct idr policer_idr; member
122 id = idr_alloc(&family->policer_idr, policer, family->start_index, in mlxsw_sp_policer_single_rate_index_alloc()
144 policer = idr_remove(&family->policer_idr, policer_index); in mlxsw_sp_policer_single_rate_index_free()
319 idr_init(&family->policer_idr); in mlxsw_sp_policer_family_register()
339 idr_destroy(&family->policer_idr); in mlxsw_sp_policer_family_register()
350 WARN_ON(!idr_is_empty(&family->policer_idr)); in mlxsw_sp_policer_family_unregister()
351 idr_destroy(&family->policer_idr); in mlxsw_sp_policer_family_unregister()