Skip to content

Comments

link: add StructOpsMap support#1844

Merged
lmb merged 2 commits intocilium:mainfrom
shun159:feature/link_progfd
Nov 5, 2025
Merged

link: add StructOpsMap support#1844
lmb merged 2 commits intocilium:mainfrom
shun159:feature/link_progfd

Conversation

@shun159
Copy link
Contributor

@shun159 shun159 commented Aug 10, 2025

This PR extends RawLinkOptions with an optional ProgramFd so callers can attach link types whose target isn't a bpf_prog (e.g. struct_ops maps).

See: #1502

@shun159 shun159 requested a review from mmat11 as a code owner August 10, 2025 05:50
@shun159
Copy link
Contributor Author

shun159 commented Aug 20, 2025

depends on #1845. we can proceed with this once the MR get merged.

@shun159 shun159 requested a review from a team as a code owner October 2, 2025 12:27
@github-actions github-actions bot added the breaking-change Changes exported API label Oct 2, 2025
@shun159 shun159 marked this pull request as draft October 3, 2025 10:10
@shun159
Copy link
Contributor Author

shun159 commented Oct 3, 2025

@lmb I changed this MR to draft since it depends on #1869 and #1845.

@shun159 shun159 changed the title link: allow attaching with ProgramFd (needed for struct_ops) link: add StructOpsMap support Oct 3, 2025
@shun159 shun159 force-pushed the feature/link_progfd branch 2 times, most recently from 9e3fd87 to 9ac72a1 Compare October 30, 2025 08:49
@github-actions github-actions bot removed the breaking-change Changes exported API label Oct 30, 2025
@shun159 shun159 marked this pull request as ready for review October 30, 2025 08:50
@shun159 shun159 force-pushed the feature/link_progfd branch 2 times, most recently from ee17ec4 to c28d238 Compare November 1, 2025 07:44
@shun159 shun159 force-pushed the feature/link_progfd branch from 2d66547 to fd28dea Compare November 3, 2025 16:59
@shun159
Copy link
Contributor Author

shun159 commented Nov 3, 2025

it looks like the tests are also failing on arm64.
Has there been any update to the VM image within the last few hours?

@lmb
Copy link
Contributor

lmb commented Nov 4, 2025

Windows has fixed itself, arm64 hasn't been changed. Made an issue: #1888

@shun159
Copy link
Contributor Author

shun159 commented Nov 4, 2025

Windows has fixed itself, arm64 hasn't been changed. Made an issue: #1888

got it 🫡

@shun159 shun159 force-pushed the feature/link_progfd branch from 6903f62 to 8b27114 Compare November 4, 2025 15:09
Allow attaching a StructOpsMap as a link.

See: cilium#1502

Co-developed-by: Lorenz Bauer <[email protected]>
Signed-off-by: shun159 <[email protected]>
@lmb lmb force-pushed the feature/link_progfd branch from 8b27114 to d18136b Compare November 5, 2025 10:18
Ensure that structOpsLink conforms to the Link conventions by
invoking testLink. This requires implementing some further bits.

Signed-off-by: Lorenz Bauer <[email protected]>
Copy link
Contributor

@lmb lmb left a comment

Choose a reason for hiding this comment

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

I've made some small cosmetic changes by moving code around and added one commit which tidies up the Link implementation.

Thanks for your hard work on this feature!

@lmb lmb merged commit 6ba5e77 into cilium:main Nov 5, 2025
18 checks passed
@shun159
Copy link
Contributor Author

shun159 commented Nov 5, 2025

@lmb I’m really happy that I was able to make this contribution with you. Thank you so much!

@shun159 shun159 deleted the feature/link_progfd branch November 5, 2025 10:47
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.

2 participants