-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 #23008
Comments
/assign |
@SamrathPalSingh Are you still interested in working on this issue? |
Hi @brb, I am interested in it.
Do you mean ctx_is_skb macro? There is a guard macro in cilium/bpf/include/bpf/helpers.h Lines 27 to 31 in ac326f8
A runtime |
Hi @spacewander . I meant the following:
And then replace |
Yes. But this doesn't allow selecting |
Ah, I see. Yep, let's keep it unchanged. |
Only macros in function body are updated so it doesn't affect function definitions. Fixes: cilium#23008 Signed-off-by: spacewander <spacewanderlzx@gmail.com>
Only macros in function body are updated so it doesn't affect function definitions. Fixes: #23008 Signed-off-by: spacewander <spacewanderlzx@gmail.com>
Only macros in function body are updated so it doesn't affect function definitions. Fixes: cilium#23008 Signed-off-by: spacewander <spacewanderlzx@gmail.com>
In the datapath we have a few
__ctx_is
checks:For the sake of readability, we should introduce
ctx_is_{skb,xdp}()
helpers, and replace theifdef
's with the if statements.The text was updated successfully, but these errors were encountered: