Merge branch android-common-3.10
[firefly-linux-kernel-4.4.55.git] / net / core / neighbour.c
index b49e8bafab173245779a7acb480a6bf7a120541f..cdd77161e99f298f3517c9a6e65e786a19f80536 100644 (file)
@@ -928,6 +928,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 {
@@ -1155,6 +1156,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) ?