]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
fabrics: Ensure host-traddr/iface consistency for "connect-all"
authorMartin Belanger <martin.belanger@dell.com>
Fri, 10 Feb 2023 16:56:36 +0000 (11:56 -0500)
committerDaniel Wagner <wagi@monom.org>
Wed, 15 Feb 2023 13:01:21 +0000 (14:01 +0100)
commit530728a4dc68528d8c89d1c4da36a385581fda53
tree30c2317b84c5f3cfedde3d95cae76f6d03082b04
parent05bed345efcaa6037cdf4a88609275abefdac2e8
fabrics: Ensure host-traddr/iface consistency for "connect-all"

When using "connect-all --device" without specifying the options
--host-traddr and --host-iface, the children connections may not
have the same host-traddr/host-iface as the connection to the
discovery controller (DC).

This is specific to the --device option where one reuses a
persistent connection to a discovery controller to update the
discovery log pages (DLP) and connect to new controllers listed in
the new DLP. If --device is used w/o also specifying --host-traddr
and --host-iface, then the new connections may not use the same
attributes that were used for the DC connection.

This patch checks if --host-traddr and --host-iface have been
provided, and if not, it will use the DC's --host-traddr and
--host-iface for the new connections made as a result of changes
to the DLP.

Signed-off-by: Martin Belanger <martin.belanger@dell.com>
fabrics.c