Skip to content

types: add performance attribute structures#971

Merged
igaw merged 4 commits intolinux-nvme:masterfrom
ikegami-t:perf-char-str
Apr 7, 2025
Merged

types: add performance attribute structures#971
igaw merged 4 commits intolinux-nvme:masterfrom
ikegami-t:perf-char-str

Conversation

@ikegami-t
Copy link
Copy Markdown
Contributor

These for the performance characteristics feature: 1Ch.

Comment thread src/nvme/types.h
Comment thread src/nvme/types.h Outdated
Comment thread src/nvme/types.h Outdated
* @vs: Vendor specific
*/
struct nvme_vs_perf_attr {
struct nvme_perf_attr_id paid;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure we want to model it this way? From the spec I would just use __u8 paid[NVME_UUID_LEN] directly.

Should nvme_perf_attr_id exist as it is not really directly as data struct defined in the spec? I'd like to stick as close as possible to the spec and don't come up with our own data structs. While I agree in this case here it would make sense (and it is cleaner), I think it would be better to stick to the spec.

I can be convinced to do add it though. Thoughts? @keithbusch

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Understood.

@ikegami-t
Copy link
Copy Markdown
Contributor Author

Fixed the review comments and rebased but the UUID changes still remained for the build error as mentioned. Thank you.

These for the performance characteristics feature: 1Ch.

Signed-off-by: Tokunori Ikegami <[email protected]>
The feature command dword 11 shifts and masks values.

Signed-off-by: Tokunori Ikegami <[email protected]>
Decodes the feature command dword 11 fields values.

Signed-off-by: Tokunori Ikegami <[email protected]>
The attribute type shifts and masks values.

Signed-off-by: Tokunori Ikegami <[email protected]>
@igaw igaw merged commit 90f741d into linux-nvme:master Apr 7, 2025
12 checks passed
@igaw
Copy link
Copy Markdown
Collaborator

igaw commented Apr 7, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants