https://github.com/cilium/cilium
Revision b28a6846ac253e72e4bfd5b5d33100ffda42a24f authored by Martynas Pumputis on 22 October 2021, 13:33:22 UTC, committed by Martynas Pumputis on 24 November 2021, 08:44:03 UTC
This commit enables XDP (bpf_xdp) on all devices specified by --devices.
Previously, only --direct-routing-device (or --devices if dev count = 1)
could have been used to run bpf_xdp.

To do so, we rely on the bpf_redirect() helper which performance
(>= 5.5 Linux kernel) recently became on par with bpf_redirect_map()
[1]. Therefore, it does not make sense to use the latter.

The side effect of the enablement is that the --prefilter-device no
longer makes sense. This will be addressed in a following commit.

[1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1d233886dd904edbf239eeffe435c3308ae97625

Signed-off-by: Martynas Pumputis <m@lambda.lt>
1 parent fce99f4
History
Tip revision: b28a6846ac253e72e4bfd5b5d33100ffda42a24f authored by Martynas Pumputis on 22 October 2021, 13:33:22 UTC
datapath,daemon: Enable multi-dev XDP
Tip revision: b28a684
File Mode Size
.github
.travis
Documentation
api
bpf
bugtool
cilium
cilium-health
clustermesh-apiserver
contrib
daemon
envoy
examples
hack
hubble-relay
images
install
jenkinsfiles
operator
pkg
plugins
proxylib
test
tests
tools
vendor
.authors.aux -rw-r--r-- 416 bytes
.gitattributes -rw-r--r-- 260 bytes
.gitignore -rw-r--r-- 1.5 KB
.gitmodules -rw-r--r-- 0 bytes
.golangci.yaml -rw-r--r-- 3.3 KB
.mailmap -rw-r--r-- 4.0 KB
.travis.yml -rw-r--r-- 1.1 KB
AUTHORS -rw-r--r-- 19.7 KB
CHANGELOG.md -rw-r--r-- 144.7 KB
CODEOWNERS -rw-r--r-- 594 bytes
CODE_OF_CONDUCT.md -rw-r--r-- 2.2 KB
CONTRIBUTING.md -rw-r--r-- 227 bytes
FURTHER_READINGS.rst -rw-r--r-- 4.9 KB
GO_VERSION -rw-r--r-- 8 bytes
LICENSE -rw-r--r-- 11.1 KB
MAINTAINERS.md -rw-r--r-- 3.6 KB
Makefile -rw-r--r-- 27.6 KB
Makefile.defs -rw-r--r-- 6.0 KB
Makefile.docker -rw-r--r-- 6.1 KB
Makefile.quiet -rw-r--r-- 718 bytes
README.rst -rw-r--r-- 14.7 KB
SECURITY.md -rw-r--r-- 615 bytes
USERS.md -rw-r--r-- 6.8 KB
VERSION -rw-r--r-- 7 bytes
Vagrantfile -rw-r--r-- 12.8 KB
go.mod -rw-r--r-- 5.5 KB
go.sum -rw-r--r-- 139.8 KB
netlify.toml -rw-r--r-- 92 bytes
vagrant_box_defaults.rb -rw-r--r-- 392 bytes

README.rst

back to top