Patchwork [Open-FCoE,07/14] fipvlan: Re-send VLAN discovery

login
register
mail settings
Submitter Hannes Reinecke
Date Nov. 19, 2013, 12:26 p.m.
Message ID <1384863974-27096-8-git-send-email-hare@suse.de>
Download mbox | patch
Permalink /patch/120/
State Accepted
Headers show

Comments

Hannes Reinecke - Nov. 19, 2013, 12:26 p.m.
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>
---
 fipvlan.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Patch

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;
 		}