On Mon, Jul 20, 2020 at 09:33:58AM -0700, Yonghong Song wrote:
> Commit 5a2798ab32ba
> ("bpf: Add BTF_ID_LIST/BTF_ID/BTF_ID_UNUSED macros")
> implemented a mechanism to compute btf_ids at kernel build
> time which can simplify kernel implementation and reduce
> runtime overhead by removing in-kernel btf_id calculation.
>
> This patch set tried to use this mechanism to compute
> btf_ids for bpf_skc_to_*() helpers and for btf_id_or_null ctx
> arguments specified during bpf iterator registration.
> Please see individual patch for details.
>
> Changelogs:
> v1 -> v2:
> - v1 ([1]) is only for bpf_skc_to_*() helpers. This version
> expanded it to cover ctx btf_id_or_null arguments
> - abandoned the change of "extern u32 name[]" to
> "static u32 name[]" for BPF_ID_LIST local "name" definition.
> gcc 9 incurred a compilation error.
>
> [1]: https://lore.kernel.org/bpf/[email protected]/T
Applied, Thanks