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

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

Merge "net: core: Fix to update the neigh entry correctly"

parents e6d4b3da 9bea9559
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -1294,17 +1294,14 @@ struct neighbour *neigh_event_ns(struct neigh_table *tbl,
	struct neighbour *neigh = __neigh_lookup(tbl, saddr, dev,
						 lladdr || !dev->addr_len);
	if (neigh) {
		if (neigh_probe_enable) {
			if (!(neigh->nud_state == NUD_REACHABLE)) {
		neigh_update(neigh, lladdr, NUD_STALE,
			     NEIGH_UPDATE_F_OVERRIDE);
		if (neigh_probe_enable) {
			if (!(neigh->nud_state == NUD_REACHABLE)) {
				write_lock(&neigh->lock);
				neigh_probe(neigh);
				neigh_update_notify(neigh);
			}
		} else {
			neigh_update(neigh, lladdr, NUD_STALE,
				     NEIGH_UPDATE_F_OVERRIDE);
		}
	}
	return neigh;