forked from daeuniverse/dae
-
Notifications
You must be signed in to change notification settings - Fork 0
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
XDP Compat #14
Draft
jschwinger233
wants to merge
11
commits into
main
Choose a base branch
from
gray/xdp-compat
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
XDP Compat #14
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
jschwinger233
force-pushed
the
gray/xdp-compat
branch
5 times, most recently
from
April 10, 2024 13:54
1a4278d
to
8702f04
Compare
Because we pass l3proto instead, which is parsed from parse_transport()
And it also returns bpf_redirect().
jschwinger233
force-pushed
the
gray/xdp-compat
branch
from
April 12, 2024 10:55
e7ff62c
to
5e530ab
Compare
This is because: 1. XDP can't operate skb->cb 2. Further handling doesn't need L2 info at all
we will implement the corresponding functions for XDP soon.
To distinguish from XDP lib functions.
Just copy without a single character change.
1. xdp won't be attached to L3 netdev, so no need to handle 0 hlen 2. use xdp helpers instead of skb helpers
No adjustment.
jschwinger233
force-pushed
the
gray/xdp-compat
branch
2 times, most recently
from
April 12, 2024 11:57
8416b4a
to
42b7098
Compare
jschwinger233
force-pushed
the
gray/xdp-compat
branch
from
April 12, 2024 12:11
42b7098
to
71a6d34
Compare
PR 暂时搁置,主要问题是:
但是也不是没有转机。 如果 AF_XDP 能够完全实现 TCP + UDP 的劫持,那就算是 generic mode 说不定也有 更好的性能。 另一方面,是否可以考虑单向的 AF_XDP,比如从 dae 回复 UDP 的时候用 XSK 发送而不走内核栈,也许也可以考虑(不确定,因为要为每一个 tuple 查一次 redirect_map 确定用哪个 XSK,最差情况下无法缓存,性能能不能将功补过不好说,CPU 肯定爆炸了) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No logic change.
Background
Checklist
Full Changelogs
Issue Reference
Closes #[issue number]
Test Result