[ofa-general] [PATCH 2/2] OpenSM/ib_types.h: Remove CM defines

Hal Rosenstock halr at voltaire.com
Wed May 16 09:38:18 PDT 2007


OpenSM/ib_types.h: Remove CM definitions as now in ib_cm_types.h

Signed-off-by: Hal Rosenstock <halr at voltaire.com>

diff --git a/opensm/include/Makefile.am b/opensm/include/Makefile.am
index 8499d3b..3428d9a 100644
--- a/opensm/include/Makefile.am
+++ b/opensm/include/Makefile.am
@@ -1,7 +1,7 @@
 
 SUBDIRS = .
 
-nobase_pkginclude_HEADERS = iba/ib_types.h
+nobase_pkginclude_HEADERS = iba/ib_types.h iba/ib_cm_types.h
 
 EXTRA_DIST = \
 	$(srcdir)/opensm/osm_version.h \
@@ -128,6 +128,7 @@ EXTRA_DIST = \
 	$(srcdir)/complib/cl_fleximap.h \
 	$(srcdir)/complib/cl_qcomppool.h \
 	$(srcdir)/iba/ib_types.h \
+	$(srcdir)/iba/ib_cm_types.h \
 	$(srcdir)/vendor/osm_vendor_mlx_transport_anafa.h \
 	$(srcdir)/vendor/osm_vendor_mlx.h \
 	$(srcdir)/vendor/osm_vendor_mlx_sender.h \
diff --git a/opensm/include/iba/ib_types.h b/opensm/include/iba/ib_types.h
index b3937cb..aee7024 100644
--- a/opensm/include/iba/ib_types.h
+++ b/opensm/include/iba/ib_types.h
@@ -31,7 +31,6 @@
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  * SOFTWARE.
  *
- * $Id$
  */
 
 #if !defined(__IB_TYPES_H__)
@@ -7773,163 +7772,8 @@ typedef struct _ib_ioc_info
 #include <complib/cl_packoff.h>
 
 /*
- * Defines known Communication management class versions
- */
-#define IB_MCLASS_CM_VER_2				2
-#define IB_MCLASS_CM_VER_1				1
-
-/*
- *	Defines the size of user available data in communication management MADs
- */
-#define IB_REQ_PDATA_SIZE_VER2				92
-#define IB_MRA_PDATA_SIZE_VER2				222
-#define IB_REJ_PDATA_SIZE_VER2				148
-#define IB_REP_PDATA_SIZE_VER2				196
-#define IB_RTU_PDATA_SIZE_VER2				224
-#define IB_LAP_PDATA_SIZE_VER2				168
-#define IB_APR_PDATA_SIZE_VER2				148
-#define IB_DREQ_PDATA_SIZE_VER2				220
-#define IB_DREP_PDATA_SIZE_VER2				224
-#define IB_SIDR_REQ_PDATA_SIZE_VER2			216
-#define IB_SIDR_REP_PDATA_SIZE_VER2			136
-
-#define IB_REQ_PDATA_SIZE_VER1				92
-#define IB_MRA_PDATA_SIZE_VER1				222
-#define IB_REJ_PDATA_SIZE_VER1				148
-#define IB_REP_PDATA_SIZE_VER1				204
-#define IB_RTU_PDATA_SIZE_VER1				224
-#define IB_LAP_PDATA_SIZE_VER1				168
-#define IB_APR_PDATA_SIZE_VER1				151
-#define IB_DREQ_PDATA_SIZE_VER1				220
-#define IB_DREP_PDATA_SIZE_VER1				224
-#define IB_SIDR_REQ_PDATA_SIZE_VER1			216
-#define IB_SIDR_REP_PDATA_SIZE_VER1			140
-
-#define IB_ARI_SIZE					72		// redefine
-#define IB_APR_INFO_SIZE				72
-
-/****d* Access Layer/ib_rej_status_t
-* NAME
-*	ib_rej_status_t
-*
-* DESCRIPTION
-*	Rejection reasons.
-*
-* SYNOPSIS
-*/
-typedef	ib_net16_t					ib_rej_status_t;
-/*
-* SEE ALSO
-*	ib_cm_rej, ib_cm_rej_rec_t
-*
-* SOURCE
-*/
-#define IB_REJ_INSUF_QP					CL_HTON16(1)
-#define IB_REJ_INSUF_EEC				CL_HTON16(2)
-#define IB_REJ_INSUF_RESOURCES				CL_HTON16(3)
-#define IB_REJ_TIMEOUT					CL_HTON16(4)
-#define IB_REJ_UNSUPPORTED				CL_HTON16(5)
-#define IB_REJ_INVALID_COMM_ID				CL_HTON16(6)
-#define IB_REJ_INVALID_COMM_INSTANCE			CL_HTON16(7)
-#define IB_REJ_INVALID_SID				CL_HTON16(8)
-#define IB_REJ_INVALID_XPORT				CL_HTON16(9)
-#define IB_REJ_STALE_CONN				CL_HTON16(10)
-#define IB_REJ_RDC_NOT_EXIST				CL_HTON16(11)
-#define IB_REJ_INVALID_GID				CL_HTON16(12)
-#define IB_REJ_INVALID_LID				CL_HTON16(13)
-#define IB_REJ_INVALID_SL				CL_HTON16(14)
-#define IB_REJ_INVALID_TRAFFIC_CLASS			CL_HTON16(15)
-#define IB_REJ_INVALID_HOP_LIMIT			CL_HTON16(16)
-#define IB_REJ_INVALID_PKT_RATE				CL_HTON16(17)
-#define IB_REJ_INVALID_ALT_GID				CL_HTON16(18)
-#define IB_REJ_INVALID_ALT_LID				CL_HTON16(19)
-#define IB_REJ_INVALID_ALT_SL				CL_HTON16(20)
-#define IB_REJ_INVALID_ALT_TRAFFIC_CLASS		CL_HTON16(21)
-#define IB_REJ_INVALID_ALT_HOP_LIMIT			CL_HTON16(22)
-#define IB_REJ_INVALID_ALT_PKT_RATE			CL_HTON16(23)
-#define IB_REJ_PORT_REDIRECT				CL_HTON16(24)
-#define IB_REJ_INVALID_MTU				CL_HTON16(26)
-#define IB_REJ_INSUFFICIENT_RESP_RES			CL_HTON16(27)
-#define IB_REJ_USER_DEFINED				CL_HTON16(28)
-#define IB_REJ_INVALID_RNR_RETRY			CL_HTON16(29)
-#define IB_REJ_DUPLICATE_LOCAL_COMM_ID			CL_HTON16(30)
-#define IB_REJ_INVALID_CLASS_VER			CL_HTON16(31)
-#define IB_REJ_INVALID_FLOW_LBL				CL_HTON16(32)
-#define IB_REJ_INVALID_ALT_FLOW_LBL			CL_HTON16(33)
-
-#define IB_REJ_SERVICE_HANDOFF				CL_HTON16(65535)
-/******/
-
-/****d* Access Layer/ib_apr_status_t
-* NAME
-*	ib_apr_status_t
-*
-* DESCRIPTION
-*	Automatic path migration status information.
-*
-* SYNOPSIS
-*/
-typedef uint8_t						ib_apr_status_t;
-/*
-* SEE ALSO
-*	ib_cm_apr, ib_cm_apr_rec_t
-*
-* SOURCE
- */
-#define IB_AP_SUCCESS					0
-#define IB_AP_INVALID_COMM_ID				1
-#define IB_AP_UNSUPPORTED				2
-#define IB_AP_REJECT					3
-#define IB_AP_REDIRECT					4
-#define IB_AP_IS_CURRENT				5
-#define IB_AP_INVALID_QPN_EECN				6
-#define IB_AP_INVALID_LID				7
-#define IB_AP_INVALID_GID				8
-#define IB_AP_INVALID_FLOW_LBL				9
-#define IB_AP_INVALID_TCLASS				10
-#define IB_AP_INVALID_HOP_LIMIT				11
-#define IB_AP_INVALID_PKT_RATE				12
-#define IB_AP_INVALID_SL				13
-/******/
-
-/****d* Access Layer/ib_cm_cap_mask_t
-* NAME
-*	ib_cm_cap_mask_t
-*
-* DESCRIPTION
-*	Capability mask values in ClassPortInfo.
-*
-* SYNOPSIS
-*/
-#define IB_CM_RELIABLE_CONN_CAPABLE			CL_HTON16(9)
-#define IB_CM_RELIABLE_DGRM_CAPABLE			CL_HTON16(10)
-#define IB_CM_RDGRM_CAPABLE				CL_HTON16(11)
-#define IB_CM_UNRELIABLE_CONN_CAPABLE			CL_HTON16(12)
-#define IB_CM_SIDR_CAPABLE				CL_HTON16(13)
-/*
-* SEE ALSO
-*	ib_cm_rep, ib_class_port_info_t
-*
-* SOURCE
-*
-*******/
-
-/*
- *	Service ID resolution status
- */
-typedef uint16_t					ib_sidr_status_t;
-#define IB_SIDR_SUCCESS					0
-#define IB_SIDR_UNSUPPORTED				1
-#define IB_SIDR_REJECT					2
-#define IB_SIDR_NO_QP					3
-#define IB_SIDR_REDIRECT				4
-#define IB_SIDR_UNSUPPORTED_VER				5
-
-/*
  *	The following definitions are shared between the Access Layer and VPD
  */
-
-
 typedef struct _ib_ca* __ptr64			ib_ca_handle_t;
 typedef struct _ib_pd* __ptr64			ib_pd_handle_t;
 typedef struct _ib_rdd* __ptr64			ib_rdd_handle_t;
@@ -10467,7 +10311,8 @@ typedef struct _ib_ci_op
 
 END_C_DECLS
 
-#endif /* ndef WIN */
+#endif /* ndef WIN32 */
+
 #if defined( __WIN__ )
     #include <iba/ib_types_extended.h>
 #endif






More information about the general mailing list