]> git.ipfire.org Git - thirdparty/dracut.git/commit
fcoe: handle CNAs with DCB firmware support 287/head
authorXunlei Pang <xlpang@redhat.com>
Mon, 25 Sep 2017 03:18:06 +0000 (11:18 +0800)
committerXunlei Pang <xlpang@redhat.com>
Wed, 27 Sep 2017 02:36:44 +0000 (10:36 +0800)
commit795256bbb1c05158edd5f18221eb036c8911d44e
treefbc1a1b81563d96497193363a3fd553a0f036dc9
parent424c065cd99cc9c35a92a68d34c161beff5f5497
fcoe: handle CNAs with DCB firmware support

Some Combined Network Adapters(CNAs) implement DCB protocol
in firmware, it is recommended that do not run software-based
DCB or LLDP on CNAs that implement DCB, but we have to start
the lldpad service anyway(there might be other software DCB).

If the network interface provides hardware DCB/DCBX capabilities,
the field DCB_REQUIRED in "/etc/fcoe/cfg-xxx" is expected to
be set to "no".

We met an issue on "QLogic BCM57810" with DCB firmware support,
and found dracut still generated "fcoe=<mac>:dcb" which caused
kdump boot failure when using that fcoe dump target.

This patch parses /etc/fcoe/cfg-xxx to detect DCB_REQUIRED="no",
and force "nodcb" if it is the case.

Also improved some coding style in passing.

Signed-off-by: Xunlei Pang <xlpang@redhat.com>
modules.d/95fcoe/module-setup.sh