]> git.ipfire.org Git - thirdparty/linux.git/commit
ipvs: use more counters to avoid service lookups
authorJulian Anastasov <ja@ssi.bg>
Tue, 24 Feb 2026 20:50:44 +0000 (21:50 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 26 Feb 2026 03:36:26 +0000 (19:36 -0800)
commitc59bd9e62e060bb5cd4d697b73bbe6f23a723345
tree0b7ccdc91725887cf3ce8e201b74e9beaea156fe
parent40fb72209fd83edaf3632dba644b1fcf81143cfc
ipvs: use more counters to avoid service lookups

When new connection is created we can lookup for services multiple
times to support fallback options. We already have some counters
to skip specific lookups because it costs CPU cycles for hash
calculation, etc.

Add more counters for fwmark/non-fwmark services (fwm_services and
nonfwm_services) and make all counters per address family.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Florian Westphal <fw@strlen.de>
Link: https://patch.msgid.link/20260224205048.4718-6-fw@strlen.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/ip_vs.h
net/netfilter/ipvs/ip_vs_core.c
net/netfilter/ipvs/ip_vs_ctl.c