fcoe: workaround fcoe timing issues

master
Harald Hoyer 2014-03-31 16:21:49 +02:00
parent 37502d2733
commit 3c530fc528
2 changed files with 21 additions and 4 deletions

View File

@ -13,4 +13,4 @@
else
printf 'ACTION=="add", SUBSYSTEM=="net", NAME=="%s", RUN+="/sbin/initqueue --onetime --unique --name fcoe-up-$env{INTERFACE} /sbin/fcoe-up $env{INTERFACE} %s"\n' "$fcoe_interface" "$fcoe_dcb"
fi
} > /etc/udev/rules.d/92-fcoe.rules
} >> /etc/udev/rules.d/92-fcoe.rules

View File

@ -36,10 +36,27 @@ if [ "$dcb" = "dcb" ]; then
sleep 1
i=$(($i+1))
done
dcbtool sc "$netif" dcb on
sleep 1
dcbtool sc "$netif" app:fcoe e:1 a:1 w:1

# on some systems lldpad needs some time
# sleep until we find a better solution
sleep 30

while [ $i -lt 60 ]; do
dcbtool sc "$netif" dcb on && break
info "Retrying to turn dcb on"
sleep 1
i=$(($i+1))
done

while [ $i -lt 60 ]; do
dcbtool sc "$netif" app:fcoe e:1 a:1 w:1 && break
info "Retrying to turn fcoe on"
sleep 1
i=$(($i+1))
done

sleep 1

fipvlan "$netif" -c -s
elif [ "$netdriver" = "bnx2x" ]; then
# If driver is bnx2x, do not use /sys/module/fcoe/parameters/create but fipvlan