]> git.ipfire.org Git - thirdparty/dracut-ng.git/commit
fix(iscsi): don't require network setup for bnx2i
authorMartin Wilck <mwilck@suse.com>
Fri, 16 Aug 2024 20:33:18 +0000 (22:33 +0200)
committerLaszlo <laszlo.gombos@gmail.com>
Sat, 18 Jan 2025 00:42:31 +0000 (19:42 -0500)
commitcc2c48a0b3b97781e7e10e8fc9bd0a74c4c5bce2
tree0d02fe6418f0b35b0448ffe96de000b984ea09de
parent14d3fda569add81bdd628f3545449524b006137e
fix(iscsi): don't require network setup for bnx2i

The bnx2i iSCSI transport doesn't require networking to be set up in order to
bring up iSCSI connections. Quite to the contrary, trying to bring up the
network may actually disturb the iSCSI connection. This holds in particular
for bnx2i device with NPAR (network partitioning) support, where a given
network interface can be used for both iSCSI and regular networking. Setting
certain network parameters like MTU on the network side can fatally disrupt
an existing iSCSI connection. Even if this does not happen, trying to bring
up the regular network interfaces is pointless because iSCSI won't be enabled
over regular TCP/IP anyway. Trying to bring up the network interfaces and
possibly failing delays booting unecessarily and may cause timeout, without
benefit.

Detect the bnx2i offload module at setup time and communicate it to
parse-iscsiroot.sh using a new parameter, "rd.iscsi.transport". It's currently
only effective for bnx2i. It might be useful for other transports as well,
but we haven't been able to test the other transports as thoroughly as bnx2i.

Signed-off-by: Martin Wilck <mwilck@suse.com>
man/dracut.cmdline.7.adoc
modules.d/95iscsi/module-setup.sh
modules.d/95iscsi/parse-iscsiroot.sh