]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Support sk_skb/stream_{parser, verdict} section names
authorAndrey Ignatov <rdna@fb.com>
Wed, 26 Sep 2018 22:24:55 +0000 (15:24 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 27 Sep 2018 19:14:59 +0000 (21:14 +0200)
commitbfc055380d0cc202c64bedf5b45563b4dea4cbd1
tree4d6fd3dad1e90426b735d30d277a6699a772c554
parenta4a10f51bdc39499284911268fad7f83b2c64631
libbpf: Support sk_skb/stream_{parser, verdict} section names

Add section names for BPF_SK_SKB_STREAM_PARSER and
BPF_SK_SKB_STREAM_VERDICT attach types to be able to identify them in
libbpf_attach_type_by_name.

"stream_parser" and "stream_verdict" are used instead of simple "parser"
and "verdict" just to avoid possible confusion in a place where attach
type is used alone (e.g. in bpftool's show sub-commands) since there is
another attach point that can be named as "verdict": BPF_SK_MSG_VERDICT.

Signed-off-by: Andrey Ignatov <rdna@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/lib/bpf/libbpf.c