[openib-general] Re: vapi versus openib imm_data

Fabian Tillier ftillier at silverstorm.com
Mon May 22 09:43:35 PDT 2006


On 5/22/06, Sean Hefty <sean.hefty at intel.com> wrote:
> >Thanks both.  I'll solve this by adding htonl/ntohl, only on the
> >VAPI side
>
> Since VAPI is wanting the data in host order, while openib uses network order,
> it makes more sense to me to do the swapping on the openib side.

It doesn't matter what VAPI wants - it's the application that matters.
 If the application is using the immediate data for flags, you don't
need any swapping on the OpenIB side of things, and you can avoid the
swap altogether.  While this makes the VAPI implementation less
efficient (two swaps of the immediate data), hopefully that
implementation will be replaced overtime with OpenIB leaving an
optimal solution.  Again, this all depends on what the app is doing
with the immediate data.

- Fab



More information about the general mailing list