selftests: net: add UDP GRO forwarding self-tests
authorPaolo Abeni <pabeni@redhat.com>
Tue, 30 Mar 2021 10:28:56 +0000 (12:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Mar 2021 00:06:50 +0000 (17:06 -0700)
commita062260a9d5fce22977744ed6dab64b7b1508ab3
tree77d847de135f17ddea9d6e36089f33d8e16cfaf4
parentb03ef676ba6dc53c728e936a1709d4bf35362184
selftests: net: add UDP GRO forwarding self-tests

Create a bunch of virtual topologies and verify that
NETIF_F_GRO_FRAGLIST or NETIF_F_GRO_UDP_FWD-enabled
devices aggregate the ingress packets as expected.
Additionally check that the aggregate packets are
segmented correctly when landing on a socket

Also test SKB_GSO_FRAGLIST and SKB_GSO_UDP_L4 aggregation
on top of UDP tunnel (vxlan)

v1 -> v2:
 - hopefully clarify the commit message
 - moved the overlay network ipv6 range into the 'documentation'
   reserved range (Willem)

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/Makefile
tools/testing/selftests/net/udpgro_fwd.sh [new file with mode: 0755]