]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Recognize SK_REUSEPORT programs from section name
authorJakub Sitnicki <jakub@cloudflare.com>
Thu, 12 Dec 2019 10:22:50 +0000 (11:22 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 13 Dec 2019 20:38:00 +0000 (12:38 -0800)
commite59179e5a83f2f86ffb597e917079f0e371aff3c
tree65332edc16f817e021a858ae12b5015259a9c52c
parent07b2db154ea5b114810537acb6fbf66533f0bdb5
libbpf: Recognize SK_REUSEPORT programs from section name

Allow loading BPF object files that contain SK_REUSEPORT programs without
having to manually set the program type before load if the the section name
is set to "sk_reuseport".

Makes user-space code needed to load SK_REUSEPORT BPF program more concise.

Signed-off-by: Jakub Sitnicki <jakub@cloudflare.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20191212102259.418536-2-jakub@cloudflare.com
tools/lib/bpf/libbpf.c