]> git.baikalelectronics.ru Git - kernel.git/commit
neighbor: Fix state check in neigh_forced_gc
authorDavid Ahern <dsahern@gmail.com>
Wed, 12 Dec 2018 01:57:22 +0000 (18:57 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Dec 2018 23:44:47 +0000 (15:44 -0800)
commitf4dd955638ddd699825607bbc358a578d25551f8
tree36eec8034afa8e82b1c1c90617322768c7b7d0fe
parent6547d8e2146f228ce74852cfc7347c5c58cd7b45
neighbor: Fix state check in neigh_forced_gc

PERMANENT entries are not on the gc_list so the state check is now
redundant. Also, the move to not purge entries until after 5 seconds
should not apply to FAILED entries; those can be removed immediately
to make way for newer ones. This restores the previous logic prior to
the gc_list.

Fixes: af2ec2028230 ("neighbor: Improve garbage collection")
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/neighbour.c