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 <[email protected]>
---
 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

_______________________________________________
fcoe-devel mailing list
[email protected]
http://lists.open-fcoe.org/mailman/listinfo/fcoe-devel

Reply via email to