All of lore.kernel.org
 help / color / mirror / Atom feed
* NVMe over Fabrics: NQN UUID byte order
@ 2016-06-24 18:22 Verkamp, Daniel
  2016-06-28  8:45 ` Christoph Hellwig
  0 siblings, 1 reply; 8+ messages in thread
From: Verkamp, Daniel @ 2016-06-24 18:22 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-08-19  9:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-24 18:22 NVMe over Fabrics: NQN UUID byte order Verkamp, Daniel
2016-06-28  8:45 ` Christoph Hellwig
2016-06-28 18:20   ` [PATCH] nvme-fabrics: change NQN UUID to big-endian format Daniel Verkamp
2016-06-28 19:55     ` Freyensee, James P
2016-06-30  6:41     ` Christoph Hellwig
2016-08-18 19:48       ` Verkamp, Daniel
2016-08-19  9:02         ` Sagi Grimberg
2016-07-13 10:12     ` Sagi Grimberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.