Merge "neigh: Better handling of transition to NUD_PROBE state"

This commit is contained in:
Linux Build Service Account 2015-09-17 18:41:00 -07:00 committed by Gerrit - the friendly Code Review server
commit 8638eeae86
1 changed files with 3 additions and 0 deletions

View File

@ -935,6 +935,7 @@ static void neigh_timer_handler(unsigned long arg)
neigh->nud_state = NUD_PROBE;
neigh->updated = jiffies;
atomic_set(&neigh->probes, 0);
notify = 1;
next = now + neigh->parms->retrans_time;
}
} else {
@ -1162,6 +1163,8 @@ int neigh_update(struct neighbour *neigh, const u8 *lladdr, u8 new,
if (new != old) {
neigh_del_timer(neigh);
if (new & NUD_PROBE)
atomic_set(&neigh->probes, 0);
if (new & NUD_IN_TIMER)
neigh_add_timer(neigh, (jiffies +
((new & NUD_REACHABLE) ?