IB/iser: Print information about unhandled RDMA CM events
authorErez Zilber <erezz@voltaire.com>
Thu, 17 Jan 2008 09:51:58 +0000 (11:51 +0200)
committerRoland Dreier <rolandd@cisco.com>
Fri, 25 Jan 2008 22:15:43 +0000 (14:15 -0800)
Some RDMA CM events are not supported or not handled in iSER.
This patch adds some info (printk) for the user about them.

Signed-off-by: Erez Zilber <erezz@voltaire.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/iser/iser_verbs.c

index 91b2b39..714b8db 100644 (file)
@@ -475,13 +475,11 @@ static int iser_cma_handler(struct rdma_cm_id *cma_id, struct rdma_cm_event *eve
                iser_disconnected_handler(cma_id);
                break;
        case RDMA_CM_EVENT_DEVICE_REMOVAL:
+               iser_err("Device removal is currently unsupported\n");
                BUG();
                break;
-       case RDMA_CM_EVENT_CONNECT_RESPONSE:
-               BUG();
-               break;
-       case RDMA_CM_EVENT_CONNECT_REQUEST:
        default:
+               iser_err("Unexpected RDMA CM event (%d)\n", event->event);
                break;
        }
        return ret;