bpf is required for all devices running Android S

Test: builds, atest, TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Ie3f1146f71f75b982ffc4cd4176c5624efb6a63e
This commit is contained in:
Maciej Żenczykowski 2021-01-14 23:36:49 -08:00
parent b8163155e3
commit f7a0a39d05

View file

@ -82,8 +82,6 @@ int loadAllElfObjects(const char* progDir) {
}
int main() {
if (!android::bpf::isBpfSupported()) return 0;
// Load all ELF objects, create programs and maps, and pin them
for (const auto dir : {BPF_PROG_PATH_MAINLINE_TETHERING, BPF_PROG_PATH_SYSTEM}) {
if (loadAllElfObjects(dir) != 0) {