[ATM]: [lec] reset retry counter when new arp issued
authorScott Talbert <scott.talbert@lmco.com>
Fri, 30 Sep 2005 00:31:30 +0000 (17:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Sep 2005 00:31:30 +0000 (17:31 -0700)
From: Scott Talbert <scott.talbert@lmco.com>
Signed-off-by: Chas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/atm/lec.c

index 47e1eae9746160666ee3131a847a61452b0fb857..ad840b9afba8a3a68e644a682f9bf6499e38d765 100644 (file)
@@ -2021,6 +2021,12 @@ lec_arp_resolve(struct lec_priv *priv, unsigned char *mac_to_find,
                         found = entry->vcc;
                        goto out;
                 }
+               /* If the LE_ARP cache entry is still pending, reset count to 0
+                * so another LE_ARP request can be made for this frame.
+                */
+               if (entry->status == ESI_ARP_PENDING) {
+                       entry->no_tries = 0;
+               }
                 /* Data direct VC not yet set up, check to see if the unknown
                    frame count is greater than the limit. If the limit has
                    not been reached, allow the caller to send packet to