From: Scott Talbert Date: Fri, 30 Sep 2005 00:31:30 +0000 (-0700) Subject: [ATM]: [lec] reset retry counter when new arp issued X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=75b895c15b3ea2a3cd5c8e8f3c62e4598ef4d2ba;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [ATM]: [lec] reset retry counter when new arp issued From: Scott Talbert Signed-off-by: Chas Williams Signed-off-by: David S. Miller --- diff --git a/net/atm/lec.c b/net/atm/lec.c index 47e1eae97461..ad840b9afba8 100644 --- a/net/atm/lec.c +++ b/net/atm/lec.c @@ -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