NVMe over Fabrics: NQN UUID byte order
Verkamp, Daniel
daniel.verkamp at intel.com
Fri Jun 24 11:22:11 PDT 2016
The NVMe 1.2.1 specification, section 7.9 (NVMe Qualified Names), says
that the UUID format of NQN is based on RFC 4122, which explicitly
requires all fields to be in big-endian/network byte order (section
4.1.2, Layout and Byte Order).
However, the current NVMe over Fabrics host code generates and formats
the Host Identifier UUID in little-endian byte order:
>static struct nvmf_host *nvmf_host_default(void)
>{
[...]
> uuid_le_gen(&host->id);
> snprintf(host->nqn, NVMF_NQN_SIZE,
> "nqn.2014-08.org.nvmexpress:NVMf:uuid:%pUl", &host-
>id);
Is this intentional or an oversight?
This could probably use some clarification on the NVMe specification
side either way.
Thanks,
-- Daniel Verkamp
More information about the Linux-nvme
mailing list