diff options
| author | Or Gerlitz <ogerlitz@voltaire.com> | 2008-07-22 17:16:21 -0400 |
|---|---|---|
| committer | Roland Dreier <rolandd@cisco.com> | 2008-07-22 17:16:21 -0400 |
| commit | 2f5de1512884da8c74bec2c76e8f114b972ab4be (patch) | |
| tree | 66590b1ec65138e125a6af65833a22f0553828b5 | |
| parent | 38ca83a588662f0af684ba2567dd910a564268ab (diff) | |
IB/iser: Add support for RDMA_CM_EVENT_ADDR_CHANGE event
Enhance iser to act upon notification on network stack changes that
make its RDMA connection unaligned with the link used by the stack for
the <src,dst> IPs used to establish the connection.
When RDMA_CM_EVENT_ADDR_CHANGE arrives, just disconnect the
connection, assuming that the user space iscsid daemon will reconnect,
and the new connection will be aligned with the IP stack.
Signed-off-by: Or Gerlitz <ogerlitz@voltaire.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
| -rw-r--r-- | drivers/infiniband/ulp/iser/iser_verbs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/iser/iser_verbs.c b/drivers/infiniband/ulp/iser/iser_verbs.c index 3a917c1f796f..63462ecca147 100644 --- a/drivers/infiniband/ulp/iser/iser_verbs.c +++ b/drivers/infiniband/ulp/iser/iser_verbs.c | |||
| @@ -483,6 +483,7 @@ static int iser_cma_handler(struct rdma_cm_id *cma_id, struct rdma_cm_event *eve | |||
| 483 | break; | 483 | break; |
| 484 | case RDMA_CM_EVENT_DISCONNECTED: | 484 | case RDMA_CM_EVENT_DISCONNECTED: |
| 485 | case RDMA_CM_EVENT_DEVICE_REMOVAL: | 485 | case RDMA_CM_EVENT_DEVICE_REMOVAL: |
| 486 | case RDMA_CM_EVENT_ADDR_CHANGE: | ||
| 486 | iser_disconnected_handler(cma_id); | 487 | iser_disconnected_handler(cma_id); |
| 487 | break; | 488 | break; |
| 488 | default: | 489 | default: |
