aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests
diff options
context:
space:
mode:
authorMagnus Karlsson <magnus.karlsson@intel.com>2021-09-07 09:19:18 +0200
committerDaniel Borkmann <daniel@iogearbox.net>2021-09-10 21:15:31 +0200
commit55be575dc13ccfc9bf27ebb5af938b70206a9eb5 (patch)
tree227284acb6e7b2252cf792e3ca5fb0a26de408e0 /tools/testing/selftests/bpf/prog_tests
parentselftests: xsk: Introduce rx_on and tx_on in ifobject (diff)
downloadlinux-dev-55be575dc13ccfc9bf27ebb5af938b70206a9eb5.tar.xz
linux-dev-55be575dc13ccfc9bf27ebb5af938b70206a9eb5.zip
selftests: xsk: Replace second_step global variable
Replace the second_step global variable with a test specification variable called total_steps that a test can be set to indicate how many times the packet stream should be sent without reinitializing any sockets. This eliminates test specific code in the test runner around the bidirectional test. The total_steps variable is 1 by default as most tests only need a single round of packets. Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com> Link: https://lore.kernel.org/bpf/20210907071928.9750-11-magnus.karlsson@gmail.com
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests')
0 files changed, 0 insertions, 0 deletions