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

fix next key not looping back to the beginning #55

Closed
wants to merge 18 commits into from

Conversation

gtrevi
Copy link
Owner

@gtrevi gtrevi commented Nov 9, 2023

Closes 2942

Description

This PR fixes the behavior of bpf_map_get_next_key specifically to the following (as per the official documentation here: https://man7.org/linux/man-pages/man2/bpf.2.html):

(...) If key is not found, the operation returns zero and sets the next_key pointer to the key of the first element. (...)

Testing

CI/CD

Documentation

n.a.

Installation

n.a.

@gtrevi gtrevi closed this Nov 11, 2023
@gtrevi gtrevi deleted the gtrevi/fix-bpf_map_get_next_key branch November 11, 2023 05:17
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