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
loader: clean up tcx bpf_links created by newer Cilium versions #31553
Conversation
/test |
Do we need a 1.13 backport? TCX will be released with 1.16, so only 1.15 and 1.14 need the downgrade path or did we change that policy? |
No, 1.13 is not needed. Technically only 1.15 needs it. |
The arguments to the replaceDatapath functions are already quite numerous and make the function signature hard to read. In preparation for future commits, this patch aggregates almost all arguments to the function into one option parameter. Signed-off-by: Robin Gögge <r.goegge@isovalent.com>
0d6b950
to
e869773
Compare
/test |
A follow-up commit will introduce attaching TC programs using tcx. Those attachments cannot be overridden using netlink. If an older version of Cilium wants to replace an TC program on a managed interface, it'll need to remove the tcx attachment first. This commit teaches the agent to remove leftover tcx link objects from previous installs, before reattaching it using netlink. Note that this transition is never seamless, since some time passes between deleting the link and attaching the new program using netlink. However, as explained in 7a8e3c8 ("loader: clean up XDP bpf_links created by newer Cilium versions"), this downgrade path should rarely happen. Signed-off-by: Robin Gögge <r.goegge@isovalent.com> Co-authored-by: Timo Beckers <timo@isovalent.com>
e869773
to
082e607
Compare
Had to make the |
/test |
This PR represents the backportable part of #30103 and needs to be merged and backported independently in order for the downgrade path (and tests) to work.