The rationale (IIRC) was that it would be easier for new users to get started using AF_XDP by providing everything that was needed by default.
Passing in XSK_LIBBPF_FLAGS__INHIBIT_PROG to the library will bypass loading the sample program, so a user application may still use the library with their own bpf program. I'll admit that the change likely makes it harder to simply modify the sample program for other uses, but that's not really the point of the samples. -- Jonathan On 26 Mar 2019, at 8:46, Maxim Mikityanskiy wrote: > Hi Magnus and all, > > https://patchwork.ozlabs.org/cover/1045921/ > > This series removes xdpsock_kern.c and replaces it by the bytecode > hardcoded in libbpf. I am wondering whether there is some real issue > with having the XDP program in a separate C file, just like before, > because this change made it far less convenient to modify the XDP > program. Could you give any comments? > > Thanks, > Max