aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/resolve_btfids.c
diff options
context:
space:
mode:
authorMaciej Fijalkowski <maciej.fijalkowski@intel.com>2022-09-01 13:48:09 +0200
committerDaniel Borkmann <daniel@iogearbox.net>2022-09-02 15:37:45 +0200
commit1adef0643b7df1069a53f6f5b7bc66c8234db899 (patch)
treec7616473147c406e96fe64074c7c510a2e8a2e9a /tools/testing/selftests/bpf/prog_tests/resolve_btfids.c
parent0d68e6fe12ada8fbaf35f0978aaf18dfb8d2dbb5 (diff)
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 <maciej.fijalkowski@intel.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Magnus Karlsson <magnus.karlsson@intel.com> Link: https://lore.kernel.org/bpf/20220901114813.16275-3-maciej.fijalkowski@intel.com
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/resolve_btfids.c')
0 files changed, 0 insertions, 0 deletions