-
Notifications
You must be signed in to change notification settings - Fork 3.4k
bpf: use bpf_xdp_load_bytes() / bpf_xdp_store_bytes() helpers #29377
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
Merged
Conversation
This file contains hidden or 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
/test |
8835783
to
f6fb874
Compare
/test |
/ci-e2e |
/ci-verifier |
These helpers were introduced in kernel 5.18, with 3f364222d032 ("net: xdp: introduce bpf_xdp_pointer utility routine"). Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
As the corresponding helpers were introduced in kernel 5.18, also add separate configs for the 6.1 kernel. For now these are just copies of the net-next configs. Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
These are now different from the 5.10 configs. Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
aab3cad
to
cc61bdb
Compare
/test |
rgo3
approved these changes
Nov 27, 2023
tklauser
approved these changes
Nov 28, 2023
borkmann
approved these changes
Nov 28, 2023
🚀 this could also get us closer to supporting >4k MTU on XDP. |
brlbil
approved these changes
Nov 28, 2023
This was referenced Nov 29, 2023
Looks like we want this in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/datapath
Impacts bpf/ or low-level forwarding details, including map management and monitor messages.
backport/author
The backport will be carried out by the author of the PR.
backport-done/1.14
The backport for Cilium 1.14.x for this PR is done.
kind/enhancement
This would improve or streamline existing functionality.
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.
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.
These helpers were introduced in kernel 5.18, with
3f364222d032 ("net: xdp: introduce bpf_xdp_pointer utility routine").
Add the needed probes, and have the datapath use the helpers when available.
Fixes: #29356