On (08/16/17 17:02), Mahesh Bandewar wrote: > > From: Mahesh Bandewar <mahe...@google.com> > > If the ARP processing creates a neigh entry, it's immediately marked > as STALE without timer and stays that way in that state as long as > host do not send traffic to that neighbour.
Perhaps I dont understand the specific packet exchange case that your patch is trying to fix, but if the neighbor entry is created as a result of an incoming packet (but we have not yet sent anything to this neighbor) then it should be marked STALE? IOW, STALE means "Ingress path claims this adjacency, but egress path has not been verified". Is the problem that the neigh never goes into PROBE? > + if (neigh) { > + if (neigh->nud_state & NUD_VALID) > + neigh_update(neigh, lladdr, NUD_STALE, > + NEIGH_UPDATE_F_OVERRIDE, 0); > + else > + neigh_event_send(neigh, NULL); > + } NUD_VALID is already a mask of (NUD_PERMANENT|NUD_NOARP|NUD_REACHABLE|NUD_PROBE|NUD_STALE|NUD_DELAY) are you sure you want to force the transition of probe/delay -> stale here? Maybe it woudl help to describe the exact wire packet exchange that is broken today, but fixed by your patch. --Sowmini