All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] RDMA/rxe: Ratelimit error messages of read_reply()
@ 2022-08-25 11:02 Daisuke Matsuda
  2022-08-25 15:55 ` Bob Pearson
  2022-08-26 12:28 ` Jason Gunthorpe
  0 siblings, 2 replies; 13+ messages in thread
From: Daisuke Matsuda @ 2022-08-25 11:02 UTC (permalink / raw)
  To: leonro, jgg, zyjzyj2000; +Cc: linux-rdma, Daisuke Matsuda

When responder cannot copy data from a user MR, error messages overflow.
This is because an incoming RDMA Read request can results in multiple Read
responses. If the target MR is somehow unavailable, then the error message
is generated for every Read response.

For the same reason, the error message for packet transmission should also
be ratelimited.

Signed-off-by: Daisuke Matsuda <matsuda-daisuke@fujitsu.com>
---
 drivers/infiniband/sw/rxe/rxe_resp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/infiniband/sw/rxe/rxe_resp.c b/drivers/infiniband/sw/rxe/rxe_resp.c
index b36ec5c4d5e0..f9e9679b5e32 100644
--- a/drivers/infiniband/sw/rxe/rxe_resp.c
+++ b/drivers/infiniband/sw/rxe/rxe_resp.c
@@ -812,7 +812,7 @@ static enum resp_states read_reply(struct rxe_qp *qp,
 	err = rxe_mr_copy(mr, res->read.va, payload_addr(&ack_pkt),
 			  payload, RXE_FROM_MR_OBJ);
 	if (err)
-		pr_err("Failed copying memory\n");
+		pr_err_ratelimited("Failed copying memory\n");
 	if (mr)
 		rxe_put(mr);
 
@@ -824,7 +824,7 @@ static enum resp_states read_reply(struct rxe_qp *qp,
 
 	err = rxe_xmit_packet(qp, &ack_pkt, skb);
 	if (err) {
-		pr_err("Failed sending RDMA reply.\n");
+		pr_err_ratelimited("Failed sending RDMA reply.\n");
 		return RESPST_ERR_RNR;
 	}
 
-- 
2.31.1


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

end of thread, other threads:[~2022-08-30  9:55 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-25 11:02 [PATCH] RDMA/rxe: Ratelimit error messages of read_reply() Daisuke Matsuda
2022-08-25 15:55 ` Bob Pearson
2022-08-26 12:28 ` Jason Gunthorpe
2022-08-29  5:16   ` matsuda-daisuke
2022-08-29  5:44   ` [PATCH] RDMA/rxe: Delete error messages triggered by incoming Read requests Daisuke Matsuda
2022-08-29  5:51     ` Cheng Xu
2022-08-29  6:31     ` Zhu Yanjun
2022-08-29  7:02       ` Leon Romanovsky
2022-08-29  7:13         ` Zhu Yanjun
2022-08-29  7:36     ` Li Zhijian
2022-08-29 10:21       ` matsuda-daisuke
2022-08-30  9:44         ` Li Zhijian
2022-08-30  9:54           ` Li Zhijian

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.