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

Joe Damato posted 3 patches 2 months, 1 week ago
tools/testing/selftests/net/psock_snd.c  | 137 +++++++++++++++++++++--
tools/testing/selftests/net/psock_snd.sh |  10 ++
2 files changed, 139 insertions(+), 8 deletions(-)
[net-next 0/3] Extend packet socket selftests
Posted by Joe Damato 2 months, 1 week ago
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
-- 
2.52.0