Skip to content

Convert bpf endpoint config macros to load time config#40430

Merged
dylandreimerink merged 4 commits intocilium:mainfrom
fristonio:pr/fristonio/ep-loader-config
Aug 1, 2025
Merged

Convert bpf endpoint config macros to load time config#40430
dylandreimerink merged 4 commits intocilium:mainfrom
fristonio:pr/fristonio/ep-loader-config

Conversation

@fristonio
Copy link
Copy Markdown
Member

@fristonio fristonio commented Jul 9, 2025

Convert BPF macros to load time config:

  • HOST_EP_ID
  • DIRECT_ROUTING_DEV_IFINDEX

Parent Issue: #38370

@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Jul 9, 2025
@fristonio fristonio added the release-note/misc This PR makes changes that have no direct user impact. label Jul 9, 2025
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Jul 9, 2025
@fristonio fristonio force-pushed the pr/fristonio/ep-loader-config branch from d803cb6 to 0651f33 Compare July 9, 2025 01:47
@fristonio
Copy link
Copy Markdown
Member Author

/test

@fristonio fristonio force-pushed the pr/fristonio/ep-loader-config branch from 0651f33 to 7a2ce14 Compare July 9, 2025 18:52
@fristonio
Copy link
Copy Markdown
Member Author

/test

@fristonio fristonio force-pushed the pr/fristonio/ep-loader-config branch 2 times, most recently from 9700050 to a6ab312 Compare July 10, 2025 17:46
@fristonio fristonio added area/loader Impacts the loading of BPF programs into the kernel. kind/cleanup This includes no functional changes. labels Jul 10, 2025
@fristonio fristonio marked this pull request as ready for review July 10, 2025 17:53
@fristonio fristonio requested review from a team as code owners July 10, 2025 17:53
@fristonio fristonio requested review from ldelossa and ti-mo July 10, 2025 17:53
@fristonio
Copy link
Copy Markdown
Member Author

fristonio commented Jul 10, 2025

/test
BPF check patch fails with harmless warning on line length. Not able to fix it even with line continuation.
image

@ti-mo
Copy link
Copy Markdown
Contributor

ti-mo commented Jul 11, 2025

BPF check patch fails with harmless warning on line length. Not able to fix it even with line continuation.
image

This is :fine: and common, no worries. :)

Copy link
Copy Markdown
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! Left a few considerations.

Signed-off-by: Deepesh Pathak <deepeshpathak09@gmail.com>
@fristonio fristonio force-pushed the pr/fristonio/ep-loader-config branch from a6ab312 to 2346875 Compare July 11, 2025 19:56
@fristonio fristonio requested a review from a team as a code owner July 11, 2025 19:56
@fristonio fristonio requested a review from derailed July 11, 2025 19:56
Signed-off-by: Deepesh Pathak <deepeshpathak09@gmail.com>
Signed-off-by: Deepesh Pathak <deepeshpathak09@gmail.com>
This commit refactors the evaluation of DirectRoutingDevice requirement
to orchestrator simplifying the usage during load time.
When reconciling LocalNodeConfig error out if Direct routing device is
required but not yet configured.

Signed-off-by: Deepesh Pathak <deepeshpathak09@gmail.com>
@fristonio fristonio force-pushed the pr/fristonio/ep-loader-config branch from 2346875 to ce709ca Compare July 11, 2025 23:18
@fristonio
Copy link
Copy Markdown
Member Author

/ci-verifier

@fristonio
Copy link
Copy Markdown
Member Author

/test

Copy link
Copy Markdown
Member

@dylandreimerink dylandreimerink left a comment

Choose a reason for hiding this comment

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

Taking over review for cilium/loader since Timo is not available for a bit.

Changes look good to me. I believe all of Timo's feedback has been processed. Thank you!

Copy link
Copy Markdown
Contributor

@derailed derailed left a comment

Choose a reason for hiding this comment

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

@fristonio Nice work!

Copy link
Copy Markdown
Contributor

@ldelossa ldelossa left a comment

Choose a reason for hiding this comment

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

LGTM

@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 Jul 30, 2025
@fristonio fristonio removed the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jul 30, 2025
@dylandreimerink dylandreimerink self-requested a review July 31, 2025 16:04
@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 Aug 1, 2025
@dylandreimerink dylandreimerink added this pull request to the merge queue Aug 1, 2025
Merged via the queue into cilium:main with commit 8fae439 Aug 1, 2025
69 of 70 checks passed
@cilium-release-bot cilium-release-bot bot moved this to Released in cilium v1.19.0 Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/loader Impacts the loading of BPF programs into the kernel. kind/cleanup This includes no functional changes. 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.

Projects

No open projects
Status: Released

Development

Successfully merging this pull request may close these issues.

6 participants