Skip to content
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: implement seamless tcx to legacy tc downgrade #32228

Merged
merged 1 commit into from
Apr 29, 2024

Conversation

ti-mo
Copy link
Contributor

@ti-mo ti-mo commented Apr 29, 2024

Due to confusion around the semantics of the tcx API, we believed downgrading tcx to legacy tc attachments couldn't be done seamlessly. This doesn't seem to be the case. As documented in the code, install the legacy tc attachment first, then remove any existing tcx attachment for the program.

Seamlessly downgrade bpf attachments from tcx to tc

Due to confusion around the semantics of the tcx API, we believed downgrading
tcx to legacy tc attachments couldn't be done seamlessly. This doesn't seem to
be the case. As documented in the code, install the legacy tc attachment first,
then remove any existing tcx attachment for the program.

Signed-off-by: Timo Beckers <timo@isovalent.com>
@ti-mo ti-mo added sig/loader Impacts the loading of BPF programs into the kernel. release-note/misc This PR makes changes that have no direct user impact. needs-backport/1.15 This PR / issue needs backporting to the v1.15 branch labels Apr 29, 2024
@ti-mo ti-mo requested a review from a team as a code owner April 29, 2024 11:39
@ti-mo ti-mo requested a review from rgo3 April 29, 2024 11:39
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from main in 1.15.5 Apr 29, 2024
@ti-mo
Copy link
Contributor Author

ti-mo commented Apr 29, 2024

/test

@ti-mo ti-mo enabled auto-merge April 29, 2024 12:43
@ti-mo ti-mo added this pull request to the merge queue Apr 29, 2024
@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Apr 29, 2024
Merged via the queue into cilium:main with commit d4a159a Apr 29, 2024
65 checks passed
@ti-mo ti-mo deleted the tb/seamless-tcx-downgrade branch April 29, 2024 13:06
@borkmann borkmann added backport-pending/1.15 The backport for Cilium 1.15.x for this PR is in progress. and removed needs-backport/1.15 This PR / issue needs backporting to the v1.15 branch labels May 3, 2024
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Needs backport from main to Backport pending to v1.15 in 1.15.5 May 3, 2024
@borkmann borkmann added backport-done/1.15 The backport for Cilium 1.15.x for this PR is done. and removed backport-pending/1.15 The backport for Cilium 1.15.x for this PR is in progress. labels May 3, 2024
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Backport pending to v1.15 to Backport done to v1.15 in 1.15.5 May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-done/1.15 The backport for Cilium 1.15.x for this PR is done. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact. sig/loader Impacts the loading of BPF programs into the kernel.
Projects
No open projects
1.15.5
Backport done to v1.15
Status: Released
Development

Successfully merging this pull request may close these issues.

None yet

3 participants