]> git.karo-electronics.de Git - linux-beck.git/commit
nvme-fabrics: change NQN UUID to big-endian format
authorDaniel Verkamp <daniel.verkamp@intel.com>
Tue, 28 Jun 2016 18:20:23 +0000 (11:20 -0700)
committerSagi Grimberg <sagi@grimberg.me>
Fri, 19 Aug 2016 09:00:44 +0000 (12:00 +0300)
commit7a665d2f60b457c0d77b3e4f01e21c55ffc57069
treeb57083a9b2a3c70e96d857c9c8ad5a3b49a2448b
parenteadb7cf44105ae8250f0d638dc880c3ed511c4e2
nvme-fabrics: change NQN UUID to big-endian format

NVM Express 1.2.1 section 7.9, NVMe Qualified Names, specifies that the
UUID format of NQN uses a UUID based on RFC 4122.

RFC 4122 specifies that the UUID is encoded in big-endian byte order.

Switch the NVMe over Fabrics host ID field from little-endian UUID to
big-endian UUID to match the specification.

Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Jay Freyensee <james_p_freyensee@linux.intel.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/host/fabrics.c
drivers/nvme/host/fabrics.h
include/linux/nvme.h