[openib-general] ib_post_send ib_send_wr question

Sean Hefty mshefty at ichips.intel.com
Fri Jul 30 13:48:33 PDT 2004


On Fri, 30 Jul 2004 17:36:01 -0400
Hal Rosenstock <halr at voltaire.com> wrote:

> I may have missed this in the email thread on this.
> 
> struct ib_send_wr {
> ...
>   struct {
>    struct  ib_ah *ah;
>    u32 remote_qpn;
>    u32 remote_qkey;
>    u16 pkey_index;
>   } ud;
>  } wr;
> };
> 
> When sending UD, there is a pkey_index included in the structure.
> 
> In VAPI/EVAPI, there were two post sends: the normal VAPI one which does not
> take a PKey index and the EVAPI one for the GSI which does take a PKey
> index. It looks like we have collapsed the two into one, but there is no way
> to indicate whether the PKey index is present or not. I think a flag is
> needed for this to indicate whether the index is present or not, otherwise
> it always needs to be supplied. Am I missing something ?.

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 );



More information about the general mailing list