[openib-general] Re: vapi versus openib imm_data

Jack Morgenstein jackm at mellanox.co.il
Sun May 21 23:30:21 PDT 2006


On Monday 22 May 2006 08:19, Michael S. Tsirkin wrote:
> Quoting r. Pete Wyckoff <pw at osc.edu>:
> > is there any good way to tell if the other side has put
> > its imm_data in network byte order or not?
>
> gen2 always assumes imm_data is given in network byte order.

VAPI assumes that imm_data is given (i.e., supplied to the API) in host byte 
order.  If the host is a little-endian host (as PCs are), the mlxhh (i.e., 
inner) layer will convert immediate data to network byte order on the send, 
and will convert received immediate data from Network byte order to host byte 
order on receive -- and the VAPI caller will receive the immediate data in 
host byte order.

- Jack



More information about the general mailing list