Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1345144

[net-next][PATCH v2 09/13] RDS: IB: handle the RDMA CM time wait event

From Santosh Shilimkar <santosh.shilimkar@oracle.com>
Newsgroups linux.kernel
Subject [net-next][PATCH v2 09/13] RDS: IB: handle the RDMA CM time wait event
Date 2016-02-28 03:30 +0100
Message-ID <r6Zho-3WL-15@gated-at.bofh.it> (permalink)
References <r6Zhn-3WL-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Drop the RDS connection on RDMA_CM_EVENT_TIMEWAIT_EXIT so that
it can reconnect and resume.

While testing fastreg, this error happened in couple of tests but
was getting un-noticed.

Signed-off-by: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
---
 net/rds/rdma_transport.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/net/rds/rdma_transport.c b/net/rds/rdma_transport.c
index 4f4b3d8..7220beb 100644
--- a/net/rds/rdma_transport.c
+++ b/net/rds/rdma_transport.c
@@ -117,6 +117,14 @@ int rds_rdma_cm_event_handler(struct rdma_cm_id *cm_id,
 		rds_conn_drop(conn);
 		break;
 
+	case RDMA_CM_EVENT_TIMEWAIT_EXIT:
+		if (conn) {
+			pr_info("RDS: RDMA_CM_EVENT_TIMEWAIT_EXIT event: dropping connection %pI4->%pI4\n",
+				&conn->c_laddr, &conn->c_faddr);
+			rds_conn_drop(conn);
+		}
+		break;
+
 	default:
 		/* things like device disconnect? */
 		printk(KERN_ERR "RDS: unknown event %u (%s)!\n",
-- 
1.9.1

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[net-next][PATCH v2 00/13] RDS: Major clean-up with couple of new features for 4.6 Santosh Shilimkar <santosh.shilimkar@oracle.com> - 2016-02-28 03:30 +0100
  [net-next][PATCH v2 12/13] RDS: IB: allocate extra space on queues for FRMR support Santosh Shilimkar <santosh.shilimkar@oracle.com> - 2016-02-28 03:30 +0100
  [net-next][PATCH v2 09/13] RDS: IB: handle the RDMA CM time wait event Santosh Shilimkar <santosh.shilimkar@oracle.com> - 2016-02-28 03:30 +0100
  [net-next][PATCH v2 04/13] RDS: IB: Remove the RDS_IB_SEND_OP dependency Santosh Shilimkar <santosh.shilimkar@oracle.com> - 2016-02-28 03:30 +0100
  [net-next][PATCH v2 10/13] RDS: IB: add mr reused stats Santosh Shilimkar <santosh.shilimkar@oracle.com> - 2016-02-28 03:30 +0100
  [net-next][PATCH v2 11/13] RDS: IB: add Fastreg MR (FRMR) detection support Santosh Shilimkar <santosh.shilimkar@oracle.com> - 2016-02-28 03:30 +0100
    Re: [net-next][PATCH v2 11/13] RDS: IB: add Fastreg MR (FRMR)  detection support Christoph Hellwig <hch@infradead.org> - 2016-02-28 10:10 +0100
      Re: [net-next][PATCH v2 11/13] RDS: IB: add Fastreg MR (FRMR)  detection support "santosh.shilimkar@oracle.com" <santosh.shilimkar@oracle.com> - 2016-02-28 11:30 +0100
  [net-next][PATCH v2 02/13] RDS: Add support for SO_TIMESTAMP for incoming messages Santosh Shilimkar <santosh.shilimkar@oracle.com> - 2016-02-28 03:30 +0100
  [net-next][PATCH v2 05/13] RDS: IB: Re-organise ibmr code Santosh Shilimkar <santosh.shilimkar@oracle.com> - 2016-02-28 03:30 +0100
  [net-next][PATCH v2 03/13] MAINTAINERS: update RDS entry Santosh Shilimkar <santosh.shilimkar@oracle.com> - 2016-02-28 03:30 +0100
  [net-next][PATCH v2 08/13] RDS: IB: add connection info to ibmr Santosh Shilimkar <santosh.shilimkar@oracle.com> - 2016-02-28 03:30 +0100
  [net-next][PATCH v2 13/13] RDS: IB: Support Fastreg MR (FRMR) memory registration mode Santosh Shilimkar <santosh.shilimkar@oracle.com> - 2016-02-28 03:30 +0100
  Re: [net-next][PATCH v2 00/13] RDS: Major clean-up with couple of  new features for 4.6 David Miller <davem@davemloft.net> - 2016-03-01 23:40 +0100
    Re: [net-next][PATCH v2 00/13] RDS: Major clean-up with couple of new  features for 4.6 santosh shilimkar <santosh.shilimkar@oracle.com> - 2016-03-02 00:10 +0100

csiph-web