]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme-cli: extend ctrl_list_item for connect attributes
authorJames Smart <jsmart2021@gmail.com>
Thu, 1 Aug 2019 23:13:43 +0000 (16:13 -0700)
committerKeith Busch <kbusch@kernel.org>
Fri, 2 Aug 2019 15:42:59 +0000 (09:42 -0600)
commit689f3bd8396aece59017477ca836d31a28d49223
treeb62ad337d6a8017a61cea0f2b2c6b29a636102fb
parent2317e38fb045198a9bb2d9dc3d8f6ef85ce0d926
nvme-cli: extend ctrl_list_item for connect attributes

In preparation for searching controllers to match with connect args:

Extend the ctrl_list_item with elements that can be compared against
connect arguments. Extend the get_nvme_ctrl_info() routine to set
the fields.

subsysnqn was added as the ctrl_list_item may now be used outside of
a subsystem listing.

traddr, trsvid, and host_traddr are added. Their values come from
the address attribute.  A new parsing routine was added that extracts
the values from the address string.

The new parsing routine and supporting field names strings are
declared as a global interface as a subsequent patch will call it
from the fabrics routines.

Signed-off-by: James Smart <jsmart2021@gmail.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Hannes Reinecke <hare@suse.com>
nvme.c
nvme.h