[openib-general] ib_post_send ib_send_wr question

Sean Hefty mshefty at ichips.intel.com
Fri Jul 30 14:21:42 PDT 2004


On Fri, 30 Jul 2004 18:11:14 -0400
Hal Rosenstock <halr at voltaire.com> wrote:

> > ASSERT( qp->qp_num == IB_QP1 || wr->pkey_index == 0 );
> 
> I think you meant && rather than ||.

The OR was intended.  The pkey index must either be set to 0 or the QP must be 1.

> Are indices 1 based rather than 0 based (so 0 can mean invalid) ?
 
> I would rather have a flag to indicate the presence or absence of the
> pkey_index in the ud structure.

I think the flag is the qp_num.  If it's IB_QP1, then the pkey index must be set.  If it's not IB_QP1, then it should be 0 (or is ignored).



More information about the general mailing list