linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH rdma-next] RDMA/core: Use pr_warn_ratelimited
@ 2019-11-05  3:48 Yixian Liu
  2019-11-05  4:09 ` Parav Pandit
  0 siblings, 1 reply; 7+ messages in thread
From: Yixian Liu @ 2019-11-05  3:48 UTC (permalink / raw)
  To: dledford, jgg; +Cc: parav, leon, linux-rdma, linuxarm

This warning can be triggered easily when adding a large number of
VLANs while the capacity of GID table is small.

Fixes: 598ff6bae689 ("IB/core: Refactor GID modify code for RoCE")
Signed-off-by: Yixian Liu <liuyixian@huawei.com>
---
 drivers/infiniband/core/cache.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/infiniband/core/cache.c b/drivers/infiniband/core/cache.c
index 00fb3ea..2990075 100644
--- a/drivers/infiniband/core/cache.c
+++ b/drivers/infiniband/core/cache.c
@@ -579,8 +579,8 @@ static int __ib_cache_gid_add(struct ib_device *ib_dev, u8 port,
 out_unlock:
 	mutex_unlock(&table->lock);
 	if (ret)
-		pr_warn("%s: unable to add gid %pI6 error=%d\n",
-			__func__, gid->raw, ret);
+		pr_warn_ratelimited("%s: unable to add gid %pI6 error=%d\n",
+				    __func__, gid->raw, ret);
 	return ret;
 }
 
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-11-06  2:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-05  3:48 [PATCH rdma-next] RDMA/core: Use pr_warn_ratelimited Yixian Liu
2019-11-05  4:09 ` Parav Pandit
2019-11-05  7:55   ` Liuyixian (Eason)
2019-11-05 15:02     ` Parav Pandit
2019-11-06  2:15       ` Liuyixian (Eason)
2019-11-05 14:41   ` Leon Romanovsky
2019-11-06  2:15     ` Liuyixian (Eason)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).