Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e09baf1b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 75d530af 3ae57bec
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -933,6 +933,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_VAR(neigh->parms, RETRANS_TIME);
		}
	} else {
@@ -1175,6 +1176,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) ?