Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next v3 0/3] Extend packet socket selftests
@ 2026-07-20 12:27 Joe Damato
  2026-07-20 12:27 ` [PATCH net-next v3 1/3] selftests/net: Test PACKET_STATISTICS Joe Damato
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Joe Damato @ 2026-07-20 12:27 UTC (permalink / raw)
  To: netdev
  Cc: andrew+netdev, davem, edumazet, kuba, pabeni, horms, willemb,
	linux-kselftest, shuah, Joe Damato

Greetings:

I was looking around the packet socket code and noticed there were a few
features that could be tested by extending the existing packet socket
tests.

I extended the test to test stats, drops, and auxdata and re-ran the tests.
The existing and new tests passed.

Thanks,
Joe

v3:
  - Patch 3 updated to prevent combining test_auxdata and test_drops.
  - Patch 3 updated to include an aligned(8) for the cmsg to ensure (1) buffer
    alignment for cmsg struct fields and (2) aligned payload access.

v2: https://lore.kernel.org/netdev/20260403233240.178948-1-joe@dama.to/
  - patch 2: remove argument from do_tx and use global instead
  - patch 3: add argument to do_rx to specify if the socket is a packet
    socket. factored out the aux data check into its own function for
    readability.


Joe Damato (3):
  selftests/net: Test PACKET_STATISTICS
  selftests/net: Test PACKET_STATISTICS drops
  selftests/net: Test PACKET_AUXDATA

 tools/testing/selftests/net/psock_snd.c  | 140 +++++++++++++++++++++--
 tools/testing/selftests/net/psock_snd.sh |  10 ++
 2 files changed, 142 insertions(+), 8 deletions(-)


base-commit: 298bb2b8903323f6ef2eab4819a2e477765f0ff1
-- 
2.53.0-Meta


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

end of thread, other threads:[~2026-07-20 12:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-20 12:27 [PATCH net-next v3 0/3] Extend packet socket selftests Joe Damato
2026-07-20 12:27 ` [PATCH net-next v3 1/3] selftests/net: Test PACKET_STATISTICS Joe Damato
2026-07-20 12:27 ` [PATCH net-next v3 2/3] selftests/net: Test PACKET_STATISTICS drops Joe Damato
2026-07-20 12:27 ` [PATCH net-next v3 3/3] selftests/net: Test PACKET_AUXDATA Joe Damato

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