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

[daemon] Implement ebpf loading/unloading on config change #78

Merged
merged 6 commits into from
Nov 14, 2024

Conversation

Mr-Kanister
Copy link
Contributor

Closes #77

ffranzgitHub and others added 3 commits November 11, 2024 20:45
The function is held very generic so that it can load any epbf function.

Co-authored-by: Mr-Kanister <[email protected]>
Co-authored-by: der-whity <[email protected]>
Signed-off-by: ffranzgitHub <[email protected]>
We had to redesign load_function() to save the ebpf information for unloading

Co-authored-by: Mr-Kanister <[email protected]>
Signed-off-by: ffranzgitHub <[email protected]>
Each time the configuration gets set, all its entries will get attached or dettached according to their "attach" boolean.

Co-authored-by: Mr-Kanister <[email protected]>
Signed-off-by: ffranzgitHub <[email protected]>
@Mr-Kanister Mr-Kanister marked this pull request as draft November 12, 2024 19:35
@Mr-Kanister Mr-Kanister changed the title [daemon] Implement ebpf load/unload function [daemon] Implement ebpf loading/unloading on config change Nov 12, 2024
@Mr-Kanister Mr-Kanister marked this pull request as ready for review November 12, 2024 19:41
@BenediktZinn
Copy link
Contributor

LGTM

  • we should talk about what folders are currently in use with all dev's and delete the deprecated ones at some point...

@fhilgers
Copy link
Collaborator

Yes we should, we currently have to keep the example folders because I do not think everything is ported to the other yet, right?

@Mr-Kanister
Copy link
Contributor Author

Most of it is ported, but I don't know about the example-ebpf one. As that one is linked to the other ones, too, it was not possible to delete only some folders. We have to delete all at one point, I think.

@fhilgers
Copy link
Collaborator

Also toms new PR adds something to example, example-common and example-ebfp

@fhilgers fhilgers merged commit 0a73b3b into dev Nov 14, 2024
4 checks passed
@fhilgers fhilgers deleted the feat/backend_daemon_load_ebpf branch November 14, 2024 18:33
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.

5 participants