*\r
* SOURCE\r
*/\r
-#define IB_MAD_STATUS_BUSY (CL_HTON16(0x0001))\r
+#define IB_MAD_STATUS_BUSY (CL_HTON16(0x0001))\r
/**********/\r
\r
/****d* IBA Base: Constants/IB_MAD_STATUS_REDIRECT\r
#include <complib/cl_packoff.h>\r
/*\r
* FIELDS\r
-* resv0\r
-* Reserved bytes.\r
+* service_id\r
+* Service ID for QoS.\r
*\r
* dgid\r
* GID of destination port.\r
* pkey\r
* Partition key (P_Key) to use on this path.\r
*\r
-* resv1\r
-* Reserved byte.\r
-*\r
-* sl\r
-* Service level to use on this path.\r
+* qos_class_sl\r
+* QoS class and service level to use on this path.\r
*\r
* mtu\r
* MTU and MTU selector fields to use on this path\r
* pkey\r
* [in] Partition key (P_Key) to use on this path.\r
*\r
+* qos_class\r
+* [in] QoS class to use on this path. Lower 12-bits are valid.\r
+*\r
* sl\r
* [in] Service level to use on this path. Lower 4-bits are valid.\r
*\r
* cap_mask\r
* Supported capabilities of this management class.\r
*\r
-* resp_time_value\r
-* Maximum expected response time.\r
+* cap_mask2_resp_time\r
+* Maximum expected response time and additional\r
+* supported capabilities of this management class.\r
*\r
* redr_gid\r
* GID to use for redirection, or zero\r
* ib_mad_is_response\r
*\r
* DESCRIPTION\r
-* Returns TRUE if the MAD is a response ('R' bit set),\r
+* Returns TRUE if the MAD is a response ('R' bit set)\r
+* or if the MAD is a TRAP REPRESS,\r
* FALSE otherwise.\r
*\r
* SYNOPSIS\r
*\r
* TODO\r
* This is too big for inlining, but leave it here for now\r
-* since there is not yet another convient spot.\r
+* since there is not yet another convenient spot.\r
*\r
* SYNOPSIS\r
*/\r
}\r
/*\r
* PARAMETERS\r
-* p_smp\r
+* p_sa_mad\r
* [in] Pointer to the SA MAD packet.\r
*\r
* RETURN VALUES\r
\r
#define IB_PORT_STATE_MASK 0x0F\r
#define IB_PORT_LMC_MASK 0x07\r
-#define IB_PORT_LMC_MAX 0x07\r
+#define IB_PORT_LMC_MAX 0x07\r
#define IB_PORT_MPB_MASK 0xC0\r
#define IB_PORT_MPB_SHIFT 6\r
#define IB_PORT_LINK_SPEED_SHIFT 4\r
#define IB_PORT_LINK_SPEED_SUPPORTED_MASK 0xF0\r
#define IB_PORT_LINK_SPEED_ACTIVE_MASK 0xF0\r
#define IB_PORT_LINK_SPEED_ENABLED_MASK 0x0F\r
-#define IB_PORT_PHYS_STATE_MASK 0xF0\r
-#define IB_PORT_PHYS_STATE_SHIFT 4\r
-#define IB_PORT_PHYS_STATE_NO_CHANGE 0\r
-#define IB_PORT_PHYS_STATE_SLEEP 1\r
-#define IB_PORT_PHYS_STATE_POLLING 2\r
-#define IB_PORT_PHYS_STATE_DISABLED 3\r
-#define IB_PORT_PHYS_STATE_PORTCONFTRAIN 4\r
-#define IB_PORT_PHYS_STATE_LINKUP 5\r
-#define IB_PORT_PHYS_STATE_LINKERRRECOVER 6\r
-#define IB_PORT_PHYS_STATE_PHYTEST 7\r
-#define IB_PORT_LNKDWNDFTSTATE_MASK 0x0F\r
+#define IB_PORT_PHYS_STATE_MASK 0xF0\r
+#define IB_PORT_PHYS_STATE_SHIFT 4\r
+#define IB_PORT_PHYS_STATE_NO_CHANGE 0\r
+#define IB_PORT_PHYS_STATE_SLEEP 1\r
+#define IB_PORT_PHYS_STATE_POLLING 2\r
+#define IB_PORT_PHYS_STATE_DISABLED 3\r
+#define IB_PORT_PHYS_STATE_PORTCONFTRAIN 4\r
+#define IB_PORT_PHYS_STATE_LINKUP 5\r
+#define IB_PORT_PHYS_STATE_LINKERRRECOVER 6\r
+#define IB_PORT_PHYS_STATE_PHYTEST 7\r
+#define IB_PORT_LNKDWNDFTSTATE_MASK 0x0F\r
\r
#define IB_PORT_CAP_RESV0 (CL_NTOH32(0x00000001))\r
#define IB_PORT_CAP_IS_SM (CL_NTOH32(0x00000002))\r
* ib_port_info_set_hoq_lifetime\r
*\r
* DESCRIPTION\r
-* Sets the Head of Queue Lifetime for which a packet can live in the head \r
+* Sets the Head of Queue Lifetime for which a packet can live in the head\r
* of VL queue\r
*\r
* SYNOPSIS\r
* ib_port_info_get_hoq_lifetime\r
*\r
* DESCRIPTION\r
-* Gets the Head of Queue Lifetime for which a packet can live in the head \r
+* Gets the Head of Queue Lifetime for which a packet can live in the head\r
* of VL queue\r
*\r
* SYNOPSIS\r
* p_pi\r
* [in] Pointer to a PortInfo attribute.\r
*\r
-* vl_stall_count \r
+* vl_stall_count\r
* [in] value to set\r
*\r
* RETURN VALUES\r
* ib_port_info_get_vl_stall_count\r
*\r
* DESCRIPTION\r
-* Gets the VL Stall Count which define the number of contiguous \r
+* Gets the VL Stall Count which define the number of contiguous\r
* HLL (hoq) drops that will put the VL into stalled mode\r
*\r
* SYNOPSIS\r
* [in] Pointer to a PortInfo attribute.\r
*\r
* phy_threshold\r
-* [in] Physical Link Errors Threshold above which Trap 129 is generated \r
+* [in] Physical Link Errors Threshold above which Trap 129 is generated\r
*\r
* overrun_threshold\r
-* [in] Credits overrun Errors Threshold above which Trap 129 is generated \r
+* [in] Credits overrun Errors Threshold above which Trap 129 is generated\r
*\r
* RETURN VALUES\r
* None.\r
}\r
/*\r
* PARAMETERS\r
-* p_ni\r
-* [in] Pointer to a PortInfo attribute.\r
+* p_si\r
+* [in] Pointer to a SwitchInfo attribute.\r
*\r
* RETURN VALUES\r
-* Returns the LMC value assigned to this port.\r
+* None\r
*\r
* NOTES\r
*\r
* pkey\r
* Partition key (P_Key) to use on this path.\r
*\r
-* sl\r
-* Service level to use on this path.\r
+* qos_class_sl\r
+* QoS class and service level to use on this path.\r
*\r
* mtu\r
* MTU and MTU selector fields to use on this path\r
* pkt_life\r
* Packet lifetime\r
*\r
+* service_id_8msb\r
+* 8 most significant bits of Service ID\r
+*\r
+* service_id_56lsb\r
+* 56 least significant bits of Service ID\r
+*\r
* preference\r
* Indicates the relative merit of this path versus other path\r
* records returned from the SA. Lower numbers are better.\r
ib_multipath_rec_sl(\r
IN const ib_multipath_rec_t* const p_rec )\r
{\r
- return ((uint8_t) ((cl_ntoh16(p_rec->qos_class_sl)) & IB_MULTIPATH_REC_SL_MASK)); \r
+ return ((uint8_t) ((cl_ntoh16(p_rec->qos_class_sl)) & IB_MULTIPATH_REC_SL_MASK));\r
}\r
/*\r
* PARAMETERS\r
* port_gid\r
* Valid GID of the endpoint joining this multicast group.\r
*\r
-* requestor_gid\r
-* GID of the endpoint making this request on hehave of port_gid.\r
-*\r
* qkey\r
* Q_Key to be used by this multicast group.\r
*\r