android_packages_modules_Co.../bpf/progs
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Motomu Utsumi 937c57a2f8 tcpAccECN: Move static const variables to file scope
The symbol name of a static const variable defined within a function
includes a '.' and old kernel BTF ferifier rejects it.
"""
08-29 15:11:27.825     0     0 W         : c3   1287 NetBpfLoad: [377] STRUCT _rodata size=64 vlen=3
08-29 15:11:27.825     0     0 W         : c3   1287 NetBpfLoad: 	tcp_option type_id=343 bits_offset=0
08-29 15:11:27.825     0     0 W         : c3   1287 NetBpfLoad: 	schedcls_ingress_accecn_eth_.new_cnt type_id=346 bits_offset=128 Invalid name
"""

This verifier limitation was relaxed in later kernels by
https://lore.kernel.org/bpf/20230615145607.3469985-1-revest@chromium.org/

Test: Boot on 4.19 kernel && logcat
Bug: 440448408
Bug: 442710894
Flag: EXEMPT tcpAccECN program is not used
Change-Id: If3c993bb6abb1ff8688932d682d909d335f84ca2
2025-09-04 04:50:13 -07:00
..
include NetBpfLoad: Add default map flag for BPF_MAP_TYPE_LRU_HASH 2025-08-25 12:55:10 +09:00
Android.bp bpf: build tcpAccECN into netd.o 2025-08-26 09:59:20 -07:00
bpf_net_helpers.h bpf_{,net_}helpers: change return from 'int' to 'long' 2025-08-04 18:00:47 -07:00
clat_mark.h bpf: git mv bpf_progs bpf/progs 2024-08-20 19:50:57 -07:00
clatd.c bpf: remove KVER_ prefix from k{min,max}_ver macro arguments 2025-08-05 19:18:04 -07:00
clatd.h bpf: git mv bpf_progs bpf/progs 2024-08-20 19:50:57 -07:00
dscpPolicy.c bpf: remove KVER_ prefix from k{min,max}_ver macro arguments 2025-08-05 19:18:04 -07:00
dscpPolicy.h dscpPolicy: more bpf verifier optimizations 2024-09-05 02:40:55 +00:00
netd.c bpf: build tcpAccECN into netd.o 2025-08-26 09:59:20 -07:00
netd.h bpf: build tcpAccECN into netd.o 2025-08-26 09:59:20 -07:00
offload.c bpf: remove KVER_ prefix from k{min,max}_ver macro arguments 2025-08-05 19:18:04 -07:00
offload.h bpf/progs/offload.c: improve ipv6 overhead calc & pmtu checks 2025-06-02 07:16:22 -07:00
tcpAccECN.c tcpAccECN: Move static const variables to file scope 2025-09-04 04:50:13 -07:00
tcpAccECN.h bpf: build tcpAccECN into netd.o 2025-08-26 09:59:20 -07:00
test.c bpf: remove / from DEFAULT_BPF_PIN_SUBDIR 2025-07-30 15:07:54 -07:00