twx-linux/include
John Fastabend 464bc0fd62 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>
2017-08-28 11:13:21 -07:00
..
acpi
asm-generic mm: fix MADV_[FREE|DONTNEED] TLB flush miss problem 2017-08-10 15:54:07 -07:00
clocksource
crypto
drm
dt-bindings
keys
kvm
linux bpf: convert sockmap field attach_bpf_fd2 to type 2017-08-28 11:13:21 -07:00
math-emu
media
memory
misc
net net_sched: kill u32_node pointer in Qdisc 2017-08-25 17:19:10 -07:00
pcmcia
ras
rdma
scsi
soc
sound
target iscsi-target: Fix iscsi_np reset hung task during parallel delete 2017-08-06 14:41:41 -07:00
trace xdp: get tracepoints xdp_exception and xdp_redirect in sync 2017-08-24 11:59:37 -07:00
uapi bpf: convert sockmap field attach_bpf_fd2 to type 2017-08-28 11:13:21 -07:00
video
xen