[ofa-general] [PATCH v2 3/4] ib/iser: add support for the ADDR_CHANGE rdma-cm event

Or Gerlitz ogerlitz at voltaire.com
Thu Jun 19 07:07:56 PDT 2008


enhance iser to act upon notification on network stack changes which
makes 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,
following that the user space iscsid daemon would reconnect, and the new
connection would be aligned with the IP stack.

Signed-off-by: Or Gerlitz <ogerlitz at voltaire.com>

 drivers/infiniband/ulp/iser/iser_verbs.c |    1 +
 1 files changed, 1 insertion(+)

Index: infiniband/drivers/infiniband/ulp/iser/iser_verbs.c
===================================================================
--- infiniband.orig/drivers/infiniband/ulp/iser/iser_verbs.c
+++ infiniband/drivers/infiniband/ulp/iser/iser_verbs.c
@@ -472,6 +472,7 @@ static int iser_cma_handler(struct rdma_
 		break;
 	case RDMA_CM_EVENT_DISCONNECTED:
 	case RDMA_CM_EVENT_DEVICE_REMOVAL:
+	case RDMA_CM_EVENT_ADDR_CHANGE:
 		iser_disconnected_handler(cma_id);
 		break;
 	default:



More information about the general mailing list