ipvs: register hooks only with services
authorJulian Anastasov <ja@ssi.bg>
Sun, 21 Jun 2020 15:40:30 +0000 (18:40 +0300)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 30 Jun 2020 16:37:39 +0000 (18:37 +0200)
commit857ca89711de3dbcc674d58a6d7d297ee0bd34e1
tree35f960b740abc6ce65adc8f408aa7ef56ddf814a
parentd61d2e902aa0561e5f4b6348514fb35de544aa1f
ipvs: register hooks only with services

Keep the IPVS hooks registered in Netfilter only
while there are configured virtual services. This
saves CPU cycles while IPVS is loaded but not used.

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>
include/net/ip_vs.h
net/netfilter/ipvs/ip_vs_core.c
net/netfilter/ipvs/ip_vs_ctl.c