]> git.baikalelectronics.ru Git - kernel.git/commit
selftests net: add UDP GRO fraglist + bpf self-tests
authorLina Wang <lina.wang@mediatek.com>
Thu, 5 May 2022 05:48:50 +0000 (13:48 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 May 2022 09:48:49 +0000 (10:48 +0100)
commit68311159154a28083417ae72823cab638b73b0f2
tree21edb015e2e2b4e4bf2a8c255d9354fcc9ae9ef2
parentfc22d41cb14021b51501faa21e64495e7f6c9374
selftests net: add UDP GRO fraglist + bpf self-tests

When NET_F_F_GRO_FRAGLIST is enabled and bpf_skb_change_proto is used,
check if udp packets and tcp packets are successfully delivered to user
space. If wrong udp packets are delivered, udpgso_bench_rx will exit
with "Initial byte out of range"

Signed-off-by: Maciej enczykowski <maze@google.com>
Signed-off-by: Lina Wang <lina.wang@mediatek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/Makefile
tools/testing/selftests/net/bpf/Makefile [new file with mode: 0644]
tools/testing/selftests/net/bpf/nat6to4.c [new file with mode: 0644]
tools/testing/selftests/net/udpgro_frglist.sh [new file with mode: 0755]