diff options
author | Mickaël Salaün <mic@digikod.net> | 2017-02-10 00:21:41 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-02-10 15:56:07 -0500 |
commit | e58383b803499bd623b737070038af94d0b8a3c7 (patch) | |
tree | 8878490cce2abb40872e9e33b0b41b21aaaa8d3b /tools/lib/bpf/bpf.h | |
parent | e5ff7c4019c6cb6e86bc9d6d16e8a8f921133c70 (diff) | |
download | linux-e58383b803499bd623b737070038af94d0b8a3c7.tar.gz linux-e58383b803499bd623b737070038af94d0b8a3c7.tar.bz2 linux-e58383b803499bd623b737070038af94d0b8a3c7.zip |
bpf: Use bpf_map_delete_elem() from the library
Replace bpf_map_delete() with bpf_map_delete_elem() calls.
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Cc: Alexei Starovoitov <ast@fb.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/lib/bpf/bpf.h')
-rw-r--r-- | tools/lib/bpf/bpf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/bpf/bpf.h b/tools/lib/bpf/bpf.h index 171cf594f782..f559f648db45 100644 --- a/tools/lib/bpf/bpf.h +++ b/tools/lib/bpf/bpf.h @@ -37,7 +37,7 @@ int bpf_map_update_elem(int fd, const void *key, const void *value, __u64 flags); int bpf_map_lookup_elem(int fd, const void *key, void *value); -int bpf_map_delete_elem(int fd, void *key); +int bpf_map_delete_elem(int fd, const void *key); int bpf_map_get_next_key(int fd, void *key, void *next_key); int bpf_obj_pin(int fd, const char *pathname); int bpf_obj_get(const char *pathname); |