[openib-general] [PATCH] OpenSM/ib_types.h: Add support for SA MFTRecord

Hal Rosenstock halr at voltaire.com
Fri Dec 29 08:26:47 PST 2006


OpenSM/ib_types.h: Add support for SA MFTRecord

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

diff --git a/osm/include/iba/ib_types.h b/osm/include/iba/ib_types.h
index 1770f8d..738bd7f 100644
--- a/osm/include/iba/ib_types.h
+++ b/osm/include/iba/ib_types.h
@@ -1283,6 +1283,18 @@ ib_class_is_rmpp(
 #define IB_MAD_ATTR_LFT_RECORD				(CL_NTOH16(0x0015))
 /**********/
 
+/****d* IBA Base: Constants/IB_MAD_ATTR_MFT_RECORD
+* NAME
+*       IB_MAD_ATTR_MFT_RECORD
+*
+* DESCRIPTION
+*       MulticastForwardingTableRecord attribute (15.2.5.8)
+*
+* SOURCE
+*/
+#define IB_MAD_ATTR_MFT_RECORD				(CL_NTOH16(0x0017))
+/**********/
+
 /****d* IBA Base: Constants/IB_MAD_ATTR_PKEYTBL_RECORD
 * NAME
 *	IB_MAD_ATTR_PKEYTBL_RECORD
@@ -2371,6 +2383,13 @@ typedef struct _ib_path_rec
 #define IB_LFTR_COMPMASK_LID              (CL_HTON64(((uint64_t)1)<<0))
 #define IB_LFTR_COMPMASK_BLOCK            (CL_HTON64(((uint64_t)1)<<1))
 
+/* MFT Record Masks */
+#define IB_MFTR_COMPMASK_LID		  (CL_HTON64(((uint64_t)1)<<0))
+#define IB_MFTR_COMPMASK_POSITION	  (CL_HTON64(((uint64_t)1)<<1))
+#define IB_MFTR_COMPMASK_RESERVED1	  (CL_HTON64(((uint64_t)1)<<2))
+#define IB_MFTR_COMPMASK_BLOCK		  (CL_HTON64(((uint64_t)1)<<3))
+#define IB_MFTR_COMPMASK_RESERVED2	  (CL_HTON64(((uint64_t)1)<<4))
+
 /* NodeInfo Record Masks */
 #define IB_NR_COMPMASK_LID                (CL_HTON64(((uint64_t)1)<<0))
 #define IB_NR_COMPMASK_RESERVED1          (CL_HTON64(((uint64_t)1)<<1))
@@ -5530,6 +5549,26 @@ typedef struct _ib_lft_record
 #include <complib/cl_packoff.h>
 /************/
 
+/****s* IBA Base: Types/ib_mft_record_t
+* NAME
+*	ib_mft_record_t
+*
+* DESCRIPTION
+*	IBA defined MulticastForwardingTableRecord (15.2.5.8)
+*
+* SYNOPSIS
+*/
+#include <complib/cl_packon.h>
+typedef struct _ib_mft_record
+{
+	ib_net16_t		lid;
+	ib_net16_t		position_block_num;
+	uint32_t		resv0;
+	ib_net16_t		mft[IB_MCAST_BLOCK_SIZE];
+}	PACK_SUFFIX ib_mft_record_t;
+#include <complib/cl_packoff.h>
+/************/
+
 /****s* IBA Base: Types/ib_switch_info_t
 * NAME
 *	ib_switch_info_t







More information about the general mailing list