Skip to content

MI: Update MI Admin API to suit core#386

Merged
igaw merged 3 commits intolinux-nvme:masterfrom
CodeConstruct:mi
Jun 17, 2022
Merged

MI: Update MI Admin API to suit core#386
igaw merged 3 commits intolinux-nvme:masterfrom
CodeConstruct:mi

Conversation

@jk-ozlabs
Copy link
Copy Markdown
Collaborator

This changeset unifies the first set of MI Admin commands to use the _args-struct-style API, and updates the example code in mi-mctp to suit, and clarify the usage of the identify_partial function.

This is dependent on #384 to expose those _args types.

As always, let me know if you have any queries/comments!

This change establishes a new (internal) header, api-types.h, and moves
the existing _args structs from ioctl.h.

This will allow us to share the definitions between the direct-ioctl
and MI interfaces.

The changes are purely a move of the struct definitions, and some
whitespace fixes, and some new file-level comments. None of the structs
are altered.

Fixes linux-nvme#373 .

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
…mands

This change adds a --partial argument to the mi-mctp command, so we have
an example of both the full and partial identify APIs.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
@igaw
Copy link
Copy Markdown
Collaborator

igaw commented Jun 17, 2022

Nice cleanup. The _args structs usage here is a good improvement.

@igaw igaw merged commit a779efa into linux-nvme:master Jun 17, 2022
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