Skip to content

Commit

Permalink
selftests: add few test cases for tap driver
Browse files Browse the repository at this point in the history
Few test cases related to the fix for 924a9bc:
"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>
  • Loading branch information
Cezar Bulinaru authored and David S. Miller committed Aug 5, 2022
1 parent 4f61f13 commit 2e64fe4
Show file tree
Hide file tree
Showing 3 changed files with 437 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tools/testing/selftests/net/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ ioam6_parser
toeplitz
tun
cmsg_sender
unix_connect
unix_connect
tap
2 changes: 1 addition & 1 deletion tools/testing/selftests/net/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ TEST_GEN_FILES += ipsec
TEST_GEN_FILES += ioam6_parser
TEST_GEN_FILES += gro
TEST_GEN_PROGS = reuseport_bpf reuseport_bpf_cpu reuseport_bpf_numa
TEST_GEN_PROGS += reuseport_dualstack reuseaddr_conflict tls tun
TEST_GEN_PROGS += reuseport_dualstack reuseaddr_conflict tls tun tap
TEST_GEN_FILES += toeplitz
TEST_GEN_FILES += cmsg_sender
TEST_GEN_FILES += stress_reuseport_listen
Expand Down
Loading

0 comments on commit 2e64fe4

Please sign in to comment.