android_kernel_sony_sdm845/tools/include
Repository files (latest commit first)
Filename Latest commit message Latest commit date
John Fastabend 543a6b0fd8 BACKPORT: bpf: convert sockmap field attach_bpf_fd2 to type
In the initial sockmap API we provided strparser and verdict programs
using a single attach command by extending the attach API with a the
attach_bpf_fd2 field.

However, if we add other programs in the future we will be adding a
field for every new possible type, attach_bpf_fd(3,4,..). This
seems a bit clumsy for an API. So lets push the programs using two
new type fields.

   BPF_SK_SKB_STREAM_PARSER
   BPF_SK_SKB_STREAM_VERDICT

This has the advantage of having a readable name and can easily be
extended in the future.

Updates to samples and sockmap included here also generalize tests
slightly to support upcoming patch for multiple map support.

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Fixes: 174a79ff9515 ("bpf: sockmap with sk redirect support")
Suggested-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sorayukii <sorayukii69@gmail.com>
2026-05-15 17:55:14 +07:00
..
asm perf bench: Copy kernel files needed to build mem{cpy,set} x86_64 benchmarks 2016-07-12 15:20:32 -03:00
asm-generic tools lib: Add for_each_clear_bit macro 2018-06-05 10:28:55 +02:00
linux BACKPORT: bpf: add various verifier test cases 2026-05-15 17:54:41 +07:00
tools tools: add more endian.h macros 2014-09-26 11:03:01 +02:00
uapi BACKPORT: bpf: convert sockmap field attach_bpf_fd2 to type 2026-05-15 17:55:14 +07:00