diff options
| author | Puranjay Mohan <puranjay@kernel.org> | 2026-04-28 02:23:03 +0300 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-05-12 01:25:24 +0300 |
| commit | a4b5ba8187cb184aacac4ac8c86b4ef4821a4aa6 (patch) | |
| tree | 4a535faa58866836c763354f7e2d04435391ae70 /include/linux/timerqueue.h | |
| parent | 4b4f2229104c9010005d50125ccbfb1b4be68be5 (diff) | |
| download | linux-a4b5ba8187cb184aacac4ac8c86b4ef4821a4aa6.tar.xz | |
selftests/bpf: Add XDP load-balancer benchmark driver
Wire up the userspace side of the XDP load-balancer benchmark.
24 scenarios cover the full code-path matrix: TCP/UDP, IPv4/IPv6,
cross-AF encap, LRU hit/miss/diverse/cold, consistent-hash bypass,
SYN/RST flag handling, and early exits (unknown VIP, non-IP, ICMP,
fragments, IP options).
Before benchmarking each scenario validates correctness: the output
packet is compared byte-for-byte against a pre-built expected packet
and BPF map counters are checked against the expected values.
Usage:
sudo ./bench -a -w3 -p1 xdp-lb --scenario tcp-v4-lru-hit
sudo ./bench xdp-lb --list-scenarios
Signed-off-by: Puranjay Mohan <puranjay@kernel.org>
Link: https://lore.kernel.org/r/20260427232313.1582588-7-puranjay@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
