diff options
author | Magnus Karlsson <magnus.karlsson@intel.com> | 2021-08-25 11:37:13 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-08-25 12:22:00 -0700 |
commit | d40ba9d33ae8ed937234fd12b7303a997406bd87 (patch) | |
tree | 7f89cfb7e7300abedaf5f65ec68ddd226554a9d0 /tools/testing/selftests/bpf/xdpxceiver.h | |
parent | 9c5ce931b16ea83fa01e5e4ca95b5172f1cde01a (diff) | |
download | lwn-d40ba9d33ae8ed937234fd12b7303a997406bd87.tar.gz lwn-d40ba9d33ae8ed937234fd12b7303a997406bd87.zip |
selftests: xsk: Disassociate umem size with packets sent
Disassociate the number of packets sent with the number of buffers in
the umem. This so we can loop over the umem to test more things. Set
the size of the umem to be a multiple of 2M. A requirement for huge
pages that are needed in unaligned mode.
Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210825093722.10219-8-magnus.karlsson@gmail.com
Diffstat (limited to 'tools/testing/selftests/bpf/xdpxceiver.h')
-rw-r--r-- | tools/testing/selftests/bpf/xdpxceiver.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/xdpxceiver.h b/tools/testing/selftests/bpf/xdpxceiver.h index a4371d9e2798..131bd998e374 100644 --- a/tools/testing/selftests/bpf/xdpxceiver.h +++ b/tools/testing/selftests/bpf/xdpxceiver.h @@ -70,7 +70,7 @@ enum STAT_TEST_TYPES { static int configured_mode = TEST_MODE_UNCONFIGURED; static u8 debug_pkt_dump; -static u32 num_frames; +static u32 num_frames = DEFAULT_PKT_CNT / 4; static bool second_step; static int test_type; |