-
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
bpf_host: declare variables in the beginning of the block #15560
Conversation
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.
Thank you for the fix. Patch looks good to me, can you please rebase to the current master?
@johngv2 In #15559, you also mentioned we need to update the |
For sure! In the PR for @pchaigno Done! ;) |
I think you'll need to have two |
That way we can define HOST_REDIRECT_TO_INGRESS without mixing declaration and code. Updates: #15559 Signed-off-by: Joao Victorino <joao@accuknox.com>
test-me-please |
Declaring the variables
int trace = TRACE_FROM_HOST;
andbool from_proxy;
at the beginning of the block allows us to define HOST_REDIRECT_TO_INGRESS without mixing declaration and code.Updates: #15559
Signed-off-by: Joao Victorino joao@accuknox.com