-
Notifications
You must be signed in to change notification settings - Fork 3.4k
bpf: lxc: fix ifindex in TO_ENDPOINT trace notification #33085
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: lxc: fix ifindex in TO_ENDPOINT trace notification #33085
Conversation
/test |
86ba0c5
to
fe8684b
Compare
/test |
fe8684b
to
b25cb8d
Compare
/ci-runtime |
/test |
Mind you that I have little clue about all the templating dance in the loader. So this might be totally bogus :). |
b25cb8d
to
7047c29
Compare
/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
7047c29
to
9359224
Compare
/test |
(quick rebase to pick up healthy CI) |
Make the ifindex of an endpoint available to the attached BPF program, so that it can be used by a subsequent patch. We can most likely unify this later with NATIVE_DEV_IFINDEX, which is only provided for native devices. Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
ipv*_policy() takes an `ifindex` parameter, and exclusively uses it to fill trace notifications. But for some cases the provided ifindex is currently 0 (for instance in a configuration with per-EP routing, when calling from to-container). Just provide the actual interface index instead. Reported-by: Tomasz Tarczyński <tomasz.tarczynski@isovalent.com> Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
9359224
to
4201e60
Compare
/test |
(and one more to resolve a conflict in bpf_lxc) |
We don't need to pass CB_IFINDEX from l3_local_delivery anymore with this PR? Line 112 in 572bca4
|
I think we still need it to indicate whether the redirect should happen. But ack, it can be a boolean flag now. |
Insert the ifindex of an endpoint into the
bpf_lxc
program, so that we can use it for trace notifications.