summaryrefslogtreecommitdiffstats
path: root/drivers/nvme/target
diff options
context:
space:
mode:
authorGabriel Krisman Bertazi <krisman@linux.vnet.ibm.com>2016-10-19 09:51:05 -0600
committerJens Axboe <axboe@fb.com>2016-10-19 11:36:22 -0600
commit8ef2074d28373014d05e92b5f13364ef51075b6e (patch)
tree91ac7fced12f266dbf6e42aa73c0dffa1aeb039f /drivers/nvme/target
parent202021c1a63c6ed69b3260e0fe10530c51f1e53e (diff)
downloadlinux-8ef2074d28373014d05e92b5f13364ef51075b6e.tar.gz
linux-8ef2074d28373014d05e92b5f13364ef51075b6e.tar.bz2
linux-8ef2074d28373014d05e92b5f13364ef51075b6e.zip
nvme: Add tertiary number to NVME_VS
NVMe 1.2.1 specification adds a tertiary element to the version number. This updates the macro and its callers to include the final number and fixup a single place in nvmet where the version was generated manually. Signed-off-by: Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/nvme/target')
-rw-r--r--drivers/nvme/target/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/target/core.c b/drivers/nvme/target/core.c
index 6559d5afa7bf..b4cacb6f0258 100644
--- a/drivers/nvme/target/core.c
+++ b/drivers/nvme/target/core.c
@@ -882,7 +882,7 @@ struct nvmet_subsys *nvmet_subsys_alloc(const char *subsysnqn,
if (!subsys)
return NULL;
- subsys->ver = (1 << 16) | (2 << 8) | 1; /* NVMe 1.2.1 */
+ subsys->ver = NVME_VS(1, 2, 1); /* NVMe 1.2.1 */
switch (type) {
case NVME_NQN_NVME: