1755ca
From 3d1c9a76e7f0147feb65bd627583205d3a719ed0 Mon Sep 17 00:00:00 2001
1755ca
From: Chad Dupuis <chad.dupuis@cavium.com>
1755ca
Date: Wed, 12 Oct 2016 11:32:47 -0400
1755ca
Subject: [PATCH] fcoe: Allow more time for the bnx2x link negotiation before
1755ca
 brining up fcoe interfaces.
1755ca
1755ca
bnx2x can take no longer than 3 seconds to initialize the link in some setups
1755ca
which can cause fipvlan to fail and thus the fcoe interface(s) won't be
1755ca
created.
1755ca
1755ca
Add another 10 seconds to give the link enough time to initialize.
1755ca
1755ca
Signed-off-by: Chad Dupuis <chad.dupuis@cavium.com>
1755ca
1755ca
Cherry-picked from: 3966a1e1ee0e3d27197258f446f54b683c415208
1755ca
Resolves: #1378910
1755ca
---
1755ca
 modules.d/95fcoe/fcoe-up.sh | 4 ++--
1755ca
 1 file changed, 2 insertions(+), 2 deletions(-)
1755ca
1755ca
diff --git a/modules.d/95fcoe/fcoe-up.sh b/modules.d/95fcoe/fcoe-up.sh
1755ca
index cdff6ef1..a1f04747 100755
1755ca
--- a/modules.d/95fcoe/fcoe-up.sh
1755ca
+++ b/modules.d/95fcoe/fcoe-up.sh
1755ca
@@ -87,8 +87,8 @@ elif [ "$netdriver" = "bnx2x" ]; then
1755ca
     # If driver is bnx2x, do not use /sys/module/fcoe/parameters/create but fipvlan
1755ca
     modprobe 8021q
1755ca
     udevadm settle --timeout=30
1755ca
-    # Sleep for 3 s to allow dcb negotiation
1755ca
-    sleep 3
1755ca
+    # Sleep for 13 s to allow dcb negotiation
1755ca
+    sleep 13
1755ca
     fipvlan "$netif" -c -s
1755ca
 else
1755ca
     vlan="no"