summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKeith Busch <keith.busch@intel.com>2012-07-26 19:29:57 +0200
committerMatthew Wilcox <matthew.r.wilcox@intel.com>2012-07-26 19:43:20 +0200
commit8fc23e032debd682f5ba9fc524a5846c10d2c522 (patch)
treeb940a216734f2c947cfae5ac9a80b45a86c506e3 /include
parentNVMe: use namespace id for nvme_get_features (diff)
downloadlinux-8fc23e032debd682f5ba9fc524a5846c10d2c522.tar.xz
linux-8fc23e032debd682f5ba9fc524a5846c10d2c522.zip
NVMe: Set block queue max sectors
Set the max hw sectors in a namespace's request queue if the nvme device has a max data transfer size. Signed-off-by: Keith Busch <keith.busch@intel.com> Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/nvme.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/nvme.h b/include/linux/nvme.h
index 9490a00529f4..8c71d2004c6d 100644
--- a/include/linux/nvme.h
+++ b/include/linux/nvme.h
@@ -37,6 +37,7 @@ struct nvme_bar {
#define NVME_CAP_TIMEOUT(cap) (((cap) >> 24) & 0xff)
#define NVME_CAP_STRIDE(cap) (((cap) >> 32) & 0xf)
+#define NVME_CAP_MPSMIN(cap) (((cap) >> 48) & 0xf)
enum {
NVME_CC_ENABLE = 1 << 0,