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

bpf: add support for other map types to bpf_map_lookup_and_delete_elem #81

Closed
wants to merge 2 commits into from

Commits on Sep 18, 2020

  1. adding ci files

    kernel-patches-bot committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    cb2afb9 View commit details
    Browse the repository at this point in the history
  2. Since this function already exists, it made sense to implement it for

    map types other than stack and queue. This patch adds the necessary parts
    from bpf_map_lookup_elem and bpf_map_delete_elem so it works as expected
    for all map types.
    
    Signed-off-by: Luka Oreskovic <luka.oreskovic@sartura.hr>
    CC: Juraj Vijtiuk <juraj.vijtiuk@sartura.hr>
    CC: Luka Perkov <luka.perkov@sartura.hr>
    ---
     kernel/bpf/syscall.c | 30 ++++++++++++++++++++++++++++--
     1 file changed, 28 insertions(+), 2 deletions(-)
    Luka Oreskovic authored and kernel-patches-bot committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    b138d59 View commit details
    Browse the repository at this point in the history