[openib-general] [PATCH] mthca: report board id in sysfs

Michael S. Tsirkin mst at mellanox.co.il
Mon Jun 27 10:42:41 PDT 2005


Quoting r. Roland Dreier <rolandd at cisco.com>:
> Subject: Re: [openib-general] [PATCH] mthca: report board id in sysfs
> 
>     Michael> 4 last words in query adapter include the board id
>     Michael> (byte-swapped).  Show this board id in sysfs.
> 
> Thanks, looks useful.
> 
> Is the VSD really always byte-swapped or just in big-endian order?  In
> other words, should this:
> 
> +		adapter->board_id[i] = __swab32p(outbox + i + QUERY_ADAPTER_BOARD_ID_OFFSET / 4);
> 
> use be32_to_cpup() instead?
> 
>  - R.
> 

Its really an ASCII string, so it looks the same (byte-swapped) on all
architectures.

-- 
MST



More information about the general mailing list