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

Re-Attach/Update BPF program on existing VRF interfaces and Fix Monitoring #70

Merged
merged 7 commits into from Oct 18, 2023

Conversation

chdxD1
Copy link
Member

@chdxD1 chdxD1 commented Oct 17, 2023

Previously the BPF program was only re-attached to the onlyBPFInterfaces of the config. Existing VRF interfaces weren't reconciled and the BPF wasn't re-added to them. This is now fixed and the BPF program is re-attached if the IDs do not match.

In this PR also the monitoring of eBPF maps get fixed by copying the value of the for-loop into a separate variable, which is a known Go problem (which gets fixed in 1.21 which we don't use yet)

@Cellebyte
Copy link
Collaborator

I would suggest moving the bpf monitoring into the monitoring directory.

Copy link
Member

@schrej schrej left a comment

Choose a reason for hiding this comment

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

lgtm code wise

@chdxD1
Copy link
Member Author

chdxD1 commented Oct 18, 2023

Confirmed working on dev Cluster 🙌

@chdxD1 chdxD1 merged commit 40566cd into main Oct 18, 2023
5 checks passed
@schrej schrej deleted the feature/monitoring-and-bpf-reattach branch October 18, 2023 14:26
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.

None yet

3 participants