Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/3] selftests: net: fix receive metadata and failure reporting
@ 2026-11-25  6:41 Jingjing Xu
  2026-11-25  6:41 ` [PATCH net-next v2 1/3] selftests: net: report SO_RCV test failures to the runner Jingjing Xu
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Jingjing Xu @ 2026-11-25  6:41 UTC (permalink / raw)
  To: netdev
  Cc: linux-kselftest, kuba, edumazet, pabeni, horms, shuah, willemb,
	annaemesenyiri, idosch, hangbin.liu

Separate the failure-status correction from the zero-value tests, as
requested by Hangbin Liu. The first patch repairs script failure reporting,
the second enables reception independently of the expected metadata, and
the third adds the zero mark/priority cases to the existing test.

Changes in v2:
- Split the exit-constant correction into a standalone fix (Hangbin Liu).
- Put both fixes before the added regression cases.
- Retain Hangbin Liu's Reviewed-by only on the receive-enable fix.
- Wrap that setsockopt() call to stay within 80 columns; behavior unchanged.
- Rebase onto net-next 57f165ff2f30.

v1:
https://lore.kernel.org/netdev/20261122154912.1272447-1-xujingjing@cmss.chinamobile.com/
Split request:
https://patchwork.kernel.org/comment/27396929/
Core-fix review:
https://patchwork.kernel.org/comment/27396955/

Validation used the existing host kernel and real IPv4/IPv6 UDP sockets
in private mount/network namespaces. The original four cases pass before
and after the fixes. A user-space mismatched-metadata sender makes those
four cases fail: the original script exits 0; patch 1 exits 1. Extended zero
cases with the original listener fail 4/8 and exit 1. The complete series
passes 8/8 and exits 0. All helpers build with gcc -Wall -Werror -O2.
No kernel instrumentation or kernel fault injection was used. The negative
sender fixture deliberately changes only user-space metadata arguments.
No hardware test suite was run.

Jingjing Xu (3):
  selftests: net: report SO_RCV test failures to the runner
  selftests: net: enable receive metadata independently of its value
  selftests: net: cover zero receive mark and priority

 tools/testing/selftests/net/so_rcv_listener.c | 4 +++-
 tools/testing/selftests/net/test_so_rcv.sh    | 6 ++++--
 2 files changed, 7 insertions(+), 3 deletions(-)

-- 
2.53.0




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

end of thread, other threads:[~2026-11-25  7:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25  6:41 [PATCH net-next v2 0/3] selftests: net: fix receive metadata and failure reporting Jingjing Xu
2026-11-25  6:41 ` [PATCH net-next v2 1/3] selftests: net: report SO_RCV test failures to the runner Jingjing Xu
2026-11-25  7:18   ` Hangbin Liu
2026-11-25  6:41 ` [PATCH net-next v2 2/3] selftests: net: enable receive metadata independently of its value Jingjing Xu
2026-11-25  6:41 ` [PATCH net-next v2 3/3] selftests: net: cover zero receive mark and priority Jingjing Xu

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