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

Commit f6fe5069 authored by Mohammed Javid's avatar Mohammed Javid Committed by Gerrit - the friendly Code Review server
Browse files

net: core: Dont send ARP probes for NUD_PERMANENET



Whenever a new neighbour is added with the state
NUD_PERMANENT, the ARP probing is removed since
it is not needed.

Change-Id: Id92b24d1b99b8deff91a8e105f7310efc2f21b39
Acked-by: default avatarSneha Maganahalli <smaganah@qti.qualcomm.com>
Signed-off-by: default avatarAman Gupta <amangupt@codeaurora.org>
parent 7eee12e1
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1322,7 +1322,8 @@ struct neighbour *neigh_event_ns(struct neigh_table *tbl,
						 lladdr || !dev->addr_len);
	if (neigh) {
		if (neigh_probe_enable) {
			if (!(neigh->nud_state == NUD_REACHABLE)) {
			if (neigh->nud_state != NUD_REACHABLE &&
			    neigh->nud_state != NUD_PERMANENT) {
				neigh_update(neigh, lladdr, NUD_STALE,
				NEIGH_UPDATE_F_OVERRIDE, 0);
				write_lock(&neigh->lock);