New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
datapath,daemon: Enable multi-dev XDP #17655
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
maintainer-s-little-helper
bot
added
the
dont-merge/needs-release-note-label
The author needs to describe the release impact of these changes.
label
Oct 20, 2021
brb
force-pushed
the
pr/brb/multidev-xdp
branch
2 times, most recently
from
October 22, 2021 14:22
04f61b9
to
1e274d8
Compare
brb
added
release-note/minor
This PR changes functionality that users may find relevant to operating Cilium.
sig/datapath
Impacts bpf/ or low-level forwarding details, including map management and monitor messages.
labels
Oct 22, 2021
maintainer-s-little-helper
bot
removed
the
dont-merge/needs-release-note-label
The author needs to describe the release impact of these changes.
label
Oct 22, 2021
brb
force-pushed
the
pr/brb/multidev-xdp
branch
from
October 22, 2021 14:29
1e274d8
to
bdf868c
Compare
Cilium L4LB XDP CI has passed - https://github.com/cilium/cilium/actions/runs/1372591051. Removing the commit which triggered the run. |
brb
force-pushed
the
pr/brb/multidev-xdp
branch
from
October 22, 2021 14:47
bdf868c
to
961217f
Compare
maintainer-s-little-helper
bot
assigned christarazi and ldelossa and unassigned ldelossa
Oct 25, 2021
brb
force-pushed
the
pr/brb/multidev-xdp
branch
3 times, most recently
from
October 25, 2021 20:34
4efe872
to
05cdfcf
Compare
brb
added
the
ready-to-merge
This PR has passed all tests and received consensus from code owners to merge.
label
Oct 25, 2021
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>
To test that, add another veth pair to the LB node (aka "kind-control-plane"), and steer the LB request through it (done by installing ip route: $LB_VIP via $ANOTHER_VETH_PAIR_IP). After receiving the request, the LB node will do XDP_REDIRECT to the previous veth pair (identified by the --direct-routing-device) which is used to connect with the kind-worker which is running the service backend. Signed-off-by: Martynas Pumputis <m@lambda.lt>
Replace the enablement by the dedicated flag "--enable-xdp-prefilter", and the mode with the existing "--bpf-lb-acceleration". Ideally, we should deprecate the filter, but we cannot do it until the host-fw is supported by the XDP prog. Signed-off-by: Martynas Pumputis <m@lambda.lt>
4 tasks
maintainer-s-little-helper
bot
moved this from Needs backport from master
to Backport pending to v1.10
in 1.10.6
Nov 30, 2021
maintainer-s-little-helper
bot
moved this from Backport pending to v1.10
to Backport done to v1.10
in 1.10.6
Dec 6, 2021
maintainer-s-little-helper
bot
moved this from Backport pending to v1.10
to Backport done to v1.10
in 1.10.6
Dec 6, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
ready-to-merge
This PR has passed all tests and received consensus from code owners to merge.
release-note/minor
This PR changes functionality that users may find relevant to operating Cilium.
sig/datapath
Impacts bpf/ or low-level forwarding details, including map management and monitor messages.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See commit messages.