Skip to content

Commit a3f8f83

Browse files
ikegami-tigaw
authored andcommitted
util: add performance characteristic feature length
Return performance characteristic structure data size. Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
1 parent b17f79a commit a3f8f83

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/nvme/util.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,9 @@ int nvme_get_feature_length(int fid, __u32 cdw11, __u32 *len)
562562
case NVME_FEAT_FID_NS_METADATA:
563563
*len = sizeof(struct nvme_host_metadata);
564564
break;
565+
case NVME_FEAT_FID_PERF_CHARACTERISTICS:
566+
*len = sizeof(struct nvme_perf_characteristics);
567+
break;
565568
default:
566569
errno = EINVAL;
567570
return -1;

0 commit comments

Comments
 (0)