selftests: add functionals test for UDP GRO
authorPaolo Abeni <pabeni@redhat.com>
Wed, 7 Nov 2018 11:38:37 +0000 (12:38 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Nov 2018 00:23:05 +0000 (16:23 -0800)
commit3327a9c46352f111697d93d6134e7bf37c6bffca
tree49e779a4dbf7f0641b0a983253bbc3aa342782a7
parente87f53b4fab72f95952c17f672088e082e8e79ab
selftests: add functionals test for UDP GRO

Extends the existing udp programs to allow checking for proper
GRO aggregation/GSO size, and run the tests via a shell script, using
a veth pair with XDP program attached to trigger the GRO code path.

rfc v3 -> v1:
 - use ip route to attach the xdp helper to the veth

rfc v2 -> rfc v3:
 - add missing test program options documentation
 - fix sporatic test failures (receiver faster than sender)

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/Makefile
tools/testing/selftests/net/udpgro.sh [new file with mode: 0755]
tools/testing/selftests/net/udpgro_bench.sh
tools/testing/selftests/net/udpgso_bench.sh
tools/testing/selftests/net/udpgso_bench_rx.c
tools/testing/selftests/net/udpgso_bench_tx.c