[openib-general] [PATCH] ib_mad.h: Remove network endian conversionof QP1 QKey
Hal Rosenstock
halr at voltaire.com
Wed Oct 6 10:21:04 PDT 2004
On Wed, 2004-10-06 at 12:46, Fab Tillier wrote:
> > From: Hal Rosenstock [mailto:halr at voltaire.com]
> > Sent: Wednesday, October 06, 2004 9:42 AM
> >
> > ib_mad.h: Remove network endian conversion of QP1 QKey
>
> I don't get the point. Is IB_QP1_QKEY going to be treated in host order,
> and then swapped by someone at some point when posting? Does mthca expect
> the QKey to be provided in host order and then swap it when formatting the
> WQEs?
In ib_mad.c, it's used as a QKey attribute to the HCA when the QP is
initialized.
In a client, it's used as the remote QKey in the send WR ud request.
The only byte swapping is done by the HCA not in the MAD layer or
client.
-- Hal
More information about the general
mailing list