Skip to content

Commit

Permalink
rds_rdma: log the connection reject message
Browse files Browse the repository at this point in the history
Acked-by: Santosh Shilimkar <[email protected]>
Signed-off-by: Steve Wise <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
  • Loading branch information
Steve Wise authored and dledford committed Dec 14, 2016
1 parent 97540bb commit 39384f0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion net/rds/rdma_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 39384f0

Please sign in to comment.