diff mbox series

[6/7] RDMA/rw: Add info regarding SG count failure

Message ID 1557917371-8777-7-git-send-email-maxg@mellanox.com (mailing list archive)
State Mainlined
Commit 53bfbf9be86e95997d6dfe9dbfd0ffce49339efc
Delegated to: Jason Gunthorpe
Headers show
Series iser/isert/rw-api cleanups | expand

Commit Message

Max Gurtovoy May 15, 2019, 10:49 a.m. UTC
Print the supported and wanted values for SG count during signature
operation.

Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
---
 drivers/infiniband/core/rw.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/infiniband/core/rw.c b/drivers/infiniband/core/rw.c
index deeaf2b4b273..acf9ea625811 100644
--- a/drivers/infiniband/core/rw.c
+++ b/drivers/infiniband/core/rw.c
@@ -357,7 +357,8 @@  int rdma_rw_ctx_signature_init(struct rdma_rw_ctx *ctx, struct ib_qp *qp,
 	int count = 0, ret;
 
 	if (sg_cnt > pages_per_mr || prot_sg_cnt > pages_per_mr) {
-		pr_err("SG count too large\n");
+		pr_err("SG count too large: sg_cnt=%d, prot_sg_cnt=%d, pages_per_mr=%d\n",
+		       sg_cnt, prot_sg_cnt, pages_per_mr);
 		return -EINVAL;
 	}