aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/skb_helpers.c
diff options
context:
space:
mode:
authorMaciej Fijalkowski <[email protected]>2022-09-01 11:48:09 +0000
committerDaniel Borkmann <[email protected]>2022-09-02 13:37:45 +0000
commit1adef0643b7df1069a53f6f5b7bc66c8234db899 (patch)
treec7616473147c406e96fe64074c7c510a2e8a2e9a /tools/testing/selftests/bpf/prog_tests/skb_helpers.c
parentselftests/xsk: Query for native XDP support (diff)
downloadkernel-1adef0643b7df1069a53f6f5b7bc66c8234db899.tar.gz
kernel-1adef0643b7df1069a53f6f5b7bc66c8234db899.zip
selftests/xsk: Introduce default Rx pkt stream
In order to prepare xdpxceiver for physical device testing, let us introduce default Rx pkt stream. Reason for doing it is that physical device testing will use a UMEM with a doubled size where half of it will be used by Tx and other half by Rx. This means that pkt addresses will differ for Tx and Rx streams. Rx thread will initialize the xsk_umem_info::base_addr that is added here so that pkt_set(), when working on Rx UMEM will add this offset and second half of UMEM space will be used. Note that currently base_addr is 0 on both sides. Future commit will do the mentioned initialization. Previously, veth based testing worked on separate UMEMs, so single default stream was fine. Signed-off-by: Maciej Fijalkowski <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Magnus Karlsson <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/skb_helpers.c')
0 files changed, 0 insertions, 0 deletions