]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita4596c14e98ad7125f85d767e84e0585df796c4f
tree2c5e5b9ec2da70d55aea4438b9c036b785b507a3
parent942369748559b2ccaaf17aa5ddfd148bb8d34f6d
selftests: add few test cases for tap driver

Few test cases related to the fix for d418c76abbe7:
"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]