summaryrefslogtreecommitdiffstats
path: root/drivers/nvme/target/nvmet.h
diff options
context:
space:
mode:
authorJay Sternberg <jay.e.sternberg@intel.com>2018-11-12 13:56:37 -0800
committerJens Axboe <axboe@kernel.dk>2018-12-07 22:26:56 -0700
commitf301c2b1368905340133ff8ef4485befdd0b7e2d (patch)
tree2a114b97b9c8a29a169f2aee8fb912dd08b2a133 /drivers/nvme/target/nvmet.h
parent90107455cce753c05a5e1e80cb84b09da1c87eef (diff)
downloadlinux-f301c2b1368905340133ff8ef4485befdd0b7e2d.tar.gz
linux-f301c2b1368905340133ff8ef4485befdd0b7e2d.tar.bz2
linux-f301c2b1368905340133ff8ef4485befdd0b7e2d.zip
nvmet: add defines for discovery change async events
Add AEN/AER values as defined by the specification Signed-off-by: Jay Sternberg <jay.e.sternberg@intel.com> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/nvme/target/nvmet.h')
-rw-r--r--drivers/nvme/target/nvmet.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/nvme/target/nvmet.h b/drivers/nvme/target/nvmet.h
index a8ee265a3806..bc99c700a583 100644
--- a/drivers/nvme/target/nvmet.h
+++ b/drivers/nvme/target/nvmet.h
@@ -36,6 +36,8 @@
*/
#define NVMET_AEN_CFG_OPTIONAL \
(NVME_AEN_CFG_NS_ATTR | NVME_AEN_CFG_ANA_CHANGE)
+#define NVMET_DISC_AEN_CFG_OPTIONAL \
+ (NVME_AEN_CFG_DISC_CHANGE)
/*
* Plus mandatory SMART AENs (we'll never send them, but allow enabling them):