[openib-general] ib_mad.h GSI QP1 Well Known QKey

Sean Hefty mshefty at ichips.intel.com
Wed Aug 25 14:11:15 PDT 2004


On Wed, 25 Aug 2004 15:28:08 -0400
Hal Rosenstock <halr at voltaire.com> wrote:

> Should there be a common definition for the GSI QP1 well known QKey
> (0x80010000) in ib_mad.h ?
> 
> Also, a typo on line 104:
> * @hi_tid - Access layer assigned transition ID for this client.
> s.b.
> * @hi_tid - Access layer assigned transaction ID for this client.

How about something like this:

Index: ib_mad.h
===================================================================
--- ib_mad.h	(revision 686)
+++ ib_mad.h	(working copy)
@@ -28,6 +28,10 @@
 
 #include "ib_verbs.h"
 
+#define IB_QP0		0
+#define IB_QP1		__cpu_to_be32(1)
+#define IB_QP1_QKEY	__cpu_to_be32(0x80010000)
+
 struct ib_grh {
 	u32		version_tclass_flow;
 	u16		paylen;
@@ -101,7 +105,7 @@
  * @recv_handler - Callback handler for a received MAD.
  * @send_handler - Callback hander for a sent MAD.
  * @context - User-specified context associated with this registration.
- * @hi_tid - Access layer assigned transition ID for this client.
+ * @hi_tid - Access layer assigned transaction ID for this client.
  *   Unsolicited MADs sent by this client will have the upper 32-bits
  *   of their TID set to this value.
  */



More information about the general mailing list