[ofa-general] [PATCH] opensm: support more PortInfo:CapabilityMask bits

Sasha Khapyorsky sashak at voltaire.com
Sat Oct 25 08:06:15 PDT 2008


Support new PortInfo:CapabilityMask bits -
IsOtherLocalChangesNoticeSupported and
IsLinkSpeedWidthPairsTabaleSupported.

Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
 opensm/include/iba/ib_types.h |    4 ++--
 opensm/opensm/osm_helper.c    |    8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/opensm/include/iba/ib_types.h b/opensm/include/iba/ib_types.h
index 6ca3f3e..257b19c 100644
--- a/opensm/include/iba/ib_types.h
+++ b/opensm/include/iba/ib_types.h
@@ -4470,8 +4470,8 @@ typedef struct _ib_port_info {
 #define IB_PORT_CAP_HAS_BM        (CL_HTON32(0x00800000))
 #define IB_PORT_CAP_HAS_LINK_RT_LATENCY (CL_HTON32(0x01000000))
 #define IB_PORT_CAP_HAS_CLIENT_REREG (CL_HTON32(0x02000000))
-#define IB_PORT_CAP_RESV26        (CL_HTON32(0x04000000))
-#define IB_PORT_CAP_RESV27        (CL_HTON32(0x08000000))
+#define IB_PORT_CAP_HAS_OTHER_LOCAL_CHANGES_NTC (CL_HTON32(0x04000000))
+#define IB_PORT_CAP_HAS_LINK_SPEED_WIDTH_PAIRS_TBL (CL_HTON32(0x08000000))
 #define IB_PORT_CAP_RESV28        (CL_HTON32(0x10000000))
 #define IB_PORT_CAP_RESV29        (CL_HTON32(0x20000000))
 #define IB_PORT_CAP_RESV30        (CL_HTON32(0x40000000))
diff --git a/opensm/opensm/osm_helper.c b/opensm/opensm/osm_helper.c
index 73c0462..2ed0011 100644
--- a/opensm/opensm/osm_helper.c
+++ b/opensm/opensm/osm_helper.c
@@ -727,15 +727,15 @@ dbg_get_capabilities_str(IN char *p_buf,
 				&total_len) != IB_SUCCESS)
 			return;
 	}
-	if (p_pi->capability_mask & IB_PORT_CAP_RESV26) {
+	if (p_pi->capability_mask & IB_PORT_CAP_HAS_OTHER_LOCAL_CHANGES_NTC) {
 		if (dbg_do_line(&p_local, buf_size, p_prefix_str,
-				"IB_PORT_CAP_RESV26\n",
+				"IB_PORT_CAP_HAS_OTHER_LOCAL_CHANGES_NTC\n",
 				&total_len) != IB_SUCCESS)
 			return;
 	}
-	if (p_pi->capability_mask & IB_PORT_CAP_RESV27) {
+	if (p_pi->capability_mask & IB_PORT_CAP_HAS_LINK_SPEED_WIDTH_PAIRS_TBL) {
 		if (dbg_do_line(&p_local, buf_size, p_prefix_str,
-				"IB_PORT_CAP_RESV27\n",
+				"IB_PORT_CAP_HAS_LINK_SPEED_WIDTH_PAIRS_TBL\n",
 				&total_len) != IB_SUCCESS)
 			return;
 	}
-- 
1.6.0.3.517.g759a




More information about the general mailing list