cxgb3: Handle ARP completions that mark neighbors stale.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git-commits-head@...>
Date: Friday, February 15, 2008 - 5:59 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=4eb61e...
Commit:     4eb61e0231be536d8116457b67b3e447bbd510dc
Parent:     6585b4a71f523485ecf33e7f4569be4095d63699
Author:     Steve Wise <swise@opengridcomputing.com>
AuthorDate: Wed Feb 6 12:05:19 2008 -0600
Committer:  Jeff Garzik <jeff@garzik.org>
CommitDate: Mon Feb 11 11:09:17 2008 -0500

    cxgb3: Handle ARP completions that mark neighbors stale.
    
    When ARP completes due to a request rather than a reply the neighbor is
    marked NUD_STALE instead of reachable (see arp_process()).  The handler
    for the resulting netevent needs to check also for NUD_STALE.
    
    Failure to use the arp entry can cause RDMA connection failures.
    
    Signed-off-by: Steve Wise <swise@opengridcomputing.com>
    Acked-by: Divy Le Ray <divy@chelsio.com>
    Signed-off-by: Jeff Garzik <jeff@garzik.org>
---
 drivers/net/cxgb3/l2t.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/cxgb3/l2t.c b/drivers/net/cxgb3/l2t.c
index 17ed4c3..865faee 100644
--- a/drivers/net/cxgb3/l2t.c
+++ b/drivers/net/cxgb3/l2t.c
@@ -404,7 +404,7 @@ found:
 			if (neigh->nud_state & NUD_FAILED) {
 				arpq = e->arpq_head;
 				e->arpq_head = e->arpq_tail = NULL;
-			} else if (neigh_is_connected(neigh))
+			} else if (neigh->nud_state & (NUD_CONNECTED|NUD_STALE))
 				setup_l2e_send_pending(dev, NULL, e);
 		} else {
 			e->state = neigh_is_connected(neigh) ?
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
cxgb3: Handle ARP completions that mark neighbors stale., Linux Kernel Mailing List..., (Fri Feb 15, 5:59 pm)