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: fib: delay smac selection until fib_do_redirect() has picked the oif #26290
bpf: fib: delay smac selection until fib_do_redirect() has picked the oif #26290
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.
nice catch!
… oif fib_do_redirect() potentially takes the `oif` from the fib_params. But we currently don't consider this when selecting the smac. Fix this by delaying the smac selection until we actually need it. Fixes: 5fff05d ("bpf,fib: introduce fib_do_redirect function") Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
e235932
to
2118930
Compare
/test |
@julianwiedmann Backporting the changes in this PR to v1.13 yields conflicts as they depend on changes made in #23884, which was not backported to v1.13. I'm not competent enough in BPF to fully understand what's going on, can you double-check if it's OK to backport #23884 to v1.13? Note: #26136 from @ldelossa is hitting the exact same dependency issue. |
This PR is merely a fix-up for #26136. So I'll leave the backport details to @ldelossa 🙏 |
fib_do_redirect() potentially takes the
oif
from the fib_params. But we currently don't consider this when selecting the smac.Fix this by delaying the smac selection until we actually need it.
Fixes: 5fff05d ("bpf,fib: introduce fib_do_redirect function")