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

libbpf-rs: add support for bpf_map_update_batch method #617

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

syogaraj
Copy link

Fix #607

@danielocfb danielocfb self-assigned this Nov 28, 2023
@danielocfb danielocfb self-requested a review November 28, 2023 05:32
@danielocfb
Copy link
Collaborator

Thanks for working on this support! Will take a look this week.

Copy link
Collaborator

@danielocfb danielocfb left a comment

Choose a reason for hiding this comment

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

Apologies for the delay. Library code looks fine to me, but for the test:

  • can you please add /// comment what it does (check other tests)
  • use proper identifyable keys and values as is done in test_sudo_object_map_delete_batch, for example (otherwise the workings are hard to understand)
  • let's please cover the error cases where key and value sizes don't match

Looks good to me other than that.

Signed-off-by: yogaraj.s <yogaraj.s@zohocorp.com>
Copy link
Collaborator

@danielocfb danielocfb left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks for working on this addition!

@danielocfb danielocfb merged commit 071d80d into libbpf:master Dec 5, 2023
10 checks passed
danielocfb pushed a commit that referenced this pull request Dec 5, 2023
Add a CHANGELOG entry for the changes made as part of #617.

Signed-off-by: Daniel Müller <deso@posteo.net>
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.

Support bpf_map_update_batch method
2 participants