aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Morgenstein <jackm@dev.mellanox.co.il>2015-07-30 10:34:22 -0400
committerDoug Ledford <dledford@redhat.com>2015-08-30 18:12:22 -0400
commit2cb8e7f86e8cabd1e8aa608fc2a44e5bfa1d81ca (patch)
treeeae3a5ff2fd1f5cd763561326ac72bbec36ef2ea
parent90c1d8b6350cca9d8a234f03c77a317a7613bcee (diff)
IB/mlx4: Demote mcg message from warning to debug
The mcg "too many pending requests" warning message fills the log when OpenSM is downed. Demote the message from warning level to debug level. Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
-rw-r--r--drivers/infiniband/hw/mlx4/mcg.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/mlx4/mcg.c b/drivers/infiniband/hw/mlx4/mcg.c
index a0559a8af4f4..2d5bccd71fc6 100644
--- a/drivers/infiniband/hw/mlx4/mcg.c
+++ b/drivers/infiniband/hw/mlx4/mcg.c
@@ -51,6 +51,10 @@
51 pr_warn("%s-%d: %16s (port %d): WARNING: " format, __func__, __LINE__,\ 51 pr_warn("%s-%d: %16s (port %d): WARNING: " format, __func__, __LINE__,\
52 (group)->name, group->demux->port, ## arg) 52 (group)->name, group->demux->port, ## arg)
53 53
54#define mcg_debug_group(group, format, arg...) \
55 pr_debug("%s-%d: %16s (port %d): WARNING: " format, __func__, __LINE__,\
56 (group)->name, (group)->demux->port, ## arg)
57
54#define mcg_error_group(group, format, arg...) \ 58#define mcg_error_group(group, format, arg...) \
55 pr_err(" %16s: " format, (group)->name, ## arg) 59 pr_err(" %16s: " format, (group)->name, ## arg)
56 60
@@ -962,8 +966,8 @@ int mlx4_ib_mcg_multiplex_handler(struct ib_device *ibdev, int port,
962 mutex_lock(&group->lock); 966 mutex_lock(&group->lock);
963 if (group->func[slave].num_pend_reqs > MAX_PEND_REQS_PER_FUNC) { 967 if (group->func[slave].num_pend_reqs > MAX_PEND_REQS_PER_FUNC) {
964 mutex_unlock(&group->lock); 968 mutex_unlock(&group->lock);
965 mcg_warn_group(group, "Port %d, Func %d has too many pending requests (%d), dropping\n", 969 mcg_debug_group(group, "Port %d, Func %d has too many pending requests (%d), dropping\n",
966 port, slave, MAX_PEND_REQS_PER_FUNC); 970 port, slave, MAX_PEND_REQS_PER_FUNC);
967 release_group(group, 0); 971 release_group(group, 0);
968 kfree(req); 972 kfree(req);
969 return -ENOMEM; 973 return -ENOMEM;