Commit Graph

6 Commits (c2ecae9b82e933781b48ea41a2c002e65e8e6a07)

Author SHA1 Message Date
Vincent Li 64d12aacc8 ebpf: Update eBPF map to BTF defined map
legacy map definition is removed from libbpf1.0+.
update the legacy map definition to BTF defined map.

Distros with < libbpf1.0 (0.5, 0.6, 0.7, 0.8) bpf_helpers.h
support BTF map definition, this change does not break
old libbpf and support new libpbf1.0+.

Bug: #6250

Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
Co-authored-by: Victor Julien <vjulien@oisf.net>
10 months ago
Victor Julien 9b408e6e2f ebpf: spelling 1 year ago
Eric Leblond b9351339a2 ebpf: fix gre encapsulation in xdp_lb
The xdp_lb was not handling correctly the GRE load balancing
and it was not supporting the GRE + ERSPAN that is used by
some aggregator devices.
4 years ago
Eric Leblond dfe5785bfa ebpf: avoid need of 32 bit header
Compilation of xdp_lb.c was failing in some case with the following
error:

/usr/include/x86_64-linux-gnu/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-32.h' file not found

This patch add some define to be able to skip recursive inclusion of
header files leading to the problem.
4 years ago
Eric Leblond e0e3cc7cc2 ebpf: add tunnel aware load balancing
This patch decapsulates GRE tunnel in xdp_lb
5 years ago
Eric Leblond a536852526 ebpf: add XDP load balancing code
This patch uses CPU redirect map to do load balancing. This is a
simplified version of xdp_filter that includes code for bypass.
5 years ago