[openib-general] ib_post_send ib_send_wr question

Hal Rosenstock halr at voltaire.com
Fri Jul 30 15:11:14 PDT 2004


Sean Hefty wrote:
> Doesn't the hardware expect a pkey for any send posted to QP1?  If
> so, we'll know based on which QP the send is posted.  We should be
> able to add an assertion similar to this:
>
> ASSERT( qp->qp_num == IB_QP1 || wr->pkey_index == 0 );

I think you meant && rather than ||.

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.

-- Hal





More information about the general mailing list