[openib-general] RE: why does the value of the node_guid don't have the machine en dian ess?
Dotan Barak
dotanb at mellanox.co.il
Thu Jul 21 01:58:29 PDT 2005
> -----Original Message-----
> From: Roland Dreier [mailto:rolandd at cisco.com]
> Subject: Re: why does the value of the node_guid don't have the machine
endianess?
>
> Dotan> why do i need to change the endianess of node_guid when i
> Dotan> use it from query_hca?
>
> Which endianess do you want to get the node_guid in?
I expect the value to have the same endian-ness when printed with %llx and
when read from sysfs.
swlab140:/home/dotanb/infiniband/newvstat/child>grep XXX vstat.c
printf("XXXXXXX %llx\n", device_attr.node_guid);
swlab140:/home/dotanb/infiniband/newvstat/child>./vstat | grep XXX
XXXXXXX 4018000002c90200
swlab140:/home/dotanb/infiniband/newvstat/child>cat
/sys/class/infiniband/mthca0/node_guid
0002:c902:0000:1840
Why is that?
Dotan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20050721/f4a04d99/attachment.html>
More information about the general
mailing list