aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorErez Zilber <erezz@voltaire.com>2008-01-17 04:51:58 -0500
committerRoland Dreier <rolandd@cisco.com>2008-01-25 17:15:43 -0500
commita4ef1451dfba92f51934e8331f634497b9ed3393 (patch)
tree049cdae2c051fd16d8c3bc2570cc078c4afe195e /drivers/infiniband
parenta3cd7d9070be417a21905c997ee32d756d999b38 (diff)
IB/iser: Print information about unhandled RDMA CM events
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>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/ulp/iser/iser_verbs.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/infiniband/ulp/iser/iser_verbs.c b/drivers/infiniband/ulp/iser/iser_verbs.c
index 91b2b39eb20c..714b8db02b29 100644
--- a/drivers/infiniband/ulp/iser/iser_verbs.c
+++ b/drivers/infiniband/ulp/iser/iser_verbs.c
@@ -475,13 +475,11 @@ static int iser_cma_handler(struct rdma_cm_id *cma_id, struct rdma_cm_event *eve
475 iser_disconnected_handler(cma_id); 475 iser_disconnected_handler(cma_id);
476 break; 476 break;
477 case RDMA_CM_EVENT_DEVICE_REMOVAL: 477 case RDMA_CM_EVENT_DEVICE_REMOVAL:
478 iser_err("Device removal is currently unsupported\n");
478 BUG(); 479 BUG();
479 break; 480 break;
480 case RDMA_CM_EVENT_CONNECT_RESPONSE:
481 BUG();
482 break;
483 case RDMA_CM_EVENT_CONNECT_REQUEST:
484 default: 481 default:
482 iser_err("Unexpected RDMA CM event (%d)\n", event->event);
485 break; 483 break;
486 } 484 }
487 return ret; 485 return ret;