summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/.gitignore
diff options
context:
space:
mode:
authorWillem de Bruijn <willemb@google.com>2018-05-31 18:14:40 +0200
committerDavid S. Miller <davem@davemloft.net>2018-06-04 15:50:01 +0200
commit75f0139fd6d9b1de5dc8167e4ff23cfd83bbe1d5 (patch)
treee7c6968e98ea682ea33c671d1a2e470a24fb5609 /tools/testing/selftests/net/.gitignore
parentselftests/net: udpgso: test small gso_size boundary conditions (diff)
downloadlinux-75f0139fd6d9b1de5dc8167e4ff23cfd83bbe1d5.tar.xz
linux-75f0139fd6d9b1de5dc8167e4ff23cfd83bbe1d5.zip
selftests/net: add packet socket packet_snd test
Add regression tests for PF_PACKET transmission using packet_snd. The TPACKET ring interface has tests for transmission and reception. This is an initial stab at the same for the send call based interface. Packets are sent over loopback, then read twice. The entire packet is read from another packet socket and compared. The packet is also verified to arrive at a UDP socket for protocol conformance. The test sends a packet over loopback, testing the following options (not the full cross-product): - SOCK_DGRAM - SOCK_RAW - vlan tag - qdisc bypass - bind() and sendto() - virtio_net_hdr - csum offload (NOT actual csum feature, ignored on loopback) - gso Besides these basic functionality tests, the test runs from a set of bounds checks, positive and negative. Running over loopback, which has dev->min_header_len, it cannot generate variable length hhlen. Signed-off-by: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/net/.gitignore')
-rw-r--r--tools/testing/selftests/net/.gitignore1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/.gitignore b/tools/testing/selftests/net/.gitignore
index f0e6c35a93ae..128e548aa377 100644
--- a/tools/testing/selftests/net/.gitignore
+++ b/tools/testing/selftests/net/.gitignore
@@ -1,6 +1,7 @@
msg_zerocopy
socket
psock_fanout
+psock_snd
psock_tpacket
reuseport_bpf
reuseport_bpf_cpu