bpf_helper: fix map assert
BPFLOADER_T_VERSION is not defined (and thus 0) This was missed when BPFLOADER_*_VERSION was removed as no longer needed (for non mainline versions) due to not actually causing a compile error. Restore it. Android S kernels might not support writing into non-zero index of bpf map arrays (due to kernel bug). Test: TreeHugger Flag: EXEMPT mainline/noop Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: I834d4a9f897ea1fa16435d8df709df8eeb69e7e8
This commit is contained in:
parent
90474a8b72
commit
74ca650020
1 changed files with 1 additions and 1 deletions
|
|
@ -329,7 +329,7 @@ static int (*bpf_sk_storage_delete_unsafe) (const void* sk_storage,
|
|||
|
||||
#ifdef THIS_BPF_PROGRAM_IS_FOR_TEST_PURPOSES_ONLY
|
||||
#define BPF_MAP_ASSERT_OK(type, entries, mode)
|
||||
#elif BPFLOADER_MIN_VER >= BPFLOADER_T_VERSION
|
||||
#elif BPFLOADER_MIN_VER >= BPFLOADER_MAINLINE_T_VERSION
|
||||
#define BPF_MAP_ASSERT_OK(type, entries, mode)
|
||||
#else
|
||||
#define BPF_MAP_ASSERT_OK(type, entries, mode) \
|
||||
|
|
|
|||
Loading…
Reference in a new issue