Skip to content
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

Gray/xdp #13

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
Draft

Gray/xdp #13

wants to merge 12 commits into from

Conversation

jschwinger233
Copy link
Owner

Background

Checklist

Full Changelogs

  • [Implement ...]

Issue Reference

Closes #[issue number]

Test Result

@jschwinger233 jschwinger233 force-pushed the gray/xdp branch 2 times, most recently from c9bdbce to bd6d954 Compare April 7, 2024 17:27
Because we pass l3proto instead, which is parsed from parse_transport()
And it also returns bpf_redirect().
This is because we will implement the corresponding functions for XDP
soon.
To distinguish from XDP lib functions.
Let's copy without any modification.
1. xdp won't be attached to L3 netdev, so no need to handle 0 hlen
2. use xdp bpf helpers instead of skb helpers
3. store metadata in skb->data_meta instead of skb->cb
This is temporarily needed until AF_XDP forwarding is implemented.
@jschwinger233 jschwinger233 marked this pull request as ready for review April 10, 2024 18:34
@jschwinger233 jschwinger233 marked this pull request as draft April 10, 2024 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant