From: Caleb Sander Date: Thu, 14 Sep 2023 20:56:31 +0000 (-0600) Subject: ioctl: pass ENDGID in nvme_get_features_endurance_event_cfg() X-Git-Tag: v1.6~17 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=db619f71737cf61c400f4ca26c9d08cc69d07622;p=users%2Fsagi%2Flibnvme.git ioctl: pass ENDGID in nvme_get_features_endurance_event_cfg() The ENDGID parameter of nvme_get_features_endurance_event_cfg() is currently unused. According to the NVMe spec, it should be passed in CDW 11. Signed-off-by: Caleb Sander --- diff --git a/src/nvme/ioctl.c b/src/nvme/ioctl.c index 3da8d2f7..24bfd8e4 100644 --- a/src/nvme/ioctl.c +++ b/src/nvme/ioctl.c @@ -1207,7 +1207,7 @@ int nvme_get_features_endurance_event_cfg(int fd, enum nvme_get_features_sel sel .fid = NVME_FEAT_FID_ENDURANCE_EVT_CFG, .nsid = NVME_NSID_NONE, .sel = sel, - .cdw11 = 0, + .cdw11 = endgid, .uuidx = NVME_UUID_NONE, .data_len = 0, .data = NULL,