diff options
author | Mickaël Salaün <mic@digikod.net> | 2017-02-10 00:21:43 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-02-10 15:56:07 -0500 |
commit | f4874d01beba16a1bf2512929b9d460e003d7f3d (patch) | |
tree | e43c59936314a8cc365a161a29e67b037553d4b0 /tools/testing/selftests/bpf/test_lru_map.c | |
parent | 5f155c2563592b1908a7df2dcbd44893fde3e419 (diff) | |
download | linux-f4874d01beba16a1bf2512929b9d460e003d7f3d.tar.gz linux-f4874d01beba16a1bf2512929b9d460e003d7f3d.tar.bz2 linux-f4874d01beba16a1bf2512929b9d460e003d7f3d.zip |
bpf: Use bpf_create_map() from the library
Replace bpf_map_create() with bpf_create_map() 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/testing/selftests/bpf/test_lru_map.c')
-rw-r--r-- | tools/testing/selftests/bpf/test_lru_map.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/bpf/test_lru_map.c b/tools/testing/selftests/bpf/test_lru_map.c index 360f7e006eb6..48973ded1c96 100644 --- a/tools/testing/selftests/bpf/test_lru_map.c +++ b/tools/testing/selftests/bpf/test_lru_map.c @@ -31,11 +31,11 @@ static int create_map(int map_type, int map_flags, unsigned int size) { int map_fd; - map_fd = bpf_map_create(map_type, sizeof(unsigned long long), + map_fd = bpf_create_map(map_type, sizeof(unsigned long long), sizeof(unsigned long long), size, map_flags); if (map_fd == -1) - perror("bpf_map_create"); + perror("bpf_create_map"); return map_fd; } |