neighbor: Remove externally learned entries from gc_list
authorDavid Ahern <dsahern@gmail.com>
Wed, 12 Dec 2018 01:57:25 +0000 (18:57 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Dec 2018 23:44:47 +0000 (15:44 -0800)
commite997f8a20a57cae16ed0c7a2bff6d3ab75f58123
tree22697a175d893241bb7c8c3133f4af98649c3257
parent526f1b587cf826d78c3e522428ce6b24a8da0d65
neighbor: Remove externally learned entries from gc_list

Externally learned entries are similar to PERMANENT entries in the
sense they are managed by userspace and can not be garbage collected.
As such remove them from the gc_list, remove the flags check from
neigh_forced_gc and skip threshold checks in neigh_alloc. As with
PERMANENT entries, this allows unlimited number of NTF_EXT_LEARNED
entries.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/neighbour.c