NetBpfLoad: Relax 5.10 kernel requirement

5.4 still works, so allow it for now.

Change-Id: Iea2407e323d5a99495630f877a119259ec82b643
This commit is contained in:
Michael Bestas 2025-12-13 09:47:36 +02:00
commit 8e92e094e9

View file

@ -1634,8 +1634,7 @@ static int doLoad(char** argv, char * const envp[]) {
// 25Q4 bumps the kernel requirement up to 5.10 // 25Q4 bumps the kernel requirement up to 5.10
// see also: //system/netd/tests/kernel_test.cpp TestKernel510 // see also: //system/netd/tests/kernel_test.cpp TestKernel510
if (isAtLeast25Q4 && !isAtLeastKernelVersion(5, 10)) { if (isAtLeast25Q4 && !isAtLeastKernelVersion(5, 10)) {
ALOGE("Android 25Q4 requires kernel 5.10."); ALOGW("Android 25Q4 requires kernel 5.10.");
return 7;
} }
// Technically already required by U, but only enforce on V+ // Technically already required by U, but only enforce on V+