libbpf: Add SEC name for xdp programs attached to device map
authorDavid Ahern <dsahern@kernel.org>
Fri, 29 May 2020 22:07:15 +0000 (16:07 -0600)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 1 Jun 2020 21:48:32 +0000 (14:48 -0700)
commit2778797037a658be71a6c55b54700bf58ba21eb7
tree78a6041e8cb731474142743d307ddb6d4e9ac72f
parent64b59025c15b244c0954cf52b24fbabfcf5ed8f6
libbpf: Add SEC name for xdp programs attached to device map

Support SEC("xdp_devmap*") as a short cut for loading the program with
type BPF_PROG_TYPE_XDP and expected attach type BPF_XDP_DEVMAP.

Signed-off-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Toke Høiland-Jørgensen <toke@redhat.com>
Link: https://lore.kernel.org/bpf/20200529220716.75383-5-dsahern@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/lib/bpf/libbpf.c