[PATCH] nvme-scsi: Use correct byte ordering for eui64 in Dev ID VPD

Jon Derrick jonathan.derrick at intel.com
Tue Apr 25 13:55:19 PDT 2017


On 04/25/2017 02:18 PM, Jon Derrick wrote:
> NVME specifies an EUI64/NGUID in little-endian format, while SCSI
> specifies that the Device Identification VPD use big-endian for EUI
> formats. The current code copies this bytestream directly from the
> Identification Namespace page, meaning we just need to reverse the
> bytestream when passing it on to the VPD.
> 

This seems to hold true for NGUID devices, but Keith just pointed out to
me that it may not hold true for EUI64 devices. It seems like that case
needs byte swiveling within each field. So I'll NAK for now until I can
figure out if that's the case.



More information about the Linux-nvme mailing list