ib_isert: log the connection reject message
authorSteve Wise <swise@opengridcomputing.com>
Wed, 26 Oct 2016 19:36:48 +0000 (12:36 -0700)
committerDoug Ledford <dledford@redhat.com>
Wed, 14 Dec 2016 16:38:28 +0000 (11:38 -0500)
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>
drivers/infiniband/ulp/isert/ib_isert.c

index 6dd43f63238e8e68cbcd97b37947af039589a207..37016f01b5a54ad01640094910b3eadd463b1eae 100644 (file)
@@ -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);