linux/tools/testing/selftests/net
Willem de Bruijn 07b65c5b31 test: add msg_zerocopy test
Introduce regression test for msg_zerocopy feature. Send traffic from
one process to another with and without zerocopy.

Evaluate tcp, udp, raw and packet sockets, including variants
- udp: corking and corking with mixed copy/zerocopy calls
- raw: with and without hdrincl
- packet: at both raw and dgram level

Test on both ipv4 and ipv6, optionally with ethtool changes to
disable scatter-gather, tx checksum or tso offload. All of these
can affect zerocopy behavior.

The regression test can be run on a single machine if over a veth
pair. Then skb_orphan_frags_rx must be modified to be identical to
skb_orphan_frags to allow forwarding zerocopy locally.

The msg_zerocopy.sh script will setup the veth pair in network
namespaces and run all tests.

Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-08-03 21:37:30 -07:00
..
.gitignore test: add msg_zerocopy test 2017-08-03 21:37:30 -07:00
config selftests: create test-specific kconfig fragments 2016-02-25 09:47:52 -07:00
Makefile test: add msg_zerocopy test 2017-08-03 21:37:30 -07:00
msg_zerocopy.c test: add msg_zerocopy test 2017-08-03 21:37:30 -07:00
msg_zerocopy.sh test: add msg_zerocopy test 2017-08-03 21:37:30 -07:00
netdevice.sh selftests: add a generic testsuite for ethernet device 2017-04-05 08:30:11 -07:00
psock_fanout.c selftests/net: Fix broken test case in psock_fanout 2017-04-25 11:56:17 -04:00
psock_lib.h selftests/net: Fixes psock_fanout CBPF test case 2017-04-20 15:39:19 -04:00
psock_tpacket.c tools: psock_tpacket: block Rx until socket filter has been added and socket has been bound to loopback. 2017-01-05 15:03:41 -05:00
reuseport_bpf_cpu.c soreuseport: BPF selection functional test for TCP 2016-02-11 03:54:15 -05:00
reuseport_bpf_numa.c reuseport, bpf: add test case for bpf_get_numa_node_id 2016-10-22 17:05:52 -04:00
reuseport_bpf.c soreuseport: Fix reuseport_bpf testcase on 32bit architectures 2016-06-06 15:20:16 -07:00
reuseport_dualstack.c soreuseport: test mixed v4/v6 sockets 2016-04-14 21:14:04 -04:00
run_afpackettests selftests: Introduce minimal shared logic for running tests 2015-03-13 15:13:40 -06:00
run_netsocktests selftests: do not require bash to run netsocktests testcase 2017-01-05 13:19:53 -07:00
socket.c
test_bpf.sh selftests/net: move test out of Makefile into a shell script 2014-11-05 08:12:40 -07:00