android_packages_modules_Co.../staticlibs/native/bpf_headers/include/bpf
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Maciej Żenczykowski 11141da623 NetBpfLoad: enable mainline on T+
Note:
   2 == BPFLOADER_S_VERSION
  19 == BPFLOADER_T_VERSION
  25 == BPFLOADER_OBJ_AT_VER_VERSION
  33 == BPFLOADER_IGNORED_ON_VERSION
  37 == BPFLOADER_U_VERSION [*]
  41 == BPFLOADER_V_VERSION [**]
and currently we have:
  42 == BPFLOADER_MAINLINE_VERSION
  43 == BPFLOADER_MAINLINE_T_VERSION
  44 == BPFLOADER_MAINLINE_U_VERSION
  45 == BPFLOADER_MAINLINE_V_VERSION

[*] udc-dev/udc-release are actually 38, as 37 was some earlier
    udc beta2 (2.1 ifirc), and beta3+ switched to 38

[**] 24Q{1,2}-release (ie. U QPR2+) are technically actually 41,
     but their platform bpfloader no longer even looks in /apex/com.android.tethering/etc/bpf/...
     so it doesn't really matter (although 24Q1's platform
     netbpfload still does, however that is obsoleted by
     this change)

Thus we need to (as minimum for NetBpfLoad):
  BPFLOADER_T_VERSION -> BPFLOADER_MAINLINE_T_VERSION
  BPFLOADER_IGNORED_ON_VERSION -> BPFLOADER_MAINLINE_U_VERSION
to cause these to load appropriately from mainline.

One would perhaps also expect (as minimum for NetBpfLoad):
  BPFLOADER_OBJ_AT_VERSION -> BPFLOADER_MAINLINE_U_VERSION
but (as maximum for platform bpfloader):
  BPFLOADER_OBJ_AT_VERSION -> BPFLOADER_MAINLINE_U_VERSION

However, since the goal is actually for those to load via mainline on T+,
(with the 'old' version of the .o's loading on S via platform bpfloader)
thus one actually needs (as minimum for NetBpfLoad):
  BPFLOADER_OBJ_AT_VERSION -> BPFLOADER_MAINLINE_T_VERSION
and (as maximum for platform bpfloader):
  BPFLOADER_OBJ_AT_VERSION -> BPFLOADER_T_VERSION

Test: TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I4b688692ffca0db7ead20cefd9e7e892ca92c70a
2024-03-19 21:33:55 +00:00
..
bpf_helpers.h NetBpfLoad: enable mainline on T+ 2024-03-19 21:33:55 +00:00
bpf_map_def.h Eliminate spurious COMPILE_FOR_BPFLOADER_VERSION macro 2024-03-15 18:14:16 +00:00
BpfClassic.h BpfClassic.h - add missing commas 2023-10-06 13:50:13 -07:00
BpfMap.h Add missing libc++ includes 2024-01-09 11:01:22 -08:00
BpfRingbuf.h BpfRingBuf.h - implement wait() 2023-11-11 00:59:42 +00:00
BpfUtils.h bpf_headers: rename KernelVersion.h to KernelUtils.h 2023-05-17 11:43:02 -07:00
KernelUtils.h KernelUtils.h - better static assert messages for impossible conditions 2023-05-25 12:30:52 +00:00
WaitForProgsLoaded.h Rename bpf_map_utils to bpf_headers 2021-12-21 16:16:20 +08:00