aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/nvme.h
diff options
context:
space:
mode:
authorArnav Dawn <a.dawn@samsung.com>2017-07-12 16:11:53 +0530
committerChristoph Hellwig <hch@lst.de>2017-08-28 21:38:17 +0200
commit62346eaeb2f1a0524b35eaa2f479596f40491165 (patch)
treefef83a0da3eff974abbe3b96f4ce5378d4726e99 /include/linux/nvme.h
parentnvme: add support for FW activation without reset (diff)
downloadlinux-dev-62346eaeb2f1a0524b35eaa2f479596f40491165.tar.xz
linux-dev-62346eaeb2f1a0524b35eaa2f479596f40491165.zip
nvme: define NVME_NSID_ALL
Define the constant "0xffffffff" (used as nsid for all namespaces) as NVME_NSID_ALL. Signed-off-by: Arnav Dawn <a.dawn@samsung.com> Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Diffstat (limited to 'include/linux/nvme.h')
-rw-r--r--include/linux/nvme.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/nvme.h b/include/linux/nvme.h
index 5d0f2f4fc3b8..1d79046bf9d4 100644
--- a/include/linux/nvme.h
+++ b/include/linux/nvme.h
@@ -32,6 +32,8 @@
#define NVME_RDMA_IP_PORT 4420
+#define NVME_NSID_ALL 0xffffffff
+
enum nvme_subsys_type {
NVME_NQN_DISC = 1, /* Discovery type target subsystem */
NVME_NQN_NVME = 2, /* NVME type target subsystem */