Skip to content

Commit c70b132

Browse files
jpirkodavem330
authored andcommitted
mlxsw: spectrum_acl: Remove RTNL lock assertions from ERP code
No longer require RTNL lock in this code. Newly introduced mutexes take care of guarding objagg and bloom filter. There is no need to guard gen_pool_alloc()/gen_pool_free() as they are fine to be called lockless. Signed-off-by: Jiri Pirko <[email protected]> Signed-off-by: Ido Schimmel <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 7b0f62e commit c70b132

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,11 +1007,6 @@ mlxsw_sp_acl_erp_mask_get(struct mlxsw_sp_acl_atcam_region *aregion,
10071007
struct mlxsw_sp_acl_erp_key key;
10081008
struct objagg_obj *objagg_obj;
10091009

1010-
/* eRPs are allocated from a shared resource, but currently all
1011-
* allocations are done under RTNL.
1012-
*/
1013-
ASSERT_RTNL();
1014-
10151010
memcpy(key.mask, mask, MLXSW_REG_PTCEX_FLEX_KEY_BLOCKS_LEN);
10161011
key.ctcam = ctcam;
10171012
mutex_lock(&erp_table->objagg_lock);
@@ -1042,7 +1037,6 @@ int mlxsw_sp_acl_erp_bf_insert(struct mlxsw_sp *mlxsw_sp,
10421037
const struct mlxsw_sp_acl_erp *erp = objagg_obj_root_priv(objagg_obj);
10431038
unsigned int erp_bank;
10441039

1045-
ASSERT_RTNL();
10461040
if (!mlxsw_sp_acl_erp_table_is_used(erp->erp_table))
10471041
return 0;
10481042

0 commit comments

Comments
 (0)