On 5/27/20 4:02 AM, Toke Høiland-Jørgensen wrote: > David Ahern <dsah...@kernel.org> writes: > >> Support SEC("xdp_dm*") as a short cut for loading the program with >> type BPF_PROG_TYPE_XDP and expected attach type BPF_XDP_DEVMAP. > > You're not using this in the selftest; shouldn't you be? Also, the > prefix should be libbpf: not bpftool:, no? >
The selftest is exercising kernel APIs - what is allowed and what is not. Yes, the subject should be libbpf.