remove unused enum value BpfLevel::NONE
Test: builds, atest, TreeHugger
Bug: 167500195
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Ic378d0e5a579abf44985a3353a21885796c297bb
diff --git a/libbpf_android/include/bpf/BpfUtils.h b/libbpf_android/include/bpf/BpfUtils.h
index 9a74fe7..50f2090 100644
--- a/libbpf_android/include/bpf/BpfUtils.h
+++ b/libbpf_android/include/bpf/BpfUtils.h
@@ -31,9 +31,6 @@
namespace bpf {
enum class BpfLevel {
- // Devices shipped before P or kernel version is lower than 4.9 do not
- // have eBPF enabled.
- NONE,
// Devices shipped in P with android 4.9 kernel only have the basic eBPF
// functionalities such as xt_bpf and cgroup skb filter.
BASIC_4_9,
@@ -57,7 +54,7 @@
BpfLevel getBpfSupportLevel();
inline bool isBpfSupported() {
- return getBpfSupportLevel() != BpfLevel::NONE;
+ return true;
}
#define SKIP_IF_BPF_NOT_SUPPORTED \