]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
tree: Add NVMe-MI support
authorJeremy Kerr <jk@codeconstruct.com.au>
Wed, 13 Jul 2022 06:56:59 +0000 (14:56 +0800)
committerDaniel Wagner <dwagner@suse.de>
Fri, 12 Aug 2022 06:52:35 +0000 (08:52 +0200)
commit317a6bd54db343accf3766019a9c12585c04cb40
tree2c2ca2bd00f4daff7d0711dbc9081b5ea138470b
parent3c7a9be77d2dbc037728226b103f9c57e49bcaad
tree: Add NVMe-MI support

Now that we have a struct containing the NVMe device file descriptor, we
can abstract this to support different transport types.

This change adds support for NVMe-MI transports, by adding a `mi` member
to struct nvme_dev's union, and allowing devices to be specified by an
MCTP address:

    mctp:<network>,<endpoint-id>:<controller-id>

- where the `controller-id` is optional, and defaults to 0 if not
specified.

For this, we need to add suitable linkage to the libnvme-mi component of
the libnvme codebase.

None of the actual commands can use the MI transport at present, as they
currently assume access to dev->direct.fd. We will add facilities for
that in upcoming changes.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
meson.build
nvme.c
nvme.h
subprojects/libnvme.wrap