ipvs: Fix estimator kthreads preferred affinity
authorFrederic Weisbecker <frederic@kernel.org>
Tue, 29 Jul 2025 12:26:11 +0000 (14:26 +0200)
committerFlorian Westphal <fw@strlen.de>
Wed, 13 Aug 2025 06:34:33 +0000 (08:34 +0200)
commitc0a23bbc98e93704a1f4fb5e7e7bb2d7c0fb6eb3
tree54de7c4173419230fae5688244ad88df156cecd8
parent30c1d25b9870d551be42535067d5481668b5e6f3
ipvs: Fix estimator kthreads preferred affinity

The estimator kthreads' affinity are defined by sysctl overwritten
preferences and applied through a plain call to the scheduler's affinity
API.

However since the introduction of managed kthreads preferred affinity,
such a practice shortcuts the kthreads core code which eventually
overwrites the target to the default unbound affinity.

Fix this with using the appropriate kthread's API.

Fixes: d1a89197589c ("kthread: Default affine kthread to its preferred NUMA node")
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Acked-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Florian Westphal <fw@strlen.de>
include/net/ip_vs.h
kernel/kthread.c
net/netfilter/ipvs/ip_vs_est.c