components/open-fabrics/libibmad/patches/base.patch
author Alex Chiu <Alex.Chiu@Oracle.COM>
Fri, 26 Apr 2013 17:13:13 -0700
branchs11u1-sru
changeset 2587 576c01af714c
parent 2586 66a039ce738d
child 2639 b9179dac77f4
permissions -rw-r--r--
15816849 SUNBT7199357 libibmad: encoding VFs in transaction IDs
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
369
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
     1
diff -r -u /tmp/libibmad-1.3.7/Makefile.in libibmad-1.3.7/Makefile.in
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
     2
--- /tmp/libibmad-1.3.7/Makefile.in	Wed Feb 16 02:25:43 2011
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
     3
+++ libibmad-1.3.7/Makefile.in	Fri Feb 25 03:14:42 2011
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
     4
@@ -357,8 +357,8 @@
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
     5
 	  else :; fi; \
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
     6
 	done; \
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
     7
 	test -z "$$list2" || { \
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
     8
-	  echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
     9
-	  $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    10
+	  echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) -m 755 $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    11
+	  $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) -m 755 $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    12
 	}
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    13
 
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    14
 uninstall-libLTLIBRARIES:
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    15
diff -r -u /tmp/libibmad-1.3.7/include/infiniband/mad.h libibmad-1.3.7/include/infiniband/mad.h
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    16
--- /tmp/libibmad-1.3.7/include/infiniband/mad.h	Wed Feb 16 02:12:53 2011
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
    17
+++ libibmad-1.3.7/include/infiniband/mad.h	Thu Feb 24 11:27:11 2011
2586
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    18
@@ -62,6 +62,7 @@
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    19
 #define IB_PC_DATA_SZ		(IB_MAD_SIZE - IB_PC_DATA_OFFS)
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    20
 #define IB_SA_MCM_RECSZ		53
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    21
 #define IB_SA_PR_RECSZ		64
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    22
+#define IB_SA_NR_RECSZ		108
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    23
 #define IB_BM_DATA_OFFS		64
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    24
 #define IB_BM_DATA_SZ		(IB_MAD_SIZE - IB_BM_DATA_OFFS)
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    25
 #define IB_BM_BKEY_OFFS		24
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    26
@@ -579,7 +580,8 @@
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    27
 	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    28
 	 * GUIDInfo fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    29
 	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    30
-	IB_GUID_GUID0_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    31
+	IB_GUID_GUID0_F, /* Obsolete, kept for compatibility
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    32
+			    Use IB_GI_GUID0_F going forward */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    33
 
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    34
 	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    35
 	 * ClassPortInfo fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    36
@@ -610,7 +612,8 @@
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    37
 	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    38
 	 * PortXmitDataSL fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    39
 	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    40
-	IB_PC_XMT_DATA_SL_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    41
+	IB_PC_XMT_DATA_SL_FIRST_F, /* for PortSelect and CounterSelect, use IB_P
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    42
+C_PORT_SELECT_F and IB_PC_COUNTER_SELECT_F */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    43
 	IB_PC_XMT_DATA_SL0_F = IB_PC_XMT_DATA_SL_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    44
 	IB_PC_XMT_DATA_SL1_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    45
 	IB_PC_XMT_DATA_SL2_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    46
@@ -632,7 +635,8 @@
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    47
 	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    48
 	 * PortRcvDataSL fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    49
 	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    50
-	IB_PC_RCV_DATA_SL_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    51
+	IB_PC_RCV_DATA_SL_FIRST_F, /* for PortSelect and CounterSelect, use IB_P
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    52
+C_PORT_SELECT_F and IB_PC_COUNTER_SELECT_F */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    53
 	IB_PC_RCV_DATA_SL0_F = IB_PC_RCV_DATA_SL_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    54
 	IB_PC_RCV_DATA_SL1_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    55
 	IB_PC_RCV_DATA_SL2_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    56
@@ -654,6 +658,8 @@
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    57
 	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    58
 	 * PortXmitDiscardDetails fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    59
 	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    60
+	/* for PortSelect and CounterSelect, use IB_PC_PORT_SELECT_F and IB_PC_C
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    61
+OUNTER_SELECT_F */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    62
 	IB_PC_XMT_INACT_DISC_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    63
 	IB_PC_XMT_NEIGH_MTU_DISC_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    64
 	IB_PC_XMT_SW_LIFE_DISC_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    65
@@ -663,6 +669,8 @@
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    66
 	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    67
 	 * PortRcvErrorDetails fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    68
 	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    69
+	/* for PortSelect and CounterSelect, use IB_PC_PORT_SELECT_F and IB_PC_C
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    70
+OUNTER_SELECT_F */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    71
 	IB_PC_RCV_LOCAL_PHY_ERR_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    72
 	IB_PC_RCV_MALFORMED_PKT_ERR_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    73
 	IB_PC_RCV_BUF_OVR_ERR_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    74
@@ -706,6 +714,483 @@
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    75
 	IB_PSC_SAMPLES_ONLY_OPT_MASK_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    76
 	IB_PSC_LAST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    77
 
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    78
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    79
+	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    80
+	 * GUIDInfo fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    81
+	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    82
+	IB_GI_GUID0_F, /* a duplicate of IB_GUID_GUID0_F for backwards
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    83
+			  compatibility */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    84
+	IB_GI_GUID1_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    85
+	IB_GI_GUID2_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    86
+	IB_GI_GUID3_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    87
+	IB_GI_GUID4_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    88
+	IB_GI_GUID5_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    89
+	IB_GI_GUID6_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    90
+	IB_GI_GUID7_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    91
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    92
+	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    93
+	 * GUID Info Record
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    94
+	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    95
+	IB_SA_GIR_LID_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    96
+	IB_SA_GIR_BLOCKNUM_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    97
+	IB_SA_GIR_GUID0_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    98
+	IB_SA_GIR_GUID1_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
    99
+	IB_SA_GIR_GUID2_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   100
+	IB_SA_GIR_GUID3_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   101
+	IB_SA_GIR_GUID4_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   102
+	IB_SA_GIR_GUID5_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   103
+	IB_SA_GIR_GUID6_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   104
+	IB_SA_GIR_GUID7_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   105
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   106
+	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   107
+	 * More PortInfo fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   108
+	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   109
+	IB_PORT_CAPMASK2_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   110
+	IB_PORT_LINK_SPEED_EXT_ACTIVE_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   111
+	IB_PORT_LINK_SPEED_EXT_SUPPORTED_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   112
+	IB_PORT_LINK_SPEED_EXT_ENABLED_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   113
+	IB_PORT_LINK_SPEED_EXT_LAST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   114
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   115
+	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   116
+	 * PortExtendedSpeedsCounters fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   117
+	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   118
+	IB_PESC_PORT_SELECT_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   119
+	IB_PESC_COUNTER_SELECT_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   120
+	IB_PESC_SYNC_HDR_ERR_CTR_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   121
+	IB_PESC_UNK_BLOCK_CTR_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   122
+	IB_PESC_ERR_DET_CTR_LANE0_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   123
+	IB_PESC_ERR_DET_CTR_LANE1_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   124
+	IB_PESC_ERR_DET_CTR_LANE2_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   125
+	IB_PESC_ERR_DET_CTR_LANE3_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   126
+	IB_PESC_ERR_DET_CTR_LANE4_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   127
+	IB_PESC_ERR_DET_CTR_LANE5_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   128
+	IB_PESC_ERR_DET_CTR_LANE6_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   129
+	IB_PESC_ERR_DET_CTR_LANE7_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   130
+	IB_PESC_ERR_DET_CTR_LANE8_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   131
+	IB_PESC_ERR_DET_CTR_LANE9_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   132
+	IB_PESC_ERR_DET_CTR_LANE10_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   133
+	IB_PESC_ERR_DET_CTR_LANE11_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   134
+	IB_PESC_FEC_CORR_BLOCK_CTR_LANE0_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   135
+	IB_PESC_FEC_CORR_BLOCK_CTR_LANE1_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   136
+	IB_PESC_FEC_CORR_BLOCK_CTR_LANE2_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   137
+	IB_PESC_FEC_CORR_BLOCK_CTR_LANE3_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   138
+	IB_PESC_FEC_CORR_BLOCK_CTR_LANE4_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   139
+	IB_PESC_FEC_CORR_BLOCK_CTR_LANE5_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   140
+	IB_PESC_FEC_CORR_BLOCK_CTR_LANE6_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   141
+	IB_PESC_FEC_CORR_BLOCK_CTR_LANE7_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   142
+	IB_PESC_FEC_CORR_BLOCK_CTR_LANE8_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   143
+	IB_PESC_FEC_CORR_BLOCK_CTR_LANE9_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   144
+	IB_PESC_FEC_CORR_BLOCK_CTR_LANE10_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   145
+	IB_PESC_FEC_CORR_BLOCK_CTR_LANE11_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   146
+	IB_PESC_FEC_UNCORR_BLOCK_CTR_LANE0_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   147
+	IB_PESC_FEC_UNCORR_BLOCK_CTR_LANE1_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   148
+	IB_PESC_FEC_UNCORR_BLOCK_CTR_LANE2_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   149
+	IB_PESC_FEC_UNCORR_BLOCK_CTR_LANE3_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   150
+	IB_PESC_FEC_UNCORR_BLOCK_CTR_LANE4_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   151
+	IB_PESC_FEC_UNCORR_BLOCK_CTR_LANE5_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   152
+	IB_PESC_FEC_UNCORR_BLOCK_CTR_LANE6_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   153
+	IB_PESC_FEC_UNCORR_BLOCK_CTR_LANE7_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   154
+	IB_PESC_FEC_UNCORR_BLOCK_CTR_LANE8_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   155
+	IB_PESC_FEC_UNCORR_BLOCK_CTR_LANE9_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   156
+	IB_PESC_FEC_UNCORR_BLOCK_CTR_LANE10_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   157
+	IB_PESC_FEC_UNCORR_BLOCK_CTR_LANE11_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   158
+	IB_PESC_LAST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   159
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   160
+	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   161
+	 * PortOpRcvCounters fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   162
+	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   163
+	IB_PC_PORT_OP_RCV_COUNTERS_FIRST_F, /* for PortSelect and CounterSelect, use IB_PC_PORT_SELECT_F and IB_PC_COUNTER_SELECT_F */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   164
+	IB_PC_PORT_OP_RCV_PKTS_F = IB_PC_PORT_OP_RCV_COUNTERS_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   165
+	IB_PC_PORT_OP_RCV_DATA_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   166
+	IB_PC_PORT_OP_RCV_COUNTERS_LAST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   167
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   168
+	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   169
+	 * PortFlowCtlCounters fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   170
+	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   171
+	IB_PC_PORT_FLOW_CTL_COUNTERS_FIRST_F, /* for PortSelect and CounterSelect, use IB_PC_PORT_SELECT_F and IB_PC_COUNTER_SELECT_F */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   172
+	IB_PC_PORT_XMIT_FLOW_PKTS_F = IB_PC_PORT_FLOW_CTL_COUNTERS_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   173
+	IB_PC_PORT_RCV_FLOW_PKTS_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   174
+	IB_PC_PORT_FLOW_CTL_COUNTERS_LAST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   175
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   176
+	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   177
+	 * PortVLOpPackets fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   178
+	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   179
+	IB_PC_PORT_VL_OP_PACKETS_FIRST_F, /* for PortSelect and CounterSelect, use IB_PC_PORT_SELECT_F and IB_PC_COUNTER_SELECT_F */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   180
+	IB_PC_PORT_VL_OP_PACKETS0_F = IB_PC_PORT_VL_OP_PACKETS_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   181
+	IB_PC_PORT_VL_OP_PACKETS1_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   182
+	IB_PC_PORT_VL_OP_PACKETS2_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   183
+	IB_PC_PORT_VL_OP_PACKETS3_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   184
+	IB_PC_PORT_VL_OP_PACKETS4_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   185
+	IB_PC_PORT_VL_OP_PACKETS5_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   186
+	IB_PC_PORT_VL_OP_PACKETS6_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   187
+	IB_PC_PORT_VL_OP_PACKETS7_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   188
+	IB_PC_PORT_VL_OP_PACKETS8_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   189
+	IB_PC_PORT_VL_OP_PACKETS9_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   190
+	IB_PC_PORT_VL_OP_PACKETS10_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   191
+	IB_PC_PORT_VL_OP_PACKETS11_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   192
+	IB_PC_PORT_VL_OP_PACKETS12_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   193
+	IB_PC_PORT_VL_OP_PACKETS13_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   194
+	IB_PC_PORT_VL_OP_PACKETS14_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   195
+	IB_PC_PORT_VL_OP_PACKETS15_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   196
+	IB_PC_PORT_VL_OP_PACKETS_LAST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   197
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   198
+	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   199
+	 * PortVLOpData fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   200
+	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   201
+	IB_PC_PORT_VL_OP_DATA_FIRST_F, /* for PortSelect and CounterSelect, use IB_PC_PORT_SELECT_F and IB_PC_COUNTER_SELECT_F */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   202
+	IB_PC_PORT_VL_OP_DATA0_F = IB_PC_PORT_VL_OP_DATA_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   203
+	IB_PC_PORT_VL_OP_DATA1_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   204
+	IB_PC_PORT_VL_OP_DATA2_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   205
+	IB_PC_PORT_VL_OP_DATA3_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   206
+	IB_PC_PORT_VL_OP_DATA4_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   207
+	IB_PC_PORT_VL_OP_DATA5_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   208
+	IB_PC_PORT_VL_OP_DATA6_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   209
+	IB_PC_PORT_VL_OP_DATA7_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   210
+	IB_PC_PORT_VL_OP_DATA8_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   211
+	IB_PC_PORT_VL_OP_DATA9_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   212
+	IB_PC_PORT_VL_OP_DATA10_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   213
+	IB_PC_PORT_VL_OP_DATA11_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   214
+	IB_PC_PORT_VL_OP_DATA12_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   215
+	IB_PC_PORT_VL_OP_DATA13_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   216
+	IB_PC_PORT_VL_OP_DATA14_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   217
+	IB_PC_PORT_VL_OP_DATA15_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   218
+	IB_PC_PORT_VL_OP_DATA_LAST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   219
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   220
+	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   221
+	 * PortVLXmitFlowCtlUpdateErrors fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   222
+	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   223
+	IB_PC_PORT_VL_XMIT_FLOW_CTL_UPDATE_ERRORS_FIRST_F, /* for PortSelect and CounterSelect, use IB_PC_PORT_SELECT_F and IB_PC_COUNTER_SELECT_F */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   224
+	IB_PC_PORT_VL_XMIT_FLOW_CTL_UPDATE_ERRORS0_F = IB_PC_PORT_VL_XMIT_FLOW_CTL_UPDATE_ERRORS_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   225
+	IB_PC_PORT_VL_XMIT_FLOW_CTL_UPDATE_ERRORS1_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   226
+	IB_PC_PORT_VL_XMIT_FLOW_CTL_UPDATE_ERRORS2_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   227
+	IB_PC_PORT_VL_XMIT_FLOW_CTL_UPDATE_ERRORS3_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   228
+	IB_PC_PORT_VL_XMIT_FLOW_CTL_UPDATE_ERRORS4_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   229
+	IB_PC_PORT_VL_XMIT_FLOW_CTL_UPDATE_ERRORS5_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   230
+	IB_PC_PORT_VL_XMIT_FLOW_CTL_UPDATE_ERRORS6_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   231
+	IB_PC_PORT_VL_XMIT_FLOW_CTL_UPDATE_ERRORS7_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   232
+	IB_PC_PORT_VL_XMIT_FLOW_CTL_UPDATE_ERRORS8_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   233
+	IB_PC_PORT_VL_XMIT_FLOW_CTL_UPDATE_ERRORS9_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   234
+	IB_PC_PORT_VL_XMIT_FLOW_CTL_UPDATE_ERRORS10_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   235
+	IB_PC_PORT_VL_XMIT_FLOW_CTL_UPDATE_ERRORS11_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   236
+	IB_PC_PORT_VL_XMIT_FLOW_CTL_UPDATE_ERRORS12_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   237
+	IB_PC_PORT_VL_XMIT_FLOW_CTL_UPDATE_ERRORS13_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   238
+	IB_PC_PORT_VL_XMIT_FLOW_CTL_UPDATE_ERRORS14_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   239
+	IB_PC_PORT_VL_XMIT_FLOW_CTL_UPDATE_ERRORS15_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   240
+	IB_PC_PORT_VL_XMIT_FLOW_CTL_UPDATE_ERRORS_LAST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   241
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   242
+	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   243
+	 * PortVLXmitWaitCounters fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   244
+	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   245
+	IB_PC_PORT_VL_XMIT_WAIT_COUNTERS_FIRST_F, /* for PortSelect and CounterSelect, use IB_PC_PORT_SELECT_F and IB_PC_COUNTER_SELECT_F */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   246
+	IB_PC_PORT_VL_XMIT_WAIT0_F = IB_PC_PORT_VL_XMIT_WAIT_COUNTERS_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   247
+	IB_PC_PORT_VL_XMIT_WAIT1_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   248
+	IB_PC_PORT_VL_XMIT_WAIT2_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   249
+	IB_PC_PORT_VL_XMIT_WAIT3_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   250
+	IB_PC_PORT_VL_XMIT_WAIT4_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   251
+	IB_PC_PORT_VL_XMIT_WAIT5_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   252
+	IB_PC_PORT_VL_XMIT_WAIT6_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   253
+	IB_PC_PORT_VL_XMIT_WAIT7_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   254
+	IB_PC_PORT_VL_XMIT_WAIT8_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   255
+	IB_PC_PORT_VL_XMIT_WAIT9_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   256
+	IB_PC_PORT_VL_XMIT_WAIT10_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   257
+	IB_PC_PORT_VL_XMIT_WAIT11_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   258
+	IB_PC_PORT_VL_XMIT_WAIT12_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   259
+	IB_PC_PORT_VL_XMIT_WAIT13_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   260
+	IB_PC_PORT_VL_XMIT_WAIT14_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   261
+	IB_PC_PORT_VL_XMIT_WAIT15_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   262
+	IB_PC_PORT_VL_XMIT_WAIT_COUNTERS_LAST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   263
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   264
+	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   265
+	 * SwPortVLCongestion fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   266
+	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   267
+	IB_PC_SW_PORT_VL_CONGESTION_FIRST_F, /* for PortSelect and CounterSelect, use IB_PC_PORT_SELECT_F and IB_PC_COUNTER_SELECT_F */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   268
+	IB_PC_SW_PORT_VL_CONGESTION0_F = IB_PC_SW_PORT_VL_CONGESTION_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   269
+	IB_PC_SW_PORT_VL_CONGESTION1_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   270
+	IB_PC_SW_PORT_VL_CONGESTION2_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   271
+	IB_PC_SW_PORT_VL_CONGESTION3_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   272
+	IB_PC_SW_PORT_VL_CONGESTION4_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   273
+	IB_PC_SW_PORT_VL_CONGESTION5_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   274
+	IB_PC_SW_PORT_VL_CONGESTION6_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   275
+	IB_PC_SW_PORT_VL_CONGESTION7_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   276
+	IB_PC_SW_PORT_VL_CONGESTION8_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   277
+	IB_PC_SW_PORT_VL_CONGESTION9_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   278
+	IB_PC_SW_PORT_VL_CONGESTION10_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   279
+	IB_PC_SW_PORT_VL_CONGESTION11_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   280
+	IB_PC_SW_PORT_VL_CONGESTION12_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   281
+	IB_PC_SW_PORT_VL_CONGESTION13_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   282
+	IB_PC_SW_PORT_VL_CONGESTION14_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   283
+	IB_PC_SW_PORT_VL_CONGESTION15_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   284
+	IB_PC_SW_PORT_VL_CONGESTION_LAST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   285
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   286
+	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   287
+	 * PortRcvConCtrl fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   288
+	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   289
+	IB_PC_RCV_CON_CTRL_FIRST_F, /* for PortSelect and CounterSelect, use IB_PC_PORT_SELECT_F and IB_PC_COUNTER_SELECT_F */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   290
+	IB_PC_RCV_CON_CTRL_PKT_RCV_FECN_F = IB_PC_RCV_CON_CTRL_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   291
+	IB_PC_RCV_CON_CTRL_PKT_RCV_BECN_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   292
+	IB_PC_RCV_CON_CTRL_LAST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   293
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   294
+	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   295
+	 * PortSLRcvFECN fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   296
+	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   297
+	IB_PC_SL_RCV_FECN_FIRST_F, /* for PortSelect and CounterSelect, use IB_PC_PORT_SELECT_F and IB_PC_COUNTER_SELECT_F */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   298
+	IB_PC_SL_RCV_FECN0_F = IB_PC_SL_RCV_FECN_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   299
+	IB_PC_SL_RCV_FECN1_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   300
+	IB_PC_SL_RCV_FECN2_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   301
+	IB_PC_SL_RCV_FECN3_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   302
+	IB_PC_SL_RCV_FECN4_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   303
+	IB_PC_SL_RCV_FECN5_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   304
+	IB_PC_SL_RCV_FECN6_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   305
+	IB_PC_SL_RCV_FECN7_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   306
+	IB_PC_SL_RCV_FECN8_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   307
+	IB_PC_SL_RCV_FECN9_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   308
+	IB_PC_SL_RCV_FECN10_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   309
+	IB_PC_SL_RCV_FECN11_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   310
+	IB_PC_SL_RCV_FECN12_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   311
+	IB_PC_SL_RCV_FECN13_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   312
+	IB_PC_SL_RCV_FECN14_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   313
+	IB_PC_SL_RCV_FECN15_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   314
+	IB_PC_SL_RCV_FECN_LAST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   315
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   316
+	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   317
+	 * PortSLRcvBECN fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   318
+	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   319
+	IB_PC_SL_RCV_BECN_FIRST_F, /* for PortSelect and CounterSelect, use IB_PC_PORT_SELECT_F and IB_PC_COUNTER_SELECT_F */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   320
+	IB_PC_SL_RCV_BECN0_F = IB_PC_SL_RCV_BECN_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   321
+	IB_PC_SL_RCV_BECN1_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   322
+	IB_PC_SL_RCV_BECN2_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   323
+	IB_PC_SL_RCV_BECN3_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   324
+	IB_PC_SL_RCV_BECN4_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   325
+	IB_PC_SL_RCV_BECN5_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   326
+	IB_PC_SL_RCV_BECN6_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   327
+	IB_PC_SL_RCV_BECN7_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   328
+	IB_PC_SL_RCV_BECN8_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   329
+	IB_PC_SL_RCV_BECN9_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   330
+	IB_PC_SL_RCV_BECN10_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   331
+	IB_PC_SL_RCV_BECN11_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   332
+	IB_PC_SL_RCV_BECN12_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   333
+	IB_PC_SL_RCV_BECN13_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   334
+	IB_PC_SL_RCV_BECN14_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   335
+	IB_PC_SL_RCV_BECN15_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   336
+	IB_PC_SL_RCV_BECN_LAST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   337
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   338
+	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   339
+	 * PortXmitConCtrl fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   340
+	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   341
+	IB_PC_XMIT_CON_CTRL_FIRST_F, /* for PortSelect and CounterSelect, use IB_PC_PORT_SELECT_F and IB_PC_COUNTER_SELECT_F */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   342
+	IB_PC_XMIT_CON_CTRL_TIME_CONG_F = IB_PC_XMIT_CON_CTRL_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   343
+	IB_PC_XMIT_CON_CTRL_LAST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   344
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   345
+	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   346
+	 * PortVLXmitTimeCong fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   347
+	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   348
+	IB_PC_VL_XMIT_TIME_CONG_FIRST_F, /* for PortSelect and CounterSelect, use IB_PC_PORT_SELECT_F and IB_PC_COUNTER_SELECT_F */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   349
+	IB_PC_VL_XMIT_TIME_CONG0_F = IB_PC_VL_XMIT_TIME_CONG_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   350
+	IB_PC_VL_XMIT_TIME_CONG1_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   351
+	IB_PC_VL_XMIT_TIME_CONG2_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   352
+	IB_PC_VL_XMIT_TIME_CONG3_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   353
+	IB_PC_VL_XMIT_TIME_CONG4_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   354
+	IB_PC_VL_XMIT_TIME_CONG5_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   355
+	IB_PC_VL_XMIT_TIME_CONG6_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   356
+	IB_PC_VL_XMIT_TIME_CONG7_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   357
+	IB_PC_VL_XMIT_TIME_CONG8_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   358
+	IB_PC_VL_XMIT_TIME_CONG9_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   359
+	IB_PC_VL_XMIT_TIME_CONG10_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   360
+	IB_PC_VL_XMIT_TIME_CONG11_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   361
+	IB_PC_VL_XMIT_TIME_CONG12_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   362
+	IB_PC_VL_XMIT_TIME_CONG13_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   363
+	IB_PC_VL_XMIT_TIME_CONG14_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   364
+	IB_PC_VL_XMIT_TIME_CONG_LAST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   365
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   366
+	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   367
+	 * Mellanox ExtendedPortInfo fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   368
+	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   369
+	IB_MLNX_EXT_PORT_STATE_CHG_ENABLE_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   370
+	IB_MLNX_EXT_PORT_LINK_SPEED_SUPPORTED_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   371
+	IB_MLNX_EXT_PORT_LINK_SPEED_ENABLED_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   372
+	IB_MLNX_EXT_PORT_LINK_SPEED_ACTIVE_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   373
+	IB_MLNX_EXT_PORT_LAST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   374
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   375
+	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   376
+	 * Congestion Control Mad fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   377
+	 * bytes 24-31 of congestion control mad
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   378
+	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   379
+	IB_CC_CCKEY_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   380
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   381
+	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   382
+	 * CongestionInfo fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   383
+	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   384
+	IB_CC_CONGESTION_INFO_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   385
+	IB_CC_CONGESTION_INFO_F = IB_CC_CONGESTION_INFO_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   386
+	IB_CC_CONGESTION_INFO_CONTROL_TABLE_CAP_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   387
+	IB_CC_CONGESTION_INFO_LAST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   388
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   389
+	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   390
+	 * CongestionKeyInfo fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   391
+	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   392
+	IB_CC_CONGESTION_KEY_INFO_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   393
+	IB_CC_CONGESTION_KEY_INFO_CC_KEY_F = IB_CC_CONGESTION_KEY_INFO_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   394
+	IB_CC_CONGESTION_KEY_INFO_CC_KEY_PROTECT_BIT_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   395
+	IB_CC_CONGESTION_KEY_INFO_CC_KEY_LEASE_PERIOD_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   396
+	IB_CC_CONGESTION_KEY_INFO_CC_KEY_VIOLATIONS_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   397
+	IB_CC_CONGESTION_KEY_INFO_LAST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   398
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   399
+	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   400
+	 * CongestionLog (common) fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   401
+	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   402
+	IB_CC_CONGESTION_LOG_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   403
+	IB_CC_CONGESTION_LOG_LOGTYPE_F = IB_CC_CONGESTION_LOG_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   404
+	IB_CC_CONGESTION_LOG_CONGESTION_FLAGS_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   405
+	IB_CC_CONGESTION_LOG_LAST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   406
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   407
+	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   408
+	 * CongestionLog (Switch) fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   409
+	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   410
+	IB_CC_CONGESTION_LOG_SWITCH_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   411
+	IB_CC_CONGESTION_LOG_SWITCH_LOG_EVENTS_COUNTER_F = IB_CC_CONGESTION_LOG_SWITCH_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   412
+	IB_CC_CONGESTION_LOG_SWITCH_CURRENT_TIME_STAMP_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   413
+	IB_CC_CONGESTION_LOG_SWITCH_PORTMAP_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   414
+	IB_CC_CONGESTION_LOG_SWITCH_LAST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   415
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   416
+	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   417
+	 * CongestionLogEvent (Switch) fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   418
+	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   419
+	IB_CC_CONGESTION_LOG_ENTRY_SWITCH_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   420
+	IB_CC_CONGESTION_LOG_ENTRY_SWITCH_SLID_F = IB_CC_CONGESTION_LOG_ENTRY_SWITCH_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   421
+	IB_CC_CONGESTION_LOG_ENTRY_SWITCH_DLID_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   422
+	IB_CC_CONGESTION_LOG_ENTRY_SWITCH_SL_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   423
+	IB_CC_CONGESTION_LOG_ENTRY_SWITCH_TIMESTAMP_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   424
+	IB_CC_CONGESTION_LOG_ENTRY_SWITCH_LAST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   425
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   426
+	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   427
+	 * CongestionLog (CA) fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   428
+	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   429
+	IB_CC_CONGESTION_LOG_CA_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   430
+	IB_CC_CONGESTION_LOG_CA_THRESHOLD_EVENT_COUNTER_F = IB_CC_CONGESTION_LOG_CA_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   431
+	IB_CC_CONGESTION_LOG_CA_THRESHOLD_CONGESTION_EVENT_MAP_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   432
+	IB_CC_CONGESTION_LOG_CA_CURRENT_TIMESTAMP_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   433
+	IB_CC_CONGESTION_LOG_CA_LAST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   434
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   435
+	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   436
+	 * CongestionLogEvent (CA) fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   437
+	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   438
+	IB_CC_CONGESTION_LOG_ENTRY_CA_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   439
+	IB_CC_CONGESTION_LOG_ENTRY_CA_LOCAL_QP_CN_ENTRY_F = IB_CC_CONGESTION_LOG_ENTRY_CA_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   440
+	IB_CC_CONGESTION_LOG_ENTRY_CA_SL_CN_ENTRY_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   441
+	IB_CC_CONGESTION_LOG_ENTRY_CA_SERVICE_TYPE_CN_ENTRY_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   442
+	IB_CC_CONGESTION_LOG_ENTRY_CA_REMOTE_QP_NUMBER_CN_ENTRY_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   443
+	IB_CC_CONGESTION_LOG_ENTRY_CA_LOCAL_LID_CN_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   444
+	IB_CC_CONGESTION_LOG_ENTRY_CA_REMOTE_LID_CN_ENTRY_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   445
+	IB_CC_CONGESTION_LOG_ENTRY_CA_TIMESTAMP_CN_ENTRY_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   446
+	IB_CC_CONGESTION_LOG_ENTRY_CA_LAST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   447
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   448
+	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   449
+	 * SwitchCongestionSetting fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   450
+	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   451
+	IB_CC_SWITCH_CONGESTION_SETTING_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   452
+	IB_CC_SWITCH_CONGESTION_SETTING_CONTROL_MAP_F = IB_CC_SWITCH_CONGESTION_SETTING_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   453
+	IB_CC_SWITCH_CONGESTION_SETTING_VICTIM_MASK_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   454
+	IB_CC_SWITCH_CONGESTION_SETTING_CREDIT_MASK_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   455
+	IB_CC_SWITCH_CONGESTION_SETTING_THRESHOLD_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   456
+	IB_CC_SWITCH_CONGESTION_SETTING_PACKET_SIZE_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   457
+	IB_CC_SWITCH_CONGESTION_SETTING_CS_THRESHOLD_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   458
+	IB_CC_SWITCH_CONGESTION_SETTING_CS_RETURN_DELAY_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   459
+	IB_CC_SWITCH_CONGESTION_SETTING_MARKING_RATE_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   460
+	IB_CC_SWITCH_CONGESTION_SETTING_LAST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   461
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   462
+	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   463
+	 * SwitchPortCongestionSettingElement fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   464
+	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   465
+	IB_CC_SWITCH_PORT_CONGESTION_SETTING_ELEMENT_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   466
+	IB_CC_SWITCH_PORT_CONGESTION_SETTING_ELEMENT_VALID_F = IB_CC_SWITCH_PORT_CONGESTION_SETTING_ELEMENT_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   467
+	IB_CC_SWITCH_PORT_CONGESTION_SETTING_ELEMENT_CONTROL_TYPE_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   468
+	IB_CC_SWITCH_PORT_CONGESTION_SETTING_ELEMENT_THRESHOLD_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   469
+	IB_CC_SWITCH_PORT_CONGESTION_SETTING_ELEMENT_PACKET_SIZE_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   470
+	IB_CC_SWITCH_PORT_CONGESTION_SETTING_ELEMENT_CONG_PARM_MARKING_RATE_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   471
+	IB_CC_SWITCH_PORT_CONGESTION_SETTING_ELEMENT_LAST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   472
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   473
+	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   474
+	 * CACongestionSetting fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   475
+	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   476
+	IB_CC_CA_CONGESTION_SETTING_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   477
+	IB_CC_CA_CONGESTION_SETTING_PORT_CONTROL_F = IB_CC_CA_CONGESTION_SETTING_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   478
+	IB_CC_CA_CONGESTION_SETTING_CONTROL_MAP_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   479
+	IB_CC_CA_CONGESTION_SETTING_LAST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   480
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   481
+	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   482
+	 * CACongestionEntry fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   483
+	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   484
+	IB_CC_CA_CONGESTION_ENTRY_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   485
+	IB_CC_CA_CONGESTION_ENTRY_CCTI_TIMER_F = IB_CC_CA_CONGESTION_ENTRY_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   486
+	IB_CC_CA_CONGESTION_ENTRY_CCTI_INCREASE_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   487
+	IB_CC_CA_CONGESTION_ENTRY_TRIGGER_THRESHOLD_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   488
+	IB_CC_CA_CONGESTION_ENTRY_CCTI_MIN_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   489
+	IB_CC_CA_CONGESTION_ENTRY_LAST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   490
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   491
+	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   492
+	 * CongestionControlTable fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   493
+	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   494
+	IB_CC_CONGESTION_CONTROL_TABLE_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   495
+	IB_CC_CONGESTION_CONTROL_TABLE_CCTI_LIMIT_F = IB_CC_CONGESTION_CONTROL_TABLE_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   496
+	IB_CC_CONGESTION_CONTROL_TABLE_LAST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   497
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   498
+	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   499
+	 * CongestionControlTableEntry fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   500
+	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   501
+	IB_CC_CONGESTION_CONTROL_TABLE_ENTRY_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   502
+	IB_CC_CONGESTION_CONTROL_TABLE_ENTRY_CCT_SHIFT_F = IB_CC_CONGESTION_CONTROL_TABLE_ENTRY_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   503
+	IB_CC_CONGESTION_CONTROL_TABLE_ENTRY_CCT_MULTIPLIER_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   504
+	IB_CC_CONGESTION_CONTROL_TABLE_ENTRY_LAST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   505
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   506
+	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   507
+	 * Timestamp fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   508
+	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   509
+	IB_CC_TIMESTAMP_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   510
+	IB_CC_TIMESTAMP_F = IB_CC_TIMESTAMP_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   511
+	IB_CC_TIMESTAMP_LAST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   512
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   513
+	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   514
+	 * Node Record
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   515
+	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   516
+	IB_SA_NR_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   517
+	IB_SA_NR_LID_F = IB_SA_NR_FIRST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   518
+	IB_SA_NR_BASEVER_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   519
+	IB_SA_NR_CLASSVER_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   520
+	IB_SA_NR_TYPE_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   521
+	IB_SA_NR_NPORTS_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   522
+	IB_SA_NR_SYSTEM_GUID_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   523
+	IB_SA_NR_GUID_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   524
+	IB_SA_NR_PORT_GUID_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   525
+	IB_SA_NR_PARTITION_CAP_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   526
+	IB_SA_NR_DEVID_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   527
+	IB_SA_NR_REVISION_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   528
+	IB_SA_NR_LOCAL_PORT_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   529
+	IB_SA_NR_VENDORID_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   530
+	IB_SA_NR_NODEDESC_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   531
+	IB_SA_NR_LAST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   532
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   533
+	/*
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   534
+	 * PortSamplesResult fields
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   535
+	 */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   536
+	IB_PSR_TAG_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   537
+	IB_PSR_SAMPLE_STATUS_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   538
+	IB_PSR_COUNTER0_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   539
+	IB_PSR_COUNTER1_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   540
+	IB_PSR_COUNTER2_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   541
+	IB_PSR_COUNTER3_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   542
+	IB_PSR_COUNTER4_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   543
+	IB_PSR_COUNTER5_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   544
+	IB_PSR_COUNTER6_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   545
+	IB_PSR_COUNTER7_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   546
+	IB_PSR_COUNTER8_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   547
+	IB_PSR_COUNTER9_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   548
+	IB_PSR_COUNTER10_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   549
+	IB_PSR_COUNTER11_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   550
+	IB_PSR_COUNTER12_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   551
+	IB_PSR_COUNTER13_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   552
+	IB_PSR_COUNTER14_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   553
+	IB_PSR_LAST_F,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   554
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   555
 	IB_FIELD_LAST_		/* must be last */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   556
 };
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   557
 
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   558
@@ -974,6 +1459,9 @@
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   559
 				 ibmad_gid_t srcgid, ibmad_gid_t destgid,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   560
 				 ib_portid_t * sm_id, void *buf);
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   561
 	/* returns lid */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   562
+MAD_EXPORT int ib_node_query_via(const struct ibmad_port *srcport,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   563
+				 uint64_t guid, ib_portid_t * sm_id,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   564
+				 void *buf);
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   565
 
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   566
 /* resolve.c */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   567
 MAD_EXPORT int ib_resolve_smlid(ib_portid_t * sm_id, int timeout) DEPRECATED;
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   568
@@ -1036,6 +1524,10 @@
369
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   569
 
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   570
 extern MAD_EXPORT int ibdebug;
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   571
 
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   572
+#if !(defined(__SVR4) && defined(__sun))
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   573
+#include <endian.h>
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   574
+#include <byteswap.h>
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   575
+
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   576
 #if __BYTE_ORDER == __LITTLE_ENDIAN
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   577
 #ifndef ntohll
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   578
 static inline uint64_t ntohll(uint64_t x)
2586
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   579
@@ -1063,6 +1555,9 @@
369
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   580
 }
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   581
 #endif
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   582
 #endif				/* __BYTE_ORDER == __BIG_ENDIAN */
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   583
+#else
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   584
+#include <infiniband/ofa_solaris.h>
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   585
+#endif
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   586
 
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   587
 /* Misc. macros: */
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   588
 /** align value \a l to \a size (ceil) */
2586
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   589
@@ -1069,14 +1564,14 @@
369
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   590
 #define ALIGN(l, size) (((l) + ((size) - 1)) / (size) * (size))
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   591
 
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   592
 /** printf style warning MACRO, includes name of function and pid */
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   593
-#define IBWARN(fmt, ...) fprintf(stderr, "ibwarn: [%d] %s: " fmt "\n", getpid(), __func__, ## __VA_ARGS__)
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   594
+#define IBWARN(fmt, ...) fprintf(stderr, "ibwarn: [%d] %s: " fmt "\n", (int)getpid(), __func__, ## __VA_ARGS__)
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   595
 
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   596
-#define IBDEBUG(fmt, ...) fprintf(stdout, "ibdebug: [%d] %s: " fmt "\n", getpid(), __func__, ## __VA_ARGS__)
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   597
+#define IBDEBUG(fmt, ...) fprintf(stdout, "ibdebug: [%d] %s: " fmt "\n", (int)getpid(), __func__, ## __VA_ARGS__)
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   598
 
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   599
-#define IBVERBOSE(fmt, ...) fprintf(stdout, "[%d] %s: " fmt "\n", getpid(), __func__, ## __VA_ARGS__)
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   600
+#define IBVERBOSE(fmt, ...) fprintf(stdout, "[%d] %s: " fmt "\n", (int)getpid(), __func__, ## __VA_ARGS__)
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   601
 
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   602
 #define IBPANIC(fmt, ...) do { \
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   603
-	fprintf(stderr, "ibpanic: [%d] %s: " fmt ": %m\n", getpid(), __func__, ## __VA_ARGS__); \
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   604
+	fprintf(stderr, "ibpanic: [%d] %s: " fmt ": %m\n", (int)getpid(), __func__, ## __VA_ARGS__); \
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   605
 	exit(-1); \
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   606
 } while(0)
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   607
 
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   608
diff -r -u /tmp/libibmad-1.3.7/include/infiniband/mad_osd.h libibmad-1.3.7/include/infiniband/mad_osd.h
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   609
--- /tmp/libibmad-1.3.7/include/infiniband/mad_osd.h	Wed Feb 16 02:12:53 2011
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   610
+++ libibmad-1.3.7/include/infiniband/mad_osd.h	Thu Feb 24 11:27:11 2011
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   611
@@ -39,7 +39,9 @@
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   612
 #include <stdio.h>
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   613
 #include <sys/types.h>
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   614
 #include <unistd.h>
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   615
+#if !(defined(__SVR4) && defined(__sun))
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   616
 #include <byteswap.h>
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   617
+#endif
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   618
 #include <inttypes.h>
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   619
 #include <arpa/inet.h>
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   620
 
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   621
diff -r -u /tmp/libibmad-1.3.7/src/fields.c libibmad-1.3.7/src/fields.c
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   622
--- /tmp/libibmad-1.3.7/src/fields.c	Wed Feb 16 02:12:53 2011
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   623
+++ libibmad-1.3.7/src/fields.c	Thu Feb 24 13:27:00 2011
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   624
@@ -514,7 +514,7 @@
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   625
 	uint64_t nval;
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   626
 
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   627
 	nval = htonll(val);
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   628
-	memcpy((char *)buf + base_offs + f->bitoffs / 8, &nval,
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   629
+	memcpy( (void*)((char *)buf + base_offs + f->bitoffs / 8), (void *)&nval,
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   630
 	       sizeof(uint64_t));
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   631
 }
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   632
 
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   633
@@ -521,7 +521,7 @@
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   634
 static uint64_t _get_field64(void *buf, int base_offs, const ib_field_t * f)
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   635
 {
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   636
 	uint64_t val;
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   637
-	memcpy(&val, ((char *)buf + base_offs + f->bitoffs / 8),
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   638
+	memcpy( (void *)&val, (void *)((char *)buf + base_offs + f->bitoffs / 8),
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   639
 	       sizeof(uint64_t));
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   640
 	return ntohll(val);
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   641
 }
2587
576c01af714c 15816849 SUNBT7199357 libibmad: encoding VFs in transaction IDs
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2586
diff changeset
   642
diff -r -u /tmp/libibmad-1.3.7/src/mad.c libibmad-1.3.7/src/mad.c
576c01af714c 15816849 SUNBT7199357 libibmad: encoding VFs in transaction IDs
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2586
diff changeset
   643
--- /tmp/libibmad-1.3.7/src/mad.c	Wed Feb 16 02:12:53 2011
576c01af714c 15816849 SUNBT7199357 libibmad: encoding VFs in transaction IDs
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2586
diff changeset
   644
+++ libibmad-1.3.7/src/mad.c	Wed Apr 10 12:12:42 2013
576c01af714c 15816849 SUNBT7199357 libibmad: encoding VFs in transaction IDs
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2586
diff changeset
   645
@@ -61,6 +61,7 @@
576c01af714c 15816849 SUNBT7199357 libibmad: encoding VFs in transaction IDs
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2586
diff changeset
   646
 		trid = random();
576c01af714c 15816849 SUNBT7199357 libibmad: encoding VFs in transaction IDs
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2586
diff changeset
   647
 	}
576c01af714c 15816849 SUNBT7199357 libibmad: encoding VFs in transaction IDs
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2586
diff changeset
   648
 	next = ++trid | (base << 32);
576c01af714c 15816849 SUNBT7199357 libibmad: encoding VFs in transaction IDs
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2586
diff changeset
   649
+	next &= 0x00ffffffffffffff;
576c01af714c 15816849 SUNBT7199357 libibmad: encoding VFs in transaction IDs
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2586
diff changeset
   650
 	return next;
576c01af714c 15816849 SUNBT7199357 libibmad: encoding VFs in transaction IDs
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2586
diff changeset
   651
 }
576c01af714c 15816849 SUNBT7199357 libibmad: encoding VFs in transaction IDs
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2586
diff changeset
   652
 
2385
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   653
diff -r -u /tmp/libibmad-1.3.7/src/resolve.c libibmad-1.3.7/src/resolve.c
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   654
--- /tmp/libibmad-1.3.7/src/resolve.c	Wed Feb 16 02:12:53 2011
2462
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   655
+++ libibmad-1.3.7/src/resolve.c	Wed Jan  9 09:41:48 2013
2385
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   656
@@ -40,6 +40,7 @@
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   657
 #include <stdlib.h>
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   658
 #include <string.h>
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   659
 #include <arpa/inet.h>
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   660
+#include <errno.h>
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   661
 
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   662
 #include <infiniband/umad.h>
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   663
 #include <infiniband/mad.h>
2462
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   664
@@ -57,10 +58,18 @@
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   665
 
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   666
 	memset(sm_id, 0, sizeof(*sm_id));
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   667
 
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   668
-	if (!smp_query_via(portinfo, &self, IB_ATTR_PORT_INFO, 0, 0, srcport))
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   669
+	if (!smp_query_via(portinfo, &self, IB_ATTR_PORT_INFO, 0, 0, srcport)) {
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   670
+		if (!errno)
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   671
+			errno = EIO;
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   672
 		return -1;
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   673
+	}
2385
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   674
 
2462
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   675
 	mad_decode_field(portinfo, IB_PORT_SMLID_F, &lid);
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   676
+	if (lid == 0) {
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   677
+		if (!errno)
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   678
+			errno = EIO;
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   679
+		return -1;
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   680
+	}
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   681
 	mad_decode_field(portinfo, IB_PORT_SMSL_F, &sm_id->sl);
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   682
 
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   683
 	return ib_portid_set(sm_id, lid, 0, 0);
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   684
@@ -95,7 +104,7 @@
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   685
 			ib_portid_t * sm_id, int timeout,
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   686
 			const struct ibmad_port *srcport)
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   687
 {
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   688
-	ib_portid_t sm_portid;
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   689
+	ib_portid_t sm_portid = { 0 };
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   690
 	uint8_t buf[IB_SA_DATA_SIZE] = { 0 };
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   691
 	ib_portid_t self = { 0 };
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   692
 	uint64_t selfguid, prefix;
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   693
@@ -102,14 +111,19 @@
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   694
 	ibmad_gid_t selfgid;
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   695
 	uint8_t nodeinfo[64];
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   696
 
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   697
-	if (!sm_id) {
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   698
+	if (!sm_id)
2385
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   699
 		sm_id = &sm_portid;
2462
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   700
+
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   701
+	if (!sm_id->lid) {
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   702
 		if (ib_resolve_smlid_via(sm_id, timeout, srcport) < 0)
2385
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   703
 			return -1;
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   704
 	}
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   705
 
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   706
-	if (!smp_query_via(nodeinfo, &self, IB_ATTR_NODE_INFO, 0, 0, srcport))
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   707
+	if (!smp_query_via(nodeinfo, &self, IB_ATTR_NODE_INFO, 0, 0, srcport)) {
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   708
+		if (!errno)
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   709
+			errno = EIO;
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   710
 		return -1;
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   711
+	}
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   712
 	mad_decode_field(nodeinfo, IB_NODE_PORT_GUID_F, &selfguid);
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   713
 	mad_set_field64(selfgid, 0, IB_GID_PREFIX_F, IB_DEFAULT_SUBN_PREFIX);
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   714
 	mad_set_field64(selfgid, 0, IB_GID_GUID_F, selfguid);
369
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   715
diff -r -u /tmp/libibmad-1.3.7/src/dump.c libibmad-1.3.7/src/dump.c
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   716
--- /tmp/libibmad-1.3.7/src/dump.c	Wed Feb 16 02:12:53 2011
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   717
+++ libibmad-1.3.7/src/dump.c	Thu Feb 24 11:27:11 2011
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   718
@@ -46,12 +46,24 @@
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   719
 
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   720
 void mad_dump_int(char *buf, int bufsz, void *val, int valsz)
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   721
 {
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   722
+	/*
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   723
+	 * the val pointer passed to the dump routines are always 32 bit
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   724
+	 * integers for valsz <= 4 and 64 bit integer for the rest. It is never
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   725
+	 * uint8_t or uint16_t. This is because mad_decode_field always returns
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   726
+	 * the values as 32 bit integer even if they are 8 bit or 16 bit fields.
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   727
+	 */
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   728
 	switch (valsz) {
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   729
 	case 1:
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   730
-		snprintf(buf, bufsz, "%d", *(uint32_t *) val & 0xff);
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   731
+#if defined(_BIG_ENDIAN)
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   732
+		val = ((uint8_t *)val) + 3;
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   733
+#endif /* _BIG_ENDIAN */
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   734
+		snprintf(buf, bufsz, "%d", *(uint8_t *) val & 0xff);
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   735
 		break;
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   736
 	case 2:
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   737
-		snprintf(buf, bufsz, "%d", *(uint32_t *) val & 0xffff);
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   738
+#if defined(_BIG_ENDIAN)
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   739
+		val = ((uint16_t *)val) + 1;
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   740
+#endif /* _BIG_ENDIAN */
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   741
+		snprintf(buf, bufsz, "%d", *(uint16_t *) val & 0xffff);
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   742
 		break;
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   743
 	case 3:
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   744
 	case 4:
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   745
@@ -71,12 +83,24 @@
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   746
 
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   747
 void mad_dump_uint(char *buf, int bufsz, void *val, int valsz)
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   748
 {
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   749
+	/*
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   750
+	 * the val pointer passed to the dump routines are always 32 bit
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   751
+	 * integers for valsz <= 4 and 64 bit integer for the rest. It is never
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   752
+	 * uint8_t or uint16_t. This is because mad_decode_field always returns
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   753
+	 * the values as 32 bit integer even if they are 8 bit or 16 bit fields.
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   754
+	 */
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   755
 	switch (valsz) {
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   756
 	case 1:
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   757
-		snprintf(buf, bufsz, "%u", *(uint32_t *) val & 0xff);
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   758
+#if defined(_BIG_ENDIAN)
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   759
+		val = ((uint8_t *)val) + 3;
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   760
+#endif /* _BIG_ENDIAN */
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   761
+		snprintf(buf, bufsz, "%u", *(uint8_t *) val & 0xff);
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   762
 		break;
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   763
 	case 2:
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   764
-		snprintf(buf, bufsz, "%u", *(uint32_t *) val & 0xffff);
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   765
+#if defined(_BIG_ENDIAN)
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   766
+		val = ((uint16_t *)val) + 1;
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   767
+#endif /* _BIG_ENDIAN */
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   768
+		snprintf(buf, bufsz, "%u", *(uint16_t *) val & 0xffff);
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   769
 		break;
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   770
 	case 3:
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   771
 	case 4:
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   772
@@ -96,15 +120,28 @@
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   773
 
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   774
 void mad_dump_hex(char *buf, int bufsz, void *val, int valsz)
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   775
 {
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   776
+	/*
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   777
+	 * the val pointer passed to the dump routines are always 32 bit
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   778
+	 * integers for valsz <= 4 and 64 bit integer for the rest. It is never
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   779
+	 * uint8_t or uint16_t. This is because mad_decode_field always returns
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   780
+	 * the values as 32 bit integer even if they are 8 bit or 16 bit fields.
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   781
+	 */
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   782
 	switch (valsz) {
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   783
 	case 1:
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   784
-		snprintf(buf, bufsz, "0x%02x", *(uint32_t *) val & 0xff);
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   785
+#if defined(_BIG_ENDIAN)
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   786
+		val = ((uint8_t *)val) + 3;
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   787
+#endif /* _BIG_ENDIAN */
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   788
+		snprintf(buf, bufsz, "0x%02x", *(uint8_t *) val & 0xff);
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   789
 		break;
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   790
 	case 2:
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   791
-		snprintf(buf, bufsz, "0x%04x", *(uint32_t *) val & 0xffff);
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   792
+#if defined(_BIG_ENDIAN)
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   793
+		val = ((uint16_t *)val) + 1;
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   794
+#endif /* _BIG_ENDIAN */
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   795
+		snprintf(buf, bufsz, "0x%04x", *(uint16_t *) val & 0xffff);
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   796
 		break;
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   797
 	case 3:
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   798
-		snprintf(buf, bufsz, "0x%06x", *(uint32_t *) val & 0xffffff);
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   799
+		//snprintf(buf, bufsz, "0x%06x", *(uint32_t *) val & 0xffffff);
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   800
+		snprintf(buf, bufsz, "0x%x", *(uint32_t *)val & 0xffffff);
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   801
 		break;
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   802
 	case 4:
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   803
 		snprintf(buf, bufsz, "0x%08x", *(uint32_t *) val);
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   804
@@ -132,12 +169,24 @@
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   805
 
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   806
 void mad_dump_rhex(char *buf, int bufsz, void *val, int valsz)
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   807
 {
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   808
+	/*
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   809
+	 * the val pointer passed to the dump routines are always 32 bit
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   810
+	 * integers for valsz <= 4 and 64 bit integer for the rest. It is never
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   811
+	 * uint8_t or uint16_t. This is because mad_decode_field always returns
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   812
+	 * the values as 32 bit integer even if they are 8 bit or 16 bit fields.
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   813
+	 */
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   814
 	switch (valsz) {
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   815
 	case 1:
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   816
-		snprintf(buf, bufsz, "%02x", *(uint32_t *) val & 0xff);
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   817
+#if defined(_BIG_ENDIAN)
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   818
+		val = ((uint8_t *)val) + 3;
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   819
+#endif /* _BIG_ENDIAN */
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   820
+		snprintf(buf, bufsz, "%02x", *(uint8_t *) val & 0xff);
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   821
 		break;
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   822
 	case 2:
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   823
-		snprintf(buf, bufsz, "%04x", *(uint32_t *) val & 0xffff);
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   824
+#if defined(_BIG_ENDIAN)
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   825
+		val = ((uint16_t *)val) + 1;
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   826
+#endif /* _BIG_ENDIAN */
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   827
+		snprintf(buf, bufsz, "%04x", *(uint16_t *) val & 0xffff);
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   828
 		break;
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   829
 	case 3:
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   830
 		snprintf(buf, bufsz, "%06x", *(uint32_t *) val & 0xffffff);
2385
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   831
diff -r -u /tmp/libibmad-1.3.7/src/sa.c libibmad-1.3.7/src/sa.c
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   832
--- /tmp/libibmad-1.3.7/src/sa.c	Wed Feb 16 02:12:53 2011
2462
1132a517894c 15819412 SUNBT7201971 libibmad - ib_resolve_smlid_via() returns sm lid as 0
Alex Chiu <Alex.Chiu@Oracle.COM>
parents: 2385
diff changeset
   833
+++ libibmad-1.3.7/src/sa.c	Mon Oct  8 01:46:30 2012
2385
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   834
@@ -38,6 +38,7 @@
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   835
 #include <stdio.h>
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   836
 #include <stdlib.h>
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   837
 #include <string.h>
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   838
+#include <errno.h>
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   839
 
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   840
 #include <infiniband/mad.h>
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   841
 #include "mad_internal.h"
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   842
@@ -56,6 +57,7 @@
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   843
 
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   844
 	if (portid->lid <= 0) {
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   845
 		IBWARN("only lid routes are supported");
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   846
+		errno = EIO;
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   847
 		return NULL;
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   848
 	}
b142cc36553d 7198889 with SRU12.1 all connections to my storage cells are lost
Sharath M Srinivasan <sharath.srinivasan@oracle.com>
parents: 490
diff changeset
   849
 
2586
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   850
@@ -144,4 +146,48 @@
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   851
 		  void *buf)
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   852
 {
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   853
 	return ib_path_query_via(ibmp, srcgid, destgid, sm_id, buf);
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   854
+}
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   855
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   856
+/* NodeRecord */
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   857
+#define IB_NR_COMPMASK_LID				(1ull<<0)
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   858
+#define IB_NR_COMPMASK_RESERVED1			(1ull<<1)
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   859
+#define IB_NR_COMPMASK_BASEVERSION			(1ull<<2)
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   860
+#define IB_NR_COMPMASK_CLASSVERSION			(1ull<<3)
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   861
+#define IB_NR_COMPMASK_NODETYPE				(1ull<<4)
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   862
+#define IB_NR_COMPMASK_NUMPORTS				(1ull<<5)
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   863
+#define IB_NR_COMPMASK_SYSIMAGEGUID			(1ull<<6)
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   864
+#define IB_NR_COMPMASK_NODEGUID				(1ull<<7)
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   865
+#define IB_NR_COMPMASK_PORTGUID				(1ull<<8)
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   866
+#define IB_NR_COMPMASK_PARTCAP				(1ull<<9)
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   867
+#define IB_NR_COMPMASK_DEVID				(1ull<<10)
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   868
+#define IB_NR_COMPMASK_REV				(1ull<<11)
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   869
+#define IB_NR_COMPMASK_PORTNUM				(1ull<<12)
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   870
+#define IB_NR_COMPMASK_VENDID				(1ull<<13)
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   871
+#define IB_NR_COMPMASK_NODEDESC				(1ull<<14)
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   872
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   873
+#define IB_NR_DEF_MASK IB_NR_COMPMASK_PORTGUID
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   874
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   875
+int ib_node_query_via(const struct ibmad_port *srcport, uint64_t guid,
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   876
+		      ib_portid_t * sm_id, void *buf)
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   877
+{
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   878
+	ib_sa_call_t sa = { 0 };
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   879
+	uint8_t *p;
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   880
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   881
+	memset(&sa, 0, sizeof sa);
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   882
+	sa.method = IB_MAD_METHOD_GET;
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   883
+	sa.attrid = IB_SA_ATTR_NODERECORD;
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   884
+	sa.mask = IB_NR_DEF_MASK;
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   885
+	sa.trid = mad_trid();
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   886
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   887
+	memset(buf, 0, IB_SA_NR_RECSZ);
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   888
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   889
+	mad_encode_field(buf, IB_SA_NR_PORT_GUID_F, &guid);
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   890
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   891
+	p = sa_rpc_call(srcport, buf, sm_id, &sa, 0);
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   892
+	if (!p) {
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   893
+		IBWARN("sa call node_query failed");
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   894
+		return -1;
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   895
+	}
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   896
+
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   897
+	return 0;
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   898
 }
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   899
diff -r -u /tmp/libibmad-1.3.7/src/libibmad.map libibmad-1.3.7/src/libibmad.map
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   900
--- /tmp/libibmad-1.3.7/src/libibmad.map	Wed Feb 16 02:12:53 2011
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   901
+++ libibmad-1.3.7/src/libibmad.map	Tue Apr  2 12:15:13 2013
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   902
@@ -102,6 +102,7 @@
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   903
 		ib_vendor_call_via;
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   904
 		smp_query_via;
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   905
 		smp_set_via;
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   906
+		ib_node_query_via;
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   907
 		ib_path_query_via;
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   908
 		ib_resolve_smlid_via;
66a039ce738d 16448055 libibmad: Add NodeRecord query API
Boris Chiu <Boris.Chiu@Oracle.COM>
parents: 2462
diff changeset
   909
 		ib_resolve_guid_via;
369
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   910
diff -r -u /tmp/libibmad-1.3.7/src/rpc.c libibmad-1.3.7/src/rpc.c
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   911
--- /tmp/libibmad-1.3.7/src/rpc.c	Wed Feb 16 02:12:53 2011
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   912
+++ libibmad-1.3.7/src/rpc.c	Thu Feb 24 11:27:14 2011
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   913
@@ -152,7 +152,7 @@
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   914
 
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   915
 		length = len;
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   916
 		if (umad_send(port_id, agentid, sndbuf, length, timeout, 0) < 0) {
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   917
-			IBWARN("send failed; %m");
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   918
+			IBWARN("send failed; %s", strerror(errno));
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   919
 			return -1;
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   920
 		}
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   921
 
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   922
@@ -161,7 +161,7 @@
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   923
 		do {
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   924
 			length = len;
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   925
 			if (umad_recv(port_id, rcvbuf, &length, timeout) < 0) {
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   926
-				IBWARN("recv failed: %m");
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   927
+				IBWARN("recv failed: %s", strerror(errno));
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   928
 				return -1;
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   929
 			}
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   930
 
490
20074ee5793e 7078137 libibma _do_madrpc() does not set errno on mad timeout - ref oracle bug 11823643
Boris Chiu <Boris.Chiu@Sun.COM>
parents: 369
diff changeset
   931
@@ -175,6 +175,7 @@
20074ee5793e 7078137 libibma _do_madrpc() does not set errno on mad timeout - ref oracle bug 11823643
Boris Chiu <Boris.Chiu@Sun.COM>
parents: 369
diff changeset
   932
 					 IB_MAD_TRID_F) != trid);
20074ee5793e 7078137 libibma _do_madrpc() does not set errno on mad timeout - ref oracle bug 11823643
Boris Chiu <Boris.Chiu@Sun.COM>
parents: 369
diff changeset
   933
 
20074ee5793e 7078137 libibma _do_madrpc() does not set errno on mad timeout - ref oracle bug 11823643
Boris Chiu <Boris.Chiu@Sun.COM>
parents: 369
diff changeset
   934
 		status = umad_status(rcvbuf);
20074ee5793e 7078137 libibma _do_madrpc() does not set errno on mad timeout - ref oracle bug 11823643
Boris Chiu <Boris.Chiu@Sun.COM>
parents: 369
diff changeset
   935
+		errno = status;
20074ee5793e 7078137 libibma _do_madrpc() does not set errno on mad timeout - ref oracle bug 11823643
Boris Chiu <Boris.Chiu@Sun.COM>
parents: 369
diff changeset
   936
 		if (!status)
20074ee5793e 7078137 libibma _do_madrpc() does not set errno on mad timeout - ref oracle bug 11823643
Boris Chiu <Boris.Chiu@Sun.COM>
parents: 369
diff changeset
   937
 			return length;	/* done */
20074ee5793e 7078137 libibma _do_madrpc() does not set errno on mad timeout - ref oracle bug 11823643
Boris Chiu <Boris.Chiu@Sun.COM>
parents: 369
diff changeset
   938
 		if (status == ENOMEM)
20074ee5793e 7078137 libibma _do_madrpc() does not set errno on mad timeout - ref oracle bug 11823643
Boris Chiu <Boris.Chiu@Sun.COM>
parents: 369
diff changeset
   939
@@ -337,7 +338,7 @@
369
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   940
 		IBPANIC("can't init UMAD library");
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   941
 
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   942
 	if ((fd = umad_open_port(dev_name, dev_port)) < 0)
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   943
-		IBPANIC("can't open UMAD port (%s:%d)", dev_name, dev_port);
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   944
+		IBPANIC("can't open UMAD port (%s:%d)", dev_name?dev_name:"(nil)", dev_port);
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   945
 
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   946
 	if (num_classes >= MAX_CLASS)
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   947
 		IBPANIC("too many classes %d requested", num_classes);
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   948
diff -r -u /tmp/libibmad-1.3.7/src/serv.c libibmad-1.3.7/src/serv.c
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   949
--- /tmp/libibmad-1.3.7/src/serv.c	Wed Feb 16 02:12:53 2011
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   950
+++ libibmad-1.3.7/src/serv.c	Thu Feb 24 11:27:14 2011
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   951
@@ -38,6 +38,7 @@
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   952
 #include <stdio.h>
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   953
 #include <stdlib.h>
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   954
 #include <string.h>
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   955
+#include <errno.h>
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   956
 
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   957
 #include <infiniband/umad.h>
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   958
 #include <infiniband/mad.h>
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   959
@@ -75,7 +76,7 @@
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   960
 	if (umad_send(srcport->port_id, srcport->class_agents[rpc->mgtclass],
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   961
 		      umad, IB_MAD_SIZE, mad_get_timeout(srcport, rpc->timeout),
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   962
 		      0) < 0) {
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   963
-		IBWARN("send failed; %m");
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   964
+		IBWARN("send failed; %s", strerror(errno));
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   965
 		return -1;
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   966
 	}
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   967
 
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   968
@@ -157,7 +158,7 @@
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   969
 	if (umad_send
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   970
 	    (srcport->port_id, srcport->class_agents[rpc.mgtclass], umad,
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   971
 	     IB_MAD_SIZE, mad_get_timeout(srcport, rpc.timeout), 0) < 0) {
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   972
-		DEBUG("send failed; %m");
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   973
+		DEBUG("send failed; %s", strerror(errno));
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   974
 		return -1;
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   975
 	}
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   976
 
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   977
@@ -179,7 +180,7 @@
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   978
 			       mad_get_timeout(srcport, timeout))) < 0) {
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   979
 		if (!umad)
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   980
 			umad_free(mad);
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   981
-		DEBUG("recv failed: %m");
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   982
+		DEBUG("recv failed: %s", strerror(errno));
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   983
 		return 0;
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   984
 	}
cc8c00719da9 PSARC 2011/165 OFUV update of existing components
Boris Chiu <Boris.Chiu@Sun.COM>
parents:
diff changeset
   985