commit | 9acea337ef570faa14f13232d1b2fa6615aaf569 | [log] [tgz] |
---|---|---|
author | Stanislav Fomichev <sdf@google.com> | Mon Jan 28 09:21:17 2019 -0800 |
committer | Daniel Borkmann <daniel@iogearbox.net> | Thu Jan 31 10:13:21 2019 +0100 |
tree | beab5ebbc6e9174d6c948912997de4d653ef6485 | |
parent | 8184d44c9a577a2f1842ed6cc844bfd4a9981d8e [diff] |
selftests/bpf: skip verifier tests for unsupported map types Use recently introduced bpf_probe_map_type() to skip tests in the test_verifier if map creation (create_map) fails. It's handled explicitly for each fixup, i.e. if bpf_create_map returns negative fd, we probe the kernel for the appropriate map support and skip the test is map type is not supported. Signed-off-by: Stanislav Fomichev <sdf@google.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>