]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3835e1daa7b4f91cd166defbc8e38414543fbcdb
tree78a6041e8cb731474142743d307ddb6d4e9ac72f
parent7e7c75174e973874e06a714c81fe97da86943c7f
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