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.c | |
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.c')
-rw-r--r-- | tools/lib/bpf/bpf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/bpf/bpf.c b/tools/lib/bpf/bpf.c index b1a1f58b99e0..eab8c6bfbf8f 100644 --- a/tools/lib/bpf/bpf.c +++ b/tools/lib/bpf/bpf.c @@ -124,7 +124,7 @@ int bpf_map_lookup_elem(int fd, const void *key, void *value) return sys_bpf(BPF_MAP_LOOKUP_ELEM, &attr, sizeof(attr)); } -int bpf_map_delete_elem(int fd, void *key) +int bpf_map_delete_elem(int fd, const void *key) { union bpf_attr attr; |