-
Notifications
You must be signed in to change notification settings - Fork 3.4k
bpf: Ensure BPF host routing works with tunnel #35098
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: Ensure BPF host routing works with tunnel #35098
Conversation
/test |
@jschwinger233 I'm thinking that https://github.com/cilium/cilium/actions/runs/11101570329/job/30849111216 is what Jarno wanted to fix in #33014. Now that we actually use BPF Host Routing, the to-ingress traffic no longer passes through the stack (where it magically gets routed), but just exits through the default external interface. |
Was looking at this once more - uff, we even do it right for IPv6. That's probably the first time that IPv6 is correct but IPv4 is buggy ... |
Probably worth re-testing on-top of #35143 :) |
ecac98e
to
2082740
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.
😲
I think we'll need a backport of #35143 first, so let's set this to |
When BPF host routing is enabled with tunnel, encap_and_redirect_lxc() returns DROP_NO_TUNNEL_ENDPOINT for pod-to-world traffic, which then goes up stack instead of being fib_redirected. This patch ensures to-world traffic follow the expected path. Please note that we handled this correctly for IPv6, so only IPv4 is being amended. Fixes: cilium#35023 Signed-off-by: gray <gray.liang@isovalent.com>
2082740
to
16ea3cc
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.
Thank you! That goto
maze is getting a bit much, but let's clean it up afterwards.
|
Switching back to |
False alarm, should be good now. |
Added a configurable bpf-hostlegacyrouting option to the conformance tests as Cilium 1.16.5+ introduced a breaking change for Talos 'forwardKubeDNSToHost'. See cilium/cilium#35098 for more details. Signed-off-by: Philip Schmid <phisch@cisco.com>
Added a configurable bpf-hostlegacyrouting option to the conformance tests as Cilium 1.16.5+ introduced a breaking change for Talos 'forwardKubeDNSToHost'. See cilium/cilium#35098 for more details. Signed-off-by: Philip Schmid <phisch@cisco.com>
Added a configurable bpf-hostlegacyrouting option to the conformance tests as Cilium 1.16.5+ introduced a breaking change for Talos 'forwardKubeDNSToHost'. See cilium/cilium#35098 for more details. Signed-off-by: Philip Schmid <phisch@cisco.com>
Fixes: #35023