summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp
diff options
context:
space:
mode:
authorSteve Wise <swise@opengridcomputing.com>2016-10-26 21:36:48 +0200
committerDoug Ledford <dledford@redhat.com>2016-12-14 17:38:28 +0100
commit1e38a366ee86ac2b7a8110775cb3353649b18b70 (patch)
tree2c7850ea91522fb4d8868076574125e6596239b4 /drivers/infiniband/ulp
parentrds_rdma: log the connection reject message (diff)
downloadlinux-1e38a366ee86ac2b7a8110775cb3353649b18b70.tar.xz
linux-1e38a366ee86ac2b7a8110775cb3353649b18b70.zip
ib_isert: log the connection reject message
Acked-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Steve Wise <swise@opengridcomputing.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/ulp')
-rw-r--r--drivers/infiniband/ulp/isert/ib_isert.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/isert/ib_isert.c b/drivers/infiniband/ulp/isert/ib_isert.c
index 6dd43f63238e..37016f01b5a5 100644
--- a/drivers/infiniband/ulp/isert/ib_isert.c
+++ b/drivers/infiniband/ulp/isert/ib_isert.c
@@ -795,6 +795,8 @@ isert_cma_handler(struct rdma_cm_id *cma_id, struct rdma_cm_event *event)
*/
return 1;
case RDMA_CM_EVENT_REJECTED: /* FALLTHRU */
+ isert_info("Connection rejected: %s\n",
+ rdma_reject_msg(cma_id, event->status));
case RDMA_CM_EVENT_UNREACHABLE: /* FALLTHRU */
case RDMA_CM_EVENT_CONNECT_ERROR:
ret = isert_connect_error(cma_id);