On 5/22/06, Sean Hefty <[EMAIL PROTECTED]> 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
_______________________________________________
openib-general mailing list
openib-general@openib.org
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to