]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fcoe: Allow more time for the bnx2x link negotiation before brining up fcoe interfaces. 165/head
authorChad Dupuis <chad.dupuis@cavium.com>
Wed, 12 Oct 2016 15:32:47 +0000 (11:32 -0400)
committerHarald Hoyer <harald@redhat.com>
Wed, 12 Oct 2016 17:02:39 +0000 (19:02 +0200)
bnx2x can take no longer than 3 seconds to initialize the link in some setups
which can cause fipvlan to fail and thus the fcoe interface(s) won't be
created.

Add another 10 seconds to give the link enough time to initialize.

Signed-off-by: Chad Dupuis <chad.dupuis@cavium.com>
modules.d/95fcoe/fcoe-up.sh

index fb3b4c4abb40b4055e8605336e889e7a5fd0c010..ddc87b1c668a4515ef677a47f8877ba4ff036b03 100755 (executable)
@@ -84,8 +84,8 @@ elif [ "$netdriver" = "bnx2x" ]; then
     # If driver is bnx2x, do not use /sys/module/fcoe/parameters/create but fipvlan
     modprobe 8021q
     udevadm settle --timeout=30
-    # Sleep for 3 s to allow dcb negotiation
-    sleep 3
+    # Sleep for 13 s to allow dcb negotiation
+    sleep 13
     fipvlan "$netif" -c -s
 else
     vlan="no"