[openib-general] [PATCH] 3/3 [libibverbs] Added support to IBV_EVENT_GID_CHANGE async event

Dotan Barak dotanb at dev.mellanox.co.il
Wed Nov 8 03:48:27 PST 2006


Added support to IBV_EVENT_GID_CHANGE async event to libibverbs.

Signed-off-by: Dotan Barak <dotanb at mellanox.co.il>

---
Index: last_stable/src/userspace/libibverbs/include/infiniband/verbs.h
===================================================================
--- last_stable.orig/src/userspace/libibverbs/include/infiniband/verbs.h	2006-10-26 10:42:37.000000000 +0200
+++ last_stable/src/userspace/libibverbs/include/infiniband/verbs.h	2006-10-26 10:42:55.000000000 +0200
@@ -197,7 +197,8 @@ enum ibv_event_type {
 	IBV_EVENT_SRQ_ERR,
 	IBV_EVENT_SRQ_LIMIT_REACHED,
 	IBV_EVENT_QP_LAST_WQE_REACHED,
-	IBV_EVENT_CLIENT_REREGISTER
+	IBV_EVENT_CLIENT_REREGISTER,
+	IBV_EVENT_GID_CHANGE
 };
 
 struct ibv_async_event {
Index: last_stable/src/userspace/libibverbs/examples/asyncwatch.c
===================================================================
--- last_stable.orig/src/userspace/libibverbs/examples/asyncwatch.c	2006-10-26 10:44:52.000000000 +0200
+++ last_stable/src/userspace/libibverbs/examples/asyncwatch.c	2006-10-26 10:45:16.000000000 +0200
@@ -59,6 +59,9 @@ static const char *event_name_str(enum i
 		return "IBV_EVENT_SM_CHANGE";
 	case IBV_EVENT_CLIENT_REREGISTER:
 		return "IBV_EVENT_CLIENT_REREGISTER";
+	case IBV_EVENT_GID_CHANGE:
+		return "IBV_EVENT_GID_CHANGE";
+
 
 	case IBV_EVENT_CQ_ERR:
 	case IBV_EVENT_QP_FATAL:






More information about the general mailing list