diff options
author | Keith Busch <keith.busch@intel.com> | 2017-11-07 17:13:10 -0500 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-11-10 21:53:25 -0500 |
commit | 38dabe210fbab4e7e8a03670ab3ba42f247ea08f (patch) | |
tree | 18928cb8fff987712a2b1a0d1ef7ee7d549fbd8f /include/linux/nvme.h | |
parent | 4185f25acbc2a191341c7d8cf51e449698eceb06 (diff) |
nvme: centralize AEN defines
All the transports were unnecessarilly duplicating the AEN request
accounting. This patch defines everything in one place.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Guan Junxiong <guanjunxiong@huawei.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/nvme.h')
-rw-r--r-- | include/linux/nvme.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/nvme.h b/include/linux/nvme.h index fd1d4508a612..89ffa7eed2fd 100644 --- a/include/linux/nvme.h +++ b/include/linux/nvme.h | |||
@@ -90,6 +90,14 @@ enum { | |||
90 | }; | 90 | }; |
91 | 91 | ||
92 | #define NVME_AQ_DEPTH 32 | 92 | #define NVME_AQ_DEPTH 32 |
93 | #define NVME_NR_AEN_COMMANDS 1 | ||
94 | #define NVME_AQ_BLK_MQ_DEPTH (NVME_AQ_DEPTH - NVME_NR_AEN_COMMANDS) | ||
95 | |||
96 | /* | ||
97 | * Subtract one to leave an empty queue entry for 'Full Queue' condition. See | ||
98 | * NVM-Express 1.2 specification, section 4.1.2. | ||
99 | */ | ||
100 | #define NVME_AQ_MQ_TAG_DEPTH (NVME_AQ_BLK_MQ_DEPTH - 1) | ||
93 | 101 | ||
94 | enum { | 102 | enum { |
95 | NVME_REG_CAP = 0x0000, /* Controller Capabilities */ | 103 | NVME_REG_CAP = 0x0000, /* Controller Capabilities */ |