diff options
author | Artem Savkov <asavkov@redhat.com> | 2022-04-21 11:43:20 +0200 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2022-04-21 09:51:57 -0700 |
commit | c14766a8a8f3d6c75bf09ec3b6d9ce4d8217015a (patch) | |
tree | f2305bc20d43093ecce4e36634a82cffa49e48cc /kernel/bpf/syscall.c | |
parent | 6a12b8e20d7e72386594a9dbe7bf2d7fae3b3aa6 (diff) |
selftests/bpf: Fix map tests errno checks
Switching to libbpf 1.0 API broke test_lpm_map and test_lru_map as error
reporting changed. Instead of setting errno and returning -1 bpf calls
now return -Exxx directly.
Drop errno checks and look at return code directly.
Fixes: b858ba8c52b6 ("selftests/bpf: Use libbpf 1.0 API mode instead of RLIMIT_MEMLOCK")
Signed-off-by: Artem Savkov <asavkov@redhat.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Reviewed-by: Yafang Shao <laoar.shao@gmail.com>
Link: https://lore.kernel.org/bpf/20220421094320.1563570-1-asavkov@redhat.com
Diffstat (limited to 'kernel/bpf/syscall.c')
0 files changed, 0 insertions, 0 deletions