Skip to content

Extend packet socket selftests

Joe Damato linux-kselftest lkml netdev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 3 patches 0 repliesNew

v2 from the cover letter

- 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.

Patches in v1 No applies recorded yet

None of the 3 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [net-next 0/3] Extend packet socket selftests

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

v2:
- 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  | 137 +++++++++++++++++++++--
 tools/testing/selftests/net/psock_snd.sh |  10 ++
 2 files changed, 139 insertions(+), 8 deletions(-)

base-commit: 8b0e64d6c9e7feec5ba5643b4fa8b7fd54464778

Signature · 1 line
2.52.0