Skip to content

Commit

Permalink
RDS: IB: handle the RDMA CM time wait event
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Santosh Shilimkar <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
SantoshShilimkar authored and davem330 committed Mar 2, 2016
1 parent d4de76d commit 37ea401
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions net/rds/rdma_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 37ea401

Please sign in to comment.