OSDN Git Service

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)
commitedae34a3ed9293b5077dddf9e51a3d86c95dc76a
tree21edb015e2e2b4e4bf2a8c255d9354fcc9ae9ef2
parentcf3ab8d4a797960b4be20565abb3bcd227b18a68
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]