]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
selftests: add a selftest for big tcp
authorXin Long <lucien.xin@gmail.com>
Tue, 7 Mar 2023 21:31:32 +0000 (16:31 -0500)
committerFlorian Westphal <fw@strlen.de>
Wed, 8 Mar 2023 13:25:42 +0000 (14:25 +0100)
commit6bb382bcf742de5c17209848325653059c995a04
tree4b8ce1fc6c4db9c5af78315227b15ca4e9afa0d1
parenteaafdaa3e92234b877b645431957549a1f87e2bf
selftests: add a selftest for big tcp

This test runs on the client-router-server topo, and monitors the traffic
on the RX devices of router and server while sending BIG TCP packets with
netperf from client to server. Meanwhile, it changes 'tso' on the TX devs
and 'gro' on the RX devs. Then it checks if any BIG TCP packets appears
on the RX devs with 'ip/ip6tables -m length ! --length 0:65535' for each
case.

Note that we also add tc action ct in link1 ingress to cover the ipv6
jumbo packets process in nf_ct_skb_network_trim() of nf_conntrack_ovs.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Reviewed-by: Aaron Conole <aconole@redhat.com>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
tools/testing/selftests/net/Makefile
tools/testing/selftests/net/big_tcp.sh [new file with mode: 0755]