Skip to content

Commit fce9d7f

Browse files
nitin-saoigaw
authored andcommitted
types: add new field added in TP4090
As per TP4090, a new field support is added as NPDGL (Namespace Preferred Deallocate Granularity Large) and so the bit-field of NSFEAT, OPTPERF get extended by 1 bit. Signed-off-by: Nitin Sao <[email protected]> Reviewed-by: Steven Seungcheol Lee <[email protected]> Reviewed-by: Mohit Kapoor <[email protected]>
1 parent ec2eb4a commit fce9d7f

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/nvme/types.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2298,7 +2298,7 @@ enum nvme_id_nsfeat {
22982298
NVME_NS_FEAT_NATOMIC = 1 << 1,
22992299
NVME_NS_FEAT_DULBE = 1 << 2,
23002300
NVME_NS_FEAT_ID_REUSE = 1 << 3,
2301-
NVME_NS_FEAT_IO_OPT = 1 << 4,
2301+
NVME_NS_FEAT_IO_OPT = 3 << 4,
23022302
};
23032303

23042304
/**
@@ -2723,15 +2723,17 @@ struct nvme_id_ctrl_nvm {
27232723
* @pifa: Protection Information Format Attribute
27242724
* @rsvd10: Reserved
27252725
* @elbaf: List of Extended LBA Format Support
2726-
* @rsvd268: Reserved
2726+
* @npdgl: Namespace Preferred Deallocate Granularity Large
2727+
* @rsvd272: Reserved
27272728
*/
27282729
struct nvme_nvm_id_ns {
27292730
__le64 lbstm;
27302731
__u8 pic;
27312732
__u8 pifa;
27322733
__u8 rsvd10[2];
27332734
__le32 elbaf[64];
2734-
__u8 rsvd268[3828];
2735+
__le32 npdgl;
2736+
__u8 rsvd272[3824];
27352737
};
27362738

27372739
/**

0 commit comments

Comments
 (0)