Browse Source

fcoe: wait for lldpad to be ready

master
Harald Hoyer 11 years ago
parent
commit
3aaf6ccc83
  1. 8
      modules.d/95fcoe/fcoe-up.sh
  2. 2
      modules.d/95fcoe/module-setup.sh

8
modules.d/95fcoe/fcoe-up.sh

@ -28,8 +28,14 @@ if [ "$dcb" = "dcb" ]; then @@ -28,8 +28,14 @@ if [ "$dcb" = "dcb" ]; then
# are to kill it and start a new lldpad to take over. Data is transfered
# between the 2 using a shm segment
lldpad -d
# stupid tools, need sleep
# wait for lldpad to be ready
i=0
while [ $i -lt 60 ]; do
lldptool -p && break
info "Waiting for lldpad to be ready"
sleep 1
i=$(($i+1))
done
dcbtool sc "$netif" dcb on
sleep 1
dcbtool sc "$netif" app:fcoe e:1 a:1 w:1

2
modules.d/95fcoe/module-setup.sh

@ -21,7 +21,7 @@ installkernel() { @@ -21,7 +21,7 @@ installkernel() {

# called by dracut
install() {
inst_multiple ip dcbtool fipvlan lldpad readlink
inst_multiple ip dcbtool fipvlan lldpad readlink lldptool

mkdir -m 0755 -p "$initdir/var/lib/lldpad"


Loading…
Cancel
Save