]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit25d7c09907f405c8fad5488b2b6dfe4f43484f11
tree22697a175d893241bb7c8c3133f4af98649c3257
parent887db47a41e5d246ad5fc8cd4643f240966cdf43
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