Skip to content

Commit 5a212e0

Browse files
lrq-maxSaeed Mahameed
authored andcommitted
net/mlx5: rate limit alloc_ent error messages
when debug a bug, which triggers TX hang, and kernel log is spammed with the following info message [ 1172.044764] mlx5_core 0000:21:00.0: cmd_work_handler:930:(pid 8): failed to allocate command entry Signed-off-by: Li RongQing <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent ab9341b commit 5a212e0

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mellanox/mlx5/core/cmd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ static void cmd_work_handler(struct work_struct *work)
866866
if (!ent->page_queue) {
867867
alloc_ret = alloc_ent(cmd);
868868
if (alloc_ret < 0) {
869-
mlx5_core_err(dev, "failed to allocate command entry\n");
869+
mlx5_core_err_rl(dev, "failed to allocate command entry\n");
870870
if (ent->callback) {
871871
ent->callback(-EAGAIN, ent->context);
872872
mlx5_free_cmd_msg(dev, ent->out);

0 commit comments

Comments
 (0)