Blame SOURCES/0514-fcoe-Allow-more-time-for-the-bnx2x-link-negotiation-.patch

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