Skip to content

Commit b17f79a

Browse files
ikegami-tigaw
authored andcommitted
types: add performance characteristics attribute definitions
Add ATTRI and R4KARL definitions. Signed-off-by: Tokunori Ikegami <[email protected]>
1 parent 0172e65 commit b17f79a

1 file changed

Lines changed: 68 additions & 0 deletions

File tree

src/nvme/types.h

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9427,6 +9427,74 @@ enum nvme_feat_nswpcfg_state {
94279427
NVME_FEAT_NS_WRITE_PROTECT_PERMANENT = 3,
94289428
};
94299429

9430+
/**
9431+
* enum nvme_feat_perfc_attri - performance characteristics attribute index
9432+
* @NVME_FEAT_PERFC_ATTRI_STD: standard performance attribute
9433+
* @NVME_FEAT_PERFC_ATTRI_ID_LIST: performance attribute identifier list
9434+
* @NVME_FEAT_PERFC_ATTRI_VS_MIN: vendor specific performance attribute minimum index
9435+
* @NVME_FEAT_PERFC_ATTRI_VS_MAX: vendor specific performance attribute maximum index
9436+
*/
9437+
enum nvme_feat_perfc_attri {
9438+
NVME_FEAT_PERFC_ATTRI_STD = 0,
9439+
NVME_FEAT_PERFC_ATTRI_ID_LIST = 0xc0,
9440+
NVME_FEAT_PERFC_ATTRI_VS_MIN = 0xc1,
9441+
NVME_FEAT_PERFC_ATTRI_VS_MAX = 0xff,
9442+
};
9443+
9444+
/**
9445+
* enum nvme_feat_perfc_r4karl - standard performance attribute random 4 kib average latency
9446+
* @NVME_FEAT_PERFC_R4KARL_NO_REPORT: not reported
9447+
* @NVME_FEAT_PERFC_R4KARL_GE_100_SEC: greater than or equal to 100 secs
9448+
* @NVME_FEAT_PERFC_R4KARL_GE_50_SEC: greater than or equal to 50 secs and less than 100 secs
9449+
* @NVME_FEAT_PERFC_R4KARL_GE_10_SEC: greater than or equal to 10 secs and less than 50 secs
9450+
* @NVME_FEAT_PERFC_R4KARL_GE_5_SEC: greater than or equal to 5 secs and less than 10 secs
9451+
* @NVME_FEAT_PERFC_R4KARL_GE_1_SEC: greater than or equal to 1 sec and less than 5 secs
9452+
* @NVME_FEAT_PERFC_R4KARL_GE_500_MS: greater than or equal to 500 msecs and less than 1 sec
9453+
* @NVME_FEAT_PERFC_R4KARL_GE_100_MS: greater than or equal to 100 msecs and less than 500 msecs
9454+
* @NVME_FEAT_PERFC_R4KARL_GE_50_MS: greater than or equal to 50 msecs and less than 100 msecs
9455+
* @NVME_FEAT_PERFC_R4KARL_GE_10_MS: greater than or equal to 10 msecs and less than 50 msecs
9456+
* @NVME_FEAT_PERFC_R4KARL_GE_5_MS: greater than or equal to 5 msecs and less than 10 msecs
9457+
* @NVME_FEAT_PERFC_R4KARL_GE_1_MS: greater than or equal to 1 msec and less than 5 msecs
9458+
* @NVME_FEAT_PERFC_R4KARL_GE_500_US: greater than or equal to 500 usecs and less than 1 msec
9459+
* @NVME_FEAT_PERFC_R4KARL_GE_100_US: greater than or equal to 100 usecs and less than 500 usecs
9460+
* @NVME_FEAT_PERFC_R4KARL_GE_50_US: greater than or equal to 50 usecs and less than 100 usecs
9461+
* @NVME_FEAT_PERFC_R4KARL_GE_10_US: greater than or equal to 10 usecs and less than 50 usecs
9462+
* @NVME_FEAT_PERFC_R4KARL_GE_5_US: greater than or equal to 5 usecs and less than 10 usecs
9463+
* @NVME_FEAT_PERFC_R4KARL_GE_1_US: greater than or equal to 1 usec and less than 5 usecs
9464+
* @NVME_FEAT_PERFC_R4KARL_GE_500_NS: greater than or equal to 500 nsecs and less than 1 usec
9465+
* @NVME_FEAT_PERFC_R4KARL_GE_100_NS: greater than or equal to 100 nsecs and less than 500 nsecs
9466+
* @NVME_FEAT_PERFC_R4KARL_GE_50_NS: greater than or equal to 50 nsecs and less than 100 nsecs
9467+
* @NVME_FEAT_PERFC_R4KARL_GE_10_NS: greater than or equal to 10 nsecs and less than 50 nsecs
9468+
* @NVME_FEAT_PERFC_R4KARL_GE_5_NS: greater than or equal to 5 nsecs and less than 10 nsecs
9469+
* @NVME_FEAT_PERFC_R4KARL_GE_1_NS: greater than or equal to 1 nsec and less than 5 nsecs
9470+
*/
9471+
enum nvme_feat_perfc_r4karl {
9472+
NVME_FEAT_PERFC_R4KARL_NO_REPORT = 0x0,
9473+
NVME_FEAT_PERFC_R4KARL_GE_100_SEC = 0x1,
9474+
NVME_FEAT_PERFC_R4KARL_GE_50_SEC = 0x2,
9475+
NVME_FEAT_PERFC_R4KARL_GE_10_SEC = 0x3,
9476+
NVME_FEAT_PERFC_R4KARL_GE_5_SEC = 0x4,
9477+
NVME_FEAT_PERFC_R4KARL_GE_1_SEC = 0x5,
9478+
NVME_FEAT_PERFC_R4KARL_GE_500_MS = 0x6,
9479+
NVME_FEAT_PERFC_R4KARL_GE_100_MS = 0x7,
9480+
NVME_FEAT_PERFC_R4KARL_GE_50_MS = 0x8,
9481+
NVME_FEAT_PERFC_R4KARL_GE_10_MS = 0x9,
9482+
NVME_FEAT_PERFC_R4KARL_GE_5_MS = 0xa,
9483+
NVME_FEAT_PERFC_R4KARL_GE_1_MS = 0xb,
9484+
NVME_FEAT_PERFC_R4KARL_GE_500_US = 0xc,
9485+
NVME_FEAT_PERFC_R4KARL_GE_100_US = 0xd,
9486+
NVME_FEAT_PERFC_R4KARL_GE_50_US = 0xe,
9487+
NVME_FEAT_PERFC_R4KARL_GE_10_US = 0xf,
9488+
NVME_FEAT_PERFC_R4KARL_GE_5_US = 0x10,
9489+
NVME_FEAT_PERFC_R4KARL_GE_1_US = 0x11,
9490+
NVME_FEAT_PERFC_R4KARL_GE_500_NS = 0x12,
9491+
NVME_FEAT_PERFC_R4KARL_GE_100_NS = 0x13,
9492+
NVME_FEAT_PERFC_R4KARL_GE_50_NS = 0x14,
9493+
NVME_FEAT_PERFC_R4KARL_GE_10_NS = 0x15,
9494+
NVME_FEAT_PERFC_R4KARL_GE_5_NS = 0x16,
9495+
NVME_FEAT_PERFC_R4KARL_GE_1_NS = 0x17,
9496+
};
9497+
94309498
/**
94319499
* enum nvme_fctype - Fabrics Command Types
94329500
* @nvme_fabrics_type_property_set: Property set

0 commit comments

Comments
 (0)