From: Steve Wise Date: Wed, 26 Oct 2016 19:36:48 +0000 (-0700) Subject: rds_rdma: log the connection reject message X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=39384f04d03e10986c783cd527555225ec592821;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git rds_rdma: log the connection reject message Acked-by: Santosh Shilimkar Signed-off-by: Steve Wise Signed-off-by: Doug Ledford --- diff --git a/net/rds/rdma_transport.c b/net/rds/rdma_transport.c index 345f09059e9f..d5f311767157 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)