selftests/xsk: Add new test case for AF_XDP under max ring sizes
authorTushar Vyavahare <tushar.vyavahare@intel.com>
Tue, 2 Apr 2024 11:45:29 +0000 (11:45 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 3 Apr 2024 14:04:14 +0000 (16:04 +0200)
commitc53908b254fcf25b05bcdf6634adb36eaccac111
treea122671ae8298b2f23d3f86ebd86a878260648ff
parentc4f960539fae6f04617d3909cc0dfdb88e7d197b
selftests/xsk: Add new test case for AF_XDP under max ring sizes

Introduce a test case to evaluate AF_XDP's robustness by pushing hardware
and software ring sizes to their limits. This test ensures AF_XDP's
reliability amidst potential producer/consumer throttling due to maximum
ring utilization. The testing strategy includes:

1. Configuring rings to their maximum allowable sizes.
2. Executing a series of tests across diverse batch sizes to assess
   system's behavior under different configurations.

Signed-off-by: Tushar Vyavahare <tushar.vyavahare@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Magnus Karlsson <magnus.karlsson@intel.com>
Link: https://lore.kernel.org/bpf/20240402114529.545475-8-tushar.vyavahare@intel.com
tools/testing/selftests/bpf/xskxceiver.c