dracut/modules.d/95fcoe
Xunlei Pang 795256bbb1 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>
2017-09-27 10:36:44 +08:00
..
cleanup-fcoe.sh fcoe/cleanup-fcoe.sh: don't copy shm files to state 2016-06-27 12:03:55 +02:00
fcoe-edd.sh Clean up some bashisms from /bin/sh scripts 2016-03-28 11:52:14 +03:00
fcoe-genrules.sh remove all vim and emacs code format comments 2014-08-29 13:38:47 +02:00
fcoe-up.sh fcoe: Allow more time for the bnx2x link negotiation before brining up fcoe interfaces. 2016-10-12 19:02:39 +02:00
lldpad.sh fcoe/lldpad.sh: add executable flags 2015-03-24 16:03:47 +01:00
module-setup.sh fcoe: handle CNAs with DCB firmware support 2017-09-27 10:36:44 +08:00
parse-fcoe.sh fcoe: start with fcoemon instead of fipvlan 2015-11-11 15:33:13 +01:00