selftests: add few test cases for tap driver
authorCezar Bulinaru <cbulinaru@gmail.com>
Wed, 3 Aug 2022 06:28:16 +0000 (02:28 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Aug 2022 07:59:15 +0000 (08:59 +0100)
commit2e64fe4624d19bc71212aae434c54874e5c49c5a
tree2c5e5b9ec2da70d55aea4438b9c036b785b507a3
parent4f61f133f354853bc394ec7d6028adb9b02dd701
selftests: add few test cases for tap driver

Few test cases related to the fix for 924a9bc362a5:
"net: check if protocol extracted by virtio_net_hdr_set_proto is correct"

Need test for the case when a non-standard packet (GSO without NEEDS_CSUM)
sent to the tap device causes a BUG check in the tap driver.

Signed-off-by: Cezar Bulinaru <cbulinaru@gmail.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/.gitignore
tools/testing/selftests/net/Makefile
tools/testing/selftests/net/tap.c [new file with mode: 0644]