Quoting r. Roland Dreier <[EMAIL PROTECTED]>:
> 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
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

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

Reply via email to