Skip to content

Commit 6605bdd

Browse files
bvanasscheChristoph Hellwig
authored andcommitted
nvme: add I/O characteristics fields
Several new fields have been introduced in version 1.4 of the NVMe spec at offsets that were defined as reserved in version 1.3d of the NVMe spec. Update the definition of the nvme_id_ns data structure such that it is in sync with version 1.4 of the NVMe spec. This change preserves backwards compatibility. Signed-off-by: Bart Van Assche <[email protected]> Reviewed-by: Keith Busch <[email protected]> Reviewed-by: Chaitanya Kulkarni <[email protected]> Reviewed-by: Martin K. Petersen <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
1 parent 9d05a96 commit 6605bdd

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

include/linux/nvme.h

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ struct nvme_id_ns {
315315
__u8 nmic;
316316
__u8 rescap;
317317
__u8 fpi;
318-
__u8 rsvd33;
318+
__u8 dlfeat;
319319
__le16 nawun;
320320
__le16 nawupf;
321321
__le16 nacwu;
@@ -324,11 +324,17 @@ struct nvme_id_ns {
324324
__le16 nabspf;
325325
__le16 noiob;
326326
__u8 nvmcap[16];
327-
__u8 rsvd64[28];
327+
__le16 npwg;
328+
__le16 npwa;
329+
__le16 npdg;
330+
__le16 npda;
331+
__le16 nows;
332+
__u8 rsvd74[18];
328333
__le32 anagrpid;
329334
__u8 rsvd96[3];
330335
__u8 nsattr;
331-
__u8 rsvd100[4];
336+
__le16 nvmsetid;
337+
__le16 endgid;
332338
__u8 nguid[16];
333339
__u8 eui64[8];
334340
struct nvme_lbaf lbaf[16];

0 commit comments

Comments
 (0)