neighbour: skip NTF_EXT_LEARNED entries during forced gc
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Wed, 13 Jun 2018 04:26:10 +0000 (21:26 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Jun 2018 16:37:33 +0000 (09:37 -0700)
commitf6a6f203d507aae3a06a8de79c6f0ecc4658b81c
tree5094702ec2e7b16defcc247ec6f4bfe877f4f364
parent7c099773b08634df9db0f5be40f0fcc06baa2e1b
neighbour: skip NTF_EXT_LEARNED entries during forced gc

Commit 9ce33e46531d ("neighbour: support for NTF_EXT_LEARNED flag")
added support for NTF_EXT_LEARNED for neighbour entries.
NTF_EXT_LEARNED entries are neigh entries managed by control
plane (eg: Ethernet VPN implementation in FRR routing suite).
Periodic gc already excludes these entries. This patch extends
it to forced gc which the earlier patch missed.

Fixes: 9ce33e46531d ("neighbour: support for NTF_EXT_LEARNED flag")
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/neighbour.c