Skip to content

Comments

prog: speed up opening pinned Programs#1822

Merged
lmb merged 1 commit intocilium:mainfrom
aibor:load-pinned-minimal-info
Jul 18, 2025
Merged

prog: speed up opening pinned Programs#1822
lmb merged 1 commit intocilium:mainfrom
aibor:load-pinned-minimal-info

Conversation

@aibor
Copy link
Contributor

@aibor aibor commented Jul 16, 2025

With commit df9ebe8 the opening of programs by fd was improved. The LoadPinnedProgram still uses to full ProgramInfo instead of the sufficient minimal one.

This commit improves the load of pinned Programs as well by using the central helper for creating programs from a fd. This also makes it more consistent with the LoadPinnedMap function as well.

With commit df9ebe8 the opening of programs by fd was improved. The
LoadPinnedProgram still uses to full ProgramInfo instead of the
sufficient minimal one.

This commit improves the load of pinned Programs as well by using the
central helper for creating programs from a fd. This also makes it more
consistent with the LoadPinnedMap function as well.

Signed-off-by: Tobias Böhm <[email protected]>
@aibor aibor requested a review from a team as a code owner July 16, 2025 19:49
Copy link
Contributor

@ti-mo ti-mo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Tobias! Not sure how I missed this one. Have you done a broader check for similar cases? Clearly I didn't find them all, and I'm currently on leave. 😅

@aibor
Copy link
Contributor Author

aibor commented Jul 16, 2025

Yes, I have checked for other uses of the functions providing the full info. They are only used for the actual Info() methods and tests now.

@lmb lmb merged commit 0f68fc4 into cilium:main Jul 18, 2025
44 of 48 checks passed
@aibor aibor deleted the load-pinned-minimal-info branch July 18, 2025 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants