You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove deprecated internal API ebpf_allocate() (#4681)
* Remove deprecated ebpf_allocate() API
Replace all calls to deprecated ebpf_allocate() with ebpf_allocate_with_tag()
using EBPF_POOL_TAG_DEFAULT. This cleanup removes the deprecated internal API
as requested in issue #4674.
Changes:
- Replaced ebpf_allocate(size) calls with ebpf_allocate_with_tag(size, EBPF_POOL_TAG_DEFAULT)
- Removed deprecated ebpf_allocate() function definition from ebpf_shared_framework.h
- Updated all callers across the codebase to use the non-deprecated API
Fixes#4674
* Fix syntax errors in ebpf_allocate_with_tag calls
- Fix parentheses placement in macro definitions for malloc/calloc
- Fix parameter separation in function calls
- Ensure all calls use proper syntax: ebpf_allocate_with_tag(size, tag)
Fixes compilation errors in CI builds.
* Fix comprehensive syntax errors in ebpf_allocate_with_tag calls
Correct parentheses placement across 24 files where sizeof() parameters
were incorrectly grouped with EBPF_POOL_TAG_DEFAULT.
Changes:
- Fixed ~60 function calls with wrong syntax: sizeof(type, tag) -> sizeof(type), tag
- Corrected macro definitions for malloc/calloc in ubpf files
- Fixed multiplication order in array allocations
- Resolved all CI compilation errors from original API migration
All ebpf_allocate_with_tag calls now use proper two-parameter syntax.
0 commit comments