[openib-general] Wrong byte order in lid of struct ibv_port_attr reported by ibv_query port!?

Sean Hefty mshefty at ichips.intel.com
Mon Sep 11 10:18:08 PDT 2006


Bub Thomas wrote:
> with the help of your modified cmpost.c example I found out that the 
> byte order in the lid your query_for_path in cmpost.c is getting into 
> the ib_sa_path_rec is the opposite to the one reported by  ibv_query_port.

The path record defines all fields in network-byte order.  The verb calls use 
host-byte order.  Typically, the path record information will come directly from 
the SA, which defines the fields in network-byte order, which is why it isn't 
converted to host-order.

- Sean




More information about the general mailing list