summaryrefslogtreecommitdiff
path: root/drivers/infiniband/core/rw.c
diff options
context:
space:
mode:
authorMax Gurtovoy <maxg@mellanox.com>2019-05-15 13:49:30 +0300
committerJason Gunthorpe <jgg@mellanox.com>2019-05-21 21:01:06 +0300
commit53bfbf9be86e95997d6dfe9dbfd0ffce49339efc (patch)
treec11e167f89590a1f9874e5e3525112e63c726fe6 /drivers/infiniband/core/rw.c
parentf73e4076426b3494269e46fd5cf9d89ff63a8598 (diff)
downloadlinux-53bfbf9be86e95997d6dfe9dbfd0ffce49339efc.tar.xz
RDMA/rw: Add info regarding SG count failure
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> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/core/rw.c')
-rw-r--r--drivers/infiniband/core/rw.c3
1 files changed, 2 insertions, 1 deletions
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;
}