summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorCaleb Sander Mateos <csander@purestorage.com>2026-02-27 23:23:46 +0300
committerKeith Busch <kbusch@kernel.org>2026-03-27 17:35:03 +0300
commitac61e869bef13a43d624893559acbac3a4e2a341 (patch)
treeb93de6c49ca41165a530891393e4dada5875a98b /include/linux
parented6a9f7dabf84a9f2bed418e66eda6f8239b7f60 (diff)
downloadlinux-ac61e869bef13a43d624893559acbac3a4e2a341.tar.xz
nvme: add preferred I/O size fields to struct nvme_id_ns_nvm
A subsequent change will use the NPDGL and NPDAL fields of the NVM Command Set Specific Identify Namespace structure, so add them (and the handful of intervening fields) to struct nvme_id_ns_nvm. Add an assertion that the size is still 4 KB. Signed-off-by: Caleb Sander Mateos <csander@purestorage.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/nvme.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/nvme.h b/include/linux/nvme.h
index edfebbce6745..ec011dce4a97 100644
--- a/include/linux/nvme.h
+++ b/include/linux/nvme.h
@@ -513,9 +513,16 @@ struct nvme_id_ns_nvm {
__u8 pic;
__u8 rsvd9[3];
__le32 elbaf[64];
- __u8 rsvd268[3828];
+ __le32 npdgl;
+ __le32 nprg;
+ __le32 npra;
+ __le32 nors;
+ __le32 npdal;
+ __u8 rsvd288[3808];
};
+static_assert(sizeof(struct nvme_id_ns_nvm) == 4096);
+
enum {
NVME_ID_NS_NVM_STS_MASK = 0x7f,
NVME_ID_NS_NVM_GUARD_SHIFT = 7,