[openib-general] [BUG] Byte swapped Pkeys

Fab Tillier ftillier at infiniconsys.com
Wed Sep 15 15:02:02 PDT 2004


> From: Sean Hefty [mailto:mshefty at ichips.intel.com]
> Sent: Wednesday, September 15, 2004 2:54 PM
> 
> On Wed, 15 Sep 2004 13:44:54 -0700
> Tom Duffy <tduffy at sun.com> wrote:
> 
> > I am still investigating why this is happening, but I would like to
> > suggest that we change all the pkeys in openib to use 0x0BB0 other than
> > 0xFFFF from now on so that we can be sure to see clearly when things are
> > not going out network endian ;)
> 
> Is there a reason why pkeys shouldn't be big endian all the time?

Personally, I would like to see all wire values handled in network order in
the stack rather than swapped.  For things like pkeys, QPNs, etc where the
value is really opaque for the user, there's no value in putting it in host
order.

- Fab




More information about the general mailing list