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

map: Add max_entries() for Map objects #1064

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Jongy
Copy link

@Jongy Jongy commented Jan 18, 2025

My use case is:

  1. Read map's max_entries before loading, and resize max_entries according to some logic.
  2. After map is loaded, access resized max_entries for logging etc.

For the sake of completeness I added max_entries on MapCore and implemented on MapHandle too, although I don't use this flow (I can add just on Map instead, or instead implement it with bpf_obj_get_info_by_fd to avoid increasing the struct's size)

Signed-off-by: Yonatan Goldschmidt <[email protected]>
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.

1 participant