]>
git.ipfire.org Git - thirdparty/dracut.git/blob - modules.d/95fcoe/parse-fcoe.sh
4 # fcoe=<networkdevice>:<dcb|nodcb>:<fabric|vn2vn>
5 # fcoe=<macaddress>:<dcb|nodcb>:<fabric|vn2vn>
7 # Note currently only nodcb is supported, the dcb option is reserved for
10 # Note letters in the macaddress must be lowercase!
13 # fcoe=eth0:nodcb:vn2vn
14 # fcoe=4a:3f:4c:04:f8:d7:nodcb:fabric
16 if ! getargbool
0 rd.nofcoe
; then
17 info
"rd.nofcoe=0: skipping fcoe"
21 [ -z "$fcoe" ] && fcoe
=$
(getarg fcoe
=)
23 # If it's not set we don't continue
24 [ -z "$fcoe" ] && return
26 [ -e /sys
/bus
/fcoe
/ctlr_create
] || modprobe
-b -a fcoe || die
"FCoE requested but kernel/initrd does not support FCoE"
28 initqueue
--onetime modprobe
-b -q bnx2fc
50 fcoe_mac
=$1:$2:$3:$4:$5:$6
56 fcoe_mac
=$1:$2:$3:$4:$5:$6
62 warn
"Invalid arguments for fcoe=$fcoe"
70 if [ "$fcoe_interface" = "edd" ]; then
71 if [ "$fcoe_dcb" != "nodcb" -a "$fcoe_dcb" != "dcb" ] ; then
72 warn
"Invalid FCoE DCB option: $fcoe_dcb"
74 /sbin
/initqueue
--settled --unique /sbin
/fcoe-edd
$fcoe_dcb
76 for fcoe
in $
(getargs fcoe
=); do
80 if [ "$fcoe_dcb" != "nodcb" -a "$fcoe_dcb" != "dcb" ] ; then
81 warn
"Invalid FCoE DCB option: $fcoe_dcb"
83 . $
(command -v fcoe-genrules.sh
)