Skip to content

Commit 04061b4

Browse files
ikegami-tigaw
authored andcommitted
util: add FDP events feature length
Since currently the feature length implemented in nvme-cli. Signed-off-by: Tokunori Ikegami <[email protected]>
1 parent 81bd404 commit 04061b4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/nvme/util.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,9 @@ int nvme_get_feature_length(int fid, __u32 cdw11, __u32 *len)
565565
case NVME_FEAT_FID_PERF_CHARACTERISTICS:
566566
*len = sizeof(struct nvme_perf_characteristics);
567567
break;
568+
case NVME_FEAT_FID_FDP_EVENTS:
569+
*len = NVME_FEAT_FDPE_NOET_MASK * sizeof(struct nvme_fdp_supported_event_desc);
570+
break;
568571
default:
569572
errno = EINVAL;
570573
return -1;

0 commit comments

Comments
 (0)