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: Introduce helpers for __ctx_is checks #23820
Conversation
b7fec34
to
1e948ad
Compare
bpf/lib/qm.h
Outdated
@@ -8,7 +8,10 @@ | |||
|
|||
static inline void reset_queue_mapping(struct __ctx_buff *ctx __maybe_unused) | |||
{ | |||
#if defined(RESET_QUEUES) && __ctx_is == __ctx_skb | |||
#if defined(RESET_QUEUES) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: ifdef RESET_QUEUES
bpf/lib/nodeport.h
Outdated
* request. | ||
*/ | ||
return CTX_ACT_OK; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: you could move the comment above the if (ctx_is_xdp()), and then just
if (ctx_is_xdp())
return CTX_ACT_OK;
without the braces as you have in IPv6 path.
@borkmann @NikAleksandrov |
/test |
interesting. The verifier failed with 5.15 but passed in kernel earlier and later than it. I tried to set up a vm box to test it locally, but I got |
This comment was marked as resolved.
This comment was marked as resolved.
/test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Reviews are in, but the PR is now out-of-date with the main branch and many of the tests failed (which we can't see the results any more due to expiry/timeouts.) Next steps should be:
|
Commit 25d732654c75fb45269861f8d4a7e997f368ad70 does not contain "Signed-off-by". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
This pull request has been automatically marked as stale because it |
Sorry, this slipped through my review queue. Unfortunately the branch is out-of-date again. Also, the way that this PR has a "merge" commit breaks the merging - could you rebase without a merge commit against the latest upstream/main? Then we can follow up to get this merged. Feel free to ping me on Slack in #development channel if I'm taking too long to respond, it might be just that I lost track of the PR again. |
Only macros in function body are updated so it doesn't affect function definitions. Fixes: cilium#23008 Signed-off-by: spacewander <spacewanderlzx@gmail.com>
Done |
/test |
Only macros in function body are updated so it doesn't affect function definitions.
Fixes: #23008
Please ensure your pull request adheres to the following guidelines:
description and a
Fixes: #XXX
line if the commit addresses a particularGitHub issue.
Fixes: <commit-id>
tag, thenplease add the commit author[s] as reviewer[s] to this issue.