Re: [PATCH bpf-next] samples: bpf: avoid name collision with kernel enum values
From: Toke Høiland-Jørgensen <hidden>
Date: 2021-09-27 12:37:37
From: Toke Høiland-Jørgensen <hidden>
Date: 2021-09-27 12:37:37
Kumar Kartikeya Dwivedi [off-list ref] writes:
In xdp_redirect_map_multi.bpf.c, on newer kernels samples compilation fails when vmlinux.h is generated from a kernel supporting broadcast for devmap. Hence, avoid naming collisions to prevent build failure.
Hmm, shouldn't the sample just be getting the value from the kernel in the first place instead of re-defining it? -Toke