aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/test_tag.c
diff options
context:
space:
mode:
authorMickaël Salaün <mic@digikod.net>2017-02-10 00:21:43 +0100
committerDavid S. Miller <davem@davemloft.net>2017-02-10 15:56:07 -0500
commitf4874d01beba16a1bf2512929b9d460e003d7f3d (patch)
treee43c59936314a8cc365a161a29e67b037553d4b0 /tools/testing/selftests/bpf/test_tag.c
parentbpf: Use bpf_map_get_next_key() from the library (diff)
downloadlinux-dev-f4874d01beba16a1bf2512929b9d460e003d7f3d.tar.xz
linux-dev-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_tag.c')
-rw-r--r--tools/testing/selftests/bpf/test_tag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/test_tag.c b/tools/testing/selftests/bpf/test_tag.c
index dc209721ffd5..ae4263638cd5 100644
--- a/tools/testing/selftests/bpf/test_tag.c
+++ b/tools/testing/selftests/bpf/test_tag.c
@@ -189,7 +189,7 @@ int main(void)
int i, fd_map;
setrlimit(RLIMIT_MEMLOCK, &rinf);
- fd_map = bpf_map_create(BPF_MAP_TYPE_HASH, sizeof(int),
+ fd_map = bpf_create_map(BPF_MAP_TYPE_HASH, sizeof(int),
sizeof(int), 1, BPF_F_NO_PREALLOC);
assert(fd_map > 0);