Skip to content

Commit d2fb4fb

Browse files
roopa-prabhudavem330
authored andcommitted
Revert "neighbour: force neigh_invalidate when NUD_FAILED update is from admin"
This reverts commit 8e32628. This patch results in unnecessary netlink notification when one tries to delete a neigh entry already in NUD_FAILED state. Found this with a buggy app that tries to delete a NUD_FAILED entry repeatedly. While the notification issue can be fixed with more checks, adding more complexity here seems unnecessary. Also, recent tests with other changes in the neighbour code have shown that the INCOMPLETE and PROBE checks are good enough for the original issue. Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 4ba4c56 commit d2fb4fb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

net/core/neighbour.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,8 +1148,7 @@ int neigh_update(struct neighbour *neigh, const u8 *lladdr, u8 new,
11481148
neigh->nud_state = new;
11491149
err = 0;
11501150
notify = old & NUD_VALID;
1151-
if (((old & (NUD_INCOMPLETE | NUD_PROBE)) ||
1152-
(flags & NEIGH_UPDATE_F_ADMIN)) &&
1151+
if ((old & (NUD_INCOMPLETE | NUD_PROBE)) &&
11531152
(new & NUD_FAILED)) {
11541153
neigh_invalidate(neigh);
11551154
notify = 1;

0 commit comments

Comments
 (0)