On 8/7/2017 4:58 PM, Richard Cochran wrote:
On Mon, Jul 24, 2017 at 05:07:46PM +0300, Feras Daoud wrote:
In Infiniband, every interface has three identifiers:
GUID, GID, and LID.
The GUID is similar in concept to a MAC address. From RFC4392:
The EUI-64 portion of a GID is referred to as the Global Unique
Identifier (GUID) and is the only persistent identifier of a port.
So we have to parse sysfs because SIOCGIFHWADDR does not return the
info we need. Is that right?
Right, SIOCGIFHWADDR ioctl call returns the 14 msb bytes of the device
address.
In our case, the GUID is the 6 lsb bytes of the 20 byte device address,
so it is not possible
to get the GUID using SIOCGIFHWADDR ioctl call.
Thanks,
Richard
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel