File 0021-nvme-cli-add-fields-into-identify-controller-data-st.patch of Package nvme-cli.10193
From 1ea76d865338418beb89630a8d465a25d234675f Mon Sep 17 00:00:00 2001
From: Guan Junxiong <guanjunxiong@huawei.com>
Date: Fri, 2 Jun 2017 15:18:18 +0800
Subject: nvme-cli: add fields into identify controller data structure
Git-commit: d959c5db2e4f839e082640a3fc8f771256379919
References: bsc#1076004
NVMe 1.3 inctrodues new fields such as EDSTT, DSTO, FWUG, HCTMA, MNTMT, MXTMT, SANICAP
into the idenfity controller data structure. So we add them. Note that KAS field is
included in the previous NVMe 1.2.1 spec, but not itemized in the nvme-cli.
Signed-off-by: Keith Busch <keith.busch@intel.com>
---
linux/nvme.h | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/linux/nvme.h b/linux/nvme.h
index a2f2b63..677d767 100644
--- a/linux/nvme.h
+++ b/linux/nvme.h
@@ -208,9 +208,15 @@ struct nvme_id_ctrl {
__u8 tnvmcap[16];
__u8 unvmcap[16];
__le32 rpmbs;
- __u8 rsvd316[4];
+ __le16 edstt;
+ __u8 dsto;
+ __u8 fwug;
__le16 kas;
- __u8 rsvd322[190];
+ __le16 hctma;
+ __le16 mntmt;
+ __le16 mxtmt;
+ __le32 sanicap;
+ __u8 rsvd332[180];
__u8 sqes;
__u8 cqes;
__le16 maxcmd;
--
2.13.7