libbpf: Adjust SEC short cut for expected attach type BPF_XDP_DEVMAP
authorJesper Dangaard Brouer <brouer@redhat.com>
Thu, 25 Jun 2020 14:26:58 +0000 (16:26 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 25 Jun 2020 20:36:00 +0000 (22:36 +0200)
commit7a64135f3229a808067e4bd29be15fe6856a9ae6
tree7c326d7d7b64b437c98820fd3dc8858a7278039e
parenta9b59159d338d414acaa8e2f569d129d51c76452
libbpf: Adjust SEC short cut for expected attach type BPF_XDP_DEVMAP

Adjust the SEC("xdp_devmap/") prog type prefix to contain a
slash "/" for expected attach type BPF_XDP_DEVMAP.  This is consistent
with other prog types like tracing.

Fixes: 2778797037a6 ("libbpf: Add SEC name for xdp programs attached to device map")
Suggested-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/159309521882.821855.6873145686353617509.stgit@firesoul
tools/lib/bpf/libbpf.c
tools/testing/selftests/bpf/progs/test_xdp_with_devmap_helpers.c