Netdev List
 help / color / mirror / Atom feed
* [PATCH net 0/2] net: preserve rps_default_mask on failed writes
@ 2026-10-28 14:52 Yingjie Wang
  2026-10-28 14:52 ` [PATCH net 1/2] " Yingjie Wang
  2026-10-28 14:52 ` [PATCH net 2/2] selftests: net: check failed rps_default_mask writes Yingjie Wang
  0 siblings, 2 replies; 5+ messages in thread
From: Yingjie Wang @ 2026-10-28 14:52 UTC (permalink / raw)
  To: netdev@vger.kernel.org
  Cc: Yingjie Wang, davem@davemloft.net, edumazet@kernel.org,
	kuba@kernel.org, pabeni@redhat.com, horms@kernel.org,
	shuah@kernel.org, linux-kselftest@vger.kernel.org,
	linux-kernel@vger.kernel.org

rps_default_mask_sysctl() parses and validates writes in the live
per-netns mask. Both the bitmap parser and housekeeping validation can
modify that mask before returning an error, so a failed write can change
the default applied to RX queues created later.

Parse and validate a temporary mask before publishing it, and add a
regression test for a partially parsed invalid value.

On the base kernel, the new test fails because the mask changes from 1
to 3. With the fix, all ten rps_default_mask selftests pass. Tests with
isolated CPUs also confirm that overflow and housekeeping failures leave
the mask unchanged, while valid writes continue to work.

Yingjie Wang (2):
  net: preserve rps_default_mask on failed writes
  selftests: net: check failed rps_default_mask writes

 net/core/sysctl_net_core.c                    | 23 +++++++++++--------
 .../testing/selftests/net/rps_default_mask.sh | 23 +++++++++++++++++++
 2 files changed, 36 insertions(+), 10 deletions(-)


base-commit: 94cea342e8915812b45f93c56e134041c7fdb4d7
-- 
2.43.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-10-29  3:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-28 14:52 [PATCH net 0/2] net: preserve rps_default_mask on failed writes Yingjie Wang
2026-10-28 14:52 ` [PATCH net 1/2] " Yingjie Wang
2026-10-28 16:54   ` Wang Zhan
2026-10-29  3:10   ` Wang Zhan
2026-10-28 14:52 ` [PATCH net 2/2] selftests: net: check failed rps_default_mask writes Yingjie Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox