linux-nvme.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: swise@opengridcomputing.com (Steve Wise)
Subject: [PATCH v4 6/8] rds_rdma: log the connection reject message
Date: Tue, 25 Oct 2016 12:35:02 -0700	[thread overview]
Message-ID: <4d057d8bb97d732d320223d6bf04674b66f5a667.1477426743.git.swise@opengridcomputing.com> (raw)
In-Reply-To: <cover.1477426743.git.swise@opengridcomputing.com>

Acked-by: Santosh Shilimkar <santosh.shilimkar at oracle.com>
Signed-off-by: Steve Wise <swise at opengridcomputing.com>
---
 net/rds/rdma_transport.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/net/rds/rdma_transport.c b/net/rds/rdma_transport.c
index 345f090..d5f3117 100644
--- a/net/rds/rdma_transport.c
+++ b/net/rds/rdma_transport.c
@@ -100,11 +100,14 @@ int rds_rdma_cm_event_handler(struct rdma_cm_id *cm_id,
 		trans->cm_connect_complete(conn, event);
 		break;
 
+	case RDMA_CM_EVENT_REJECTED:
+		rdsdebug("Connection rejected: %s\n",
+			 rdma_reject_msg(cm_id, event->status));
+		/* FALLTHROUGH */
 	case RDMA_CM_EVENT_ADDR_ERROR:
 	case RDMA_CM_EVENT_ROUTE_ERROR:
 	case RDMA_CM_EVENT_CONNECT_ERROR:
 	case RDMA_CM_EVENT_UNREACHABLE:
-	case RDMA_CM_EVENT_REJECTED:
 	case RDMA_CM_EVENT_DEVICE_REMOVAL:
 	case RDMA_CM_EVENT_ADDR_CHANGE:
 		if (conn)
-- 
2.7.0

  parent reply	other threads:[~2016-10-25 19:35 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-25 20:19 [PATCH v4 0/8] connect reject event helpers Steve Wise
2016-10-25 18:33 ` [PATCH v4 1/8] rdma_cm: add rdma_reject_msg() helper function Steve Wise
2016-10-25 18:33 ` [PATCH v4 2/8] rdma_cm: add rdma_is_consumer_reject() " Steve Wise
2016-10-25 19:33 ` [PATCH v4 3/8] rdma_cm: add rdma_consumer_reject_data " Steve Wise
2016-10-25 19:34 ` [PATCH v4 4/8] nvme-rdma: use rdma connection reject helper functions Steve Wise
2016-10-26 15:26   ` Bart Van Assche
2016-10-26 16:17     ` Steve Wise
2016-10-26 19:39     ` Steve Wise
2016-10-26 19:51       ` Steve Wise
2016-10-25 19:35 ` [PATCH v4 5/8] ib_iser: log the connection reject message Steve Wise
2016-10-25 19:35 ` [PATCH v4 7/8] ib_isert: " Steve Wise
2016-10-26  8:30   ` Sagi Grimberg
2016-10-25 19:35 ` [PATCH v4 8/8] nvmet_rdma: " Steve Wise
2016-10-26  8:30   ` Sagi Grimberg
2016-10-25 19:35 ` Steve Wise [this message]
2016-10-26  8:32 ` [PATCH v4 0/8] connect reject event helpers Sagi Grimberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4d057d8bb97d732d320223d6bf04674b66f5a667.1477426743.git.swise@opengridcomputing.com \
    --to=swise@opengridcomputing.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).