Skip to content

Commit 5bcf925

Browse files
idoschkuba-moo
authored andcommitted
mlxsw: spectrum_acl_tcam: Rate limit error message
In the rare cases when the device resources are exhausted it is likely that the rehash delayed work will fail. An error message will be printed whenever this happens which can be overwhelming considering the fact that the work is per-region and that there can be hundreds of regions. Fix by rate limiting the error message. Fixes: e5e7962 ("mlxsw: spectrum_acl: Implement region migration according to hints") Signed-off-by: Ido Schimmel <idosch@nvidia.com> Tested-by: Alexander Zubkov <green@qrator.net> Reviewed-by: Petr Machata <petrm@nvidia.com> Signed-off-by: Petr Machata <petrm@nvidia.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://lore.kernel.org/r/c510763b2ebd25e7990d80183feff91cde593145.1713797103.git.petrm@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 5422598 commit 5bcf925

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1450,7 +1450,7 @@ mlxsw_sp_acl_tcam_vregion_rehash(struct mlxsw_sp *mlxsw_sp,
14501450
err = mlxsw_sp_acl_tcam_vregion_migrate(mlxsw_sp, vregion,
14511451
ctx, credits);
14521452
if (err) {
1453-
dev_err(mlxsw_sp->bus_info->dev, "Failed to migrate vregion\n");
1453+
dev_err_ratelimited(mlxsw_sp->bus_info->dev, "Failed to migrate vregion\n");
14541454
return;
14551455
}
14561456

0 commit comments

Comments
 (0)