7154908 IB_EVENT_LID_CHANGE should be IB_EVENT_GID_CHANGE
authorBoris Chiu <Boris.Chiu@Sun.COM>
Wed, 21 Mar 2012 09:48:34 -0700
changeset 741 83cb76377624
parent 740 80e91c717db8
child 742 8e2984d64f67
7154908 IB_EVENT_LID_CHANGE should be IB_EVENT_GID_CHANGE 7005645 qperf: '-cm' option doesn't work
components/open-fabrics/libibverbs/patches/base.patch
components/open-fabrics/qperf/patches/base.patch
--- a/components/open-fabrics/libibverbs/patches/base.patch	Tue Mar 20 13:18:56 2012 -0700
+++ b/components/open-fabrics/libibverbs/patches/base.patch	Wed Mar 21 09:48:34 2012 -0700
@@ -767,6 +767,17 @@
  }
  
  static void add_device(struct ibv_device *dev,
+diff -r -u /tmp/846623/libibverbs-1.1.4/src/enum_strs.c libibverbs-1.1.4/src/enum_strs.c
+--- /tmp/846623/libibverbs-1.1.4/src/enum_strs.c	Wed Sep 16 04:27:22 2009
++++ libibverbs-1.1.4/src/enum_strs.c	Fri Mar 16 22:51:54 2012
[email protected]@ -85,6 +85,7 @@
+ 		[IBV_EVENT_SRQ_LIMIT_REACHED]	= "SRQ limit reached",
+ 		[IBV_EVENT_QP_LAST_WQE_REACHED]	= "last WQE reached",
+ 		[IBV_EVENT_CLIENT_REREGISTER]	= "client reregistration",
++		[IBV_EVENT_GID_CHANGE]		= "GID change",
+ 	};
+ 
+ 	if (event < IBV_EVENT_CQ_ERR || event > IBV_EVENT_CLIENT_REREGISTER)
 diff -r -u /tmp/846623/libibverbs-1.1.4/src/sysfs.c libibverbs-1.1.4/src/sysfs.c
 --- /tmp/846623/libibverbs-1.1.4/src/sysfs.c	Wed Sep 16 04:27:22 2009
 +++ libibverbs-1.1.4/src/sysfs.c	Fri Feb 11 04:02:33 2011
--- a/components/open-fabrics/qperf/patches/base.patch	Tue Mar 20 13:18:56 2012 -0700
+++ b/components/open-fabrics/qperf/patches/base.patch	Wed Mar 21 09:48:34 2012 -0700
@@ -416,26 +416,7 @@
  }
  
  
[email protected]@ -1856,7 +1909,18 @@
-     struct sockaddr_in saddr ={
-         .sin_family      = AF_INET,
-         .sin_addr.s_addr = htonl(INADDR_ANY),
-+#if (defined(__SVR4) && defined(__sun))
-+/*
-+ * Use the default listen port for right now to
-+ * workaround CR 7099964 sol_ofs needs to support allocation
-+ * of dynamic ports on rdma_bind_addr()
-+ * need to remove when this is fix
-+ */
-+#define DEF_RDMA_LISTEN_PORT 19785           /* Listen port */
-+        .sin_port        = htons(DEF_RDMA_LISTEN_PORT)
-+#else
-         .sin_port        = htons(0)
-+#endif
-     };
-     CMINFO *cm = &dev->cm;
- 
[email protected]@ -1864,10 +1928,16 @@
[email protected]@ -1864,10 +1917,16 @@
          error(0, "rdma_bind_addr failed");
      port = ntohs(rdma_get_src_port(cm->id));
      encode_uint32(&port, port);