-
Notifications
You must be signed in to change notification settings - Fork 286
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
aya: add BpfLoader::set_max_entries #393
Conversation
✅ Deploy Preview for aya-rs-docs ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site settings. |
1ba77b0
to
1669223
Compare
Lint errors are unrelated to your changes, let me fix them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution! :)
Just one doc nit (we always finish sentences with periods).
Also, you will need to rebase once #394 gets merged.
Add BpfLoader::set_max_entries, which sets the max_entries for the specified map, as the load-time option. The max_entries set at map initialization in the ebpf component can be overwritten by this method called on the userspace component. If you want to set max_entries for multiple maps in an ebpf component, you can do so by calling set_max_entries in the form of a method chain. Fixes: aya-rs#308 Refs: aya-rs#292
1669223
to
2eccf1d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@alessandrod PTAL
Looks good! Thanks @aztecher and thank you for reviewing Michal! |
Fixes the issue #308.
Add BpfLoader::set_max_entries so that the max_entries of any map on the ebpf component
can be set at the load-time on the userspace component.
The max_entries of the map that matches the map name given in the first argument is overwritten
by the value of the second argument.
Fixes: #308
Refs: #292