File 0010-fipvlan-Re-send-VLAN-discovery.patch of Package fcoe-utils

From 3ded1660f3e2eb79e4dd8155996b0802b6ee664b Mon Sep 17 00:00:00 2001
From: Hannes Reinecke <hare@suse.de>
Date: Tue, 19 Nov 2013 20:26:07 +0000
Subject: fipvlan: Re-send VLAN discovery

Some switches might decide to discard the VLAN discovery request,
so we should rather re-send it whenever we need to retry.
At worst we will be receiving several responses, but they'll be
discarded.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Robert Love <robert.w.love@intel.com>
---
 fipvlan.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/fipvlan.c b/fipvlan.c
index e7a0016..9ef4025 100644
--- a/fipvlan.c
+++ b/fipvlan.c
@@ -865,7 +865,9 @@ retry:
 		}
 		/* if we did not receive a response, retry */
 		if (iff->req_sent && !iff->resp_recv) {
-			FIP_LOG_DBG("VLAN discovery RETRY [%d]", retry_count);
+			FIP_LOG_DBG("if %d: VLAN discovery RETRY [%d]",
+				    iff->ifindex, retry_count);
+			iff->req_sent = false;
 			retry_iff++;
 			continue;
 		}
-- 
1.8.1.4
openSUSE Build Service is sponsored by