diff options
author | YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org> | 2013-01-22 05:20:05 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-22 14:25:28 -0500 |
commit | 2724680bceee94eac391552863771af105a7355c (patch) | |
tree | dee52affa20715488fd361c370a4fc70ce05591c /net/core/flow.c | |
parent | 360eb5da665566a110993c58ed2a63e98f6720bf (diff) | |
download | blackbird-op-linux-2724680bceee94eac391552863771af105a7355c.tar.gz blackbird-op-linux-2724680bceee94eac391552863771af105a7355c.zip |
neigh: Keep neighbour cache entries if number of them is small enough.
Since we have removed NCE (Neighbour Cache Entry) reference from
routing entries, the only refcnt holders of an NCE are its timer
(if running) and its owner table, in usual cases. As a result,
neigh_periodic_work() purges NCEs over and over again even for
gateways.
It does not make sense to purge entries, if number of them is
very small, so keep them. The minimum number of entries to keep
is specified by gc_thresh1.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/flow.c')
0 files changed, 0 insertions, 0 deletions