ipvs: avoid expiring many connections from timer
authorJulian Anastasov <ja@ssi.bg>
Sat, 20 Jun 2020 10:03:55 +0000 (13:03 +0300)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 1 Jul 2020 08:18:20 +0000 (10:18 +0200)
commitf9200a52eedfe96ae8d9cbf68a363f5409a46117
tree53cbbc84f7c53b6246585ec1a8a3548316f82b1f
parent857ca89711de3dbcc674d58a6d7d297ee0bd34e1
ipvs: avoid expiring many connections from timer

Add new functions ip_vs_conn_del() and ip_vs_conn_del_put()
to release many IPVS connections in process context.
They are suitable for connections found in table
when we do not want to overload the timers.

Currently, the change is useful for the dropentry delayed
work but it will be used also in following patch
when flushing connections to failed destinations.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
Reviewed-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/ipvs/ip_vs_conn.c
net/netfilter/ipvs/ip_vs_ctl.c