You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
2.0 KiB
57 lines
2.0 KiB
From 33326c01f2afd8a6879e9bcc963dc2c90c13f9a8 Mon Sep 17 00:00:00 2001
|
|
From: Alaa Hleihel <ahleihel@redhat.com>
|
|
Date: Sun, 10 May 2020 15:04:13 -0400
|
|
Subject: [PATCH 095/312] [netdrv] net/mlx5: rate limit alloc_ent error
|
|
messages
|
|
|
|
Message-id: <20200510150452.10307-49-ahleihel@redhat.com>
|
|
Patchwork-id: 306672
|
|
Patchwork-instance: patchwork
|
|
O-Subject: [RHEL8.3 BZ 1789380 v2 48/87] net/mlx5: rate limit alloc_ent error messages
|
|
Bugzilla: 1789380
|
|
RH-Acked-by: Kamal Heib <kheib@redhat.com>
|
|
RH-Acked-by: Jarod Wilson <jarod@redhat.com>
|
|
RH-Acked-by: Tony Camuso <tcamuso@redhat.com>
|
|
RH-Acked-by: Jonathan Toppins <jtoppins@redhat.com>
|
|
|
|
Bugzilla: http://bugzilla.redhat.com/1789380
|
|
Upstream: v5.5-rc1
|
|
|
|
commit 5a212e0cac548e5e4fb3f2ba1b5b2f6c8949687d
|
|
Author: Li RongQing <lirongqing@baidu.com>
|
|
Date: Thu Oct 24 16:23:33 2019 +0800
|
|
|
|
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 <lirongqing@baidu.com>
|
|
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
|
|
|
|
Signed-off-by: Alaa Hleihel <ahleihel@redhat.com>
|
|
Signed-off-by: Frantisek Hrbata <fhrbata@redhat.com>
|
|
---
|
|
drivers/net/ethernet/mellanox/mlx5/core/cmd.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/cmd.c b/drivers/net/ethernet/mellanox/mlx5/core/cmd.c
|
|
index 8242f96ab931..71a52b890f38 100644
|
|
--- a/drivers/net/ethernet/mellanox/mlx5/core/cmd.c
|
|
+++ b/drivers/net/ethernet/mellanox/mlx5/core/cmd.c
|
|
@@ -866,7 +866,7 @@ static void cmd_work_handler(struct work_struct *work)
|
|
if (!ent->page_queue) {
|
|
alloc_ret = alloc_ent(cmd);
|
|
if (alloc_ret < 0) {
|
|
- mlx5_core_err(dev, "failed to allocate command entry\n");
|
|
+ mlx5_core_err_rl(dev, "failed to allocate command entry\n");
|
|
if (ent->callback) {
|
|
ent->callback(-EAGAIN, ent->context);
|
|
mlx5_free_cmd_msg(dev, ent->out);
|
|
--
|
|
2.13.6
|
|
|