Re: [PATCH v2 1/5] bpf: name the enum for BPF_FUNC_skb_adjust_room flags
From: Martin KaFai Lau
Date: Tue Mar 24 2026 - 13:36:40 EST
On 3/18/26 6:42 AM, Nick Hudson wrote:
The existing anonymous enum for BPF_FUNC_skb_adjust_room flags is
named to enum bpf_adj_room_flags to enable CO-RE (Compile Once -
Run Everywhere) lookups in BPF programs.
It would be useful to demonstrate the intended CO-RE usage in a selftest. I suspect it is bpf_core_enum_value_exists().
There are existing tests in test_tc_tunnel.c for the earlier BPF_F_ADJ_ROOM_* flag additions. Please add similar tests for the new flags introduced in this series.