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

maps: Handle GetValueAndDeleteBatch return code appropiately #157

Commits on Apr 28, 2022

  1. maps: Handle GetValueAndDeleteBatch return code appropiately

    Long story short, some libbpf APIs that don't return pointers, such as the
    batch APIs might return `-1` when there's a 'partial success'. In the case
    of these APIs, with errno=ENOENT, we know that we read and deleted less than
    `count` entries, but it was still overall sucessful. For more  more background
    see the inline comments.
    
    This PR fixes this for `GetValueAndDeleteBatch` only. We aren't addressing
    all the other batch calls yet as we haven't used them
    yet.
    
    Thanks!
    javierhonduco committed Apr 28, 2022
    Copy the full SHA
    f2b3ab8 View commit details
    Browse the repository at this point in the history