diff options
| author | Puranjay Mohan <puranjay@kernel.org> | 2026-04-28 02:23:02 +0300 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-05-12 01:25:24 +0300 |
| commit | 4b4f2229104c9010005d50125ccbfb1b4be68be5 (patch) | |
| tree | 4bc48dc91b1cd813b0b234d1c3cc5783d1e587f6 /include/linux/stacktrace.h | |
| parent | 6b4003a7b333602fb24b514a27067e7a2c98136e (diff) | |
| download | linux-4b4f2229104c9010005d50125ccbfb1b4be68be5.tar.xz | |
selftests/bpf: Add XDP load-balancer BPF program
Add the BPF datapath for the XDP load-balancer benchmark, a
simplified L4 load-balancer inspired by katran.
The pipeline: L3/L4 parse -> VIP lookup -> per-CPU LRU connection
table or consistent-hash fallback -> real server lookup -> per-VIP
and per-real stats -> IPIP/IP6IP6 encapsulation. TCP SYN forces
the consistent-hash path (skipping LRU); TCP RST skips LRU insert
to avoid polluting the table.
process_packet() is marked __noinline so that the BENCH_BPF_LOOP
reset block (which strips encapsulation) operates on valid packet
pointers after bpf_xdp_adjust_head().
Signed-off-by: Puranjay Mohan <puranjay@kernel.org>
Link: https://lore.kernel.org/r/20260427232313.1582588-6-puranjay@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/linux/stacktrace.h')
0 files changed, 0 insertions, 0 deletions
