diff options
author | Mickaël Salaün <mic@digikod.net> | 2017-02-10 02:21:42 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-02-10 23:56:07 +0300 |
commit | 5f155c2563592b1908a7df2dcbd44893fde3e419 (patch) | |
tree | 2d5180d924a46e900d302326c023c9f9415cf965 /tools/testing/selftests/bpf/test_lru_map.c | |
parent | e58383b803499bd623b737070038af94d0b8a3c7 (diff) | |
download | linux-5f155c2563592b1908a7df2dcbd44893fde3e419.tar.xz |
bpf: Use bpf_map_get_next_key() from the library
Replace bpf_map_next_key() with bpf_map_get_next_key() 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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/test_lru_map.c b/tools/testing/selftests/bpf/test_lru_map.c index 859c940a6e41..360f7e006eb6 100644 --- a/tools/testing/selftests/bpf/test_lru_map.c +++ b/tools/testing/selftests/bpf/test_lru_map.c @@ -46,7 +46,7 @@ static int map_subset(int map0, int map1) unsigned long long value0[nr_cpus], value1[nr_cpus]; int ret; - while (!bpf_map_next_key(map1, &next_key, &next_key)) { + while (!bpf_map_get_next_key(map1, &next_key, &next_key)) { assert(!bpf_map_lookup_elem(map1, &next_key, value1)); ret = bpf_map_lookup_elem(map0, &next_key, value0); if (ret) { |