]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2b1c0b40ec774119655aa5260416e58260614671
tree7c326d7d7b64b437c98820fd3dc8858a7278039e
parent238ec08f7d711cf4e9e799ae97b9649baf6e7985
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: 741ac5eca0ec ("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