]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ipvs: no_cport and dropentry counters can be per-net
authorJulian Anastasov <ja@ssi.bg>
Tue, 24 Feb 2026 20:50:45 +0000 (21:50 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 26 Feb 2026 03:36:26 +0000 (19:36 -0800)
commit09b71fb459468b408f3fa3e2b75d20113374f057
tree71ae9756ce30813a68fc4371c51e870b924ad968
parentc59bd9e62e060bb5cd4d697b73bbe6f23a723345
ipvs: no_cport and dropentry counters can be per-net

Change the no_cport counters to be per-net and address family.
This should reduce the extra conn lookups done during present
NO_CPORT connections.

By changing from global to per-net dropentry counters, one net
will not affect the drop rate of another net.

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