]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7f93582df89395095a01de3471340878bb5c3550
tree5094702ec2e7b16defcc247ec6f4bfe877f4f364
parent89047315f308fdae56048c117151ce55990fc71a
neighbour: skip NTF_EXT_LEARNED entries during forced gc

Commit 4bfbbca8f224 ("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: 4bfbbca8f224 ("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