aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/bpf.c
diff options
context:
space:
mode:
authorMickaël Salaün <[email protected]>2017-02-09 23:21:40 +0000
committerDavid S. Miller <[email protected]>2017-02-10 20:56:07 +0000
commite5ff7c4019c6cb6e86bc9d6d16e8a8f921133c70 (patch)
treec3060074ae5ccfa0ddb873d09ab08e4992de855a /tools/lib/bpf/bpf.c
parentbpf: Use bpf_map_update_elem() from the library (diff)
downloadkernel-e5ff7c4019c6cb6e86bc9d6d16e8a8f921133c70.tar.gz
kernel-e5ff7c4019c6cb6e86bc9d6d16e8a8f921133c70.zip
bpf: Use bpf_map_lookup_elem() from the library
Replace bpf_map_lookup() with bpf_map_lookup_elem() calls. Signed-off-by: Mickaël Salaün <[email protected]> Cc: Alexei Starovoitov <[email protected]> Cc: Daniel Borkmann <[email protected]> Cc: Shuah Khan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/lib/bpf/bpf.c')
-rw-r--r--tools/lib/bpf/bpf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/bpf/bpf.c b/tools/lib/bpf/bpf.c
index 1de762677a2f..b1a1f58b99e0 100644
--- a/tools/lib/bpf/bpf.c
+++ b/tools/lib/bpf/bpf.c
@@ -112,7 +112,7 @@ int bpf_map_update_elem(int fd, const void *key, const void *value,
return sys_bpf(BPF_MAP_UPDATE_ELEM, &attr, sizeof(attr));
}
-int bpf_map_lookup_elem(int fd, void *key, void *value)
+int bpf_map_lookup_elem(int fd, const void *key, void *value)
{
union bpf_attr attr;