RE: [External] : Re: [PATCH] net/tap: Modified TAP BPF program as per the new Kernel-version upgrade requirements.

2024-01-06 Thread Madhuker Mythri
Hi Stephen, The new Kernel expects the BPF maps in BTF format: https://www.kernel.org/doc/html/v5.4/bpf/btf.html. So, we need to compile with "-g" option as follows: == clang -O2 -target bpf -c tap_bpf_program.c -g -o tap_bpf_program.o =

Re: [External] : Re: [PATCH] net/tap: Modified TAP BPF program as per the new Kernel-version upgrade requirements.

2024-01-06 Thread Stephen Hemminger
On Sat, 6 Jan 2024 10:23:57 + Madhuker Mythri wrote: > Hi Stephen, > > The new Kernel expects the BPF maps in BTF format: > https://www.kernel.org/doc/html/v5.4/bpf/btf.html. > So, we need to compile with "-g" option as follows: > == > clang -O2 -target bpf -c ta

Re: [External] : Re: [PATCH] net/tap: Modified TAP BPF program as per the new Kernel-version upgrade requirements.

2024-01-06 Thread Stephen Hemminger
On Sat, 6 Jan 2024 10:23:57 + Madhuker Mythri wrote: > Hi Stephen, > > The new Kernel expects the BPF maps in BTF format: > https://www.kernel.org/doc/html/v5.4/bpf/btf.html. > So, we need to compile with "-g" option as follows: > == > clang -O2 -target bpf -c ta