linux_dsm_epyc7002/tools/include/uapi/linux
John Fastabend 34f79502bb bpf: avoid preempt enable/disable in sockmap using tcp_skb_cb region
SK_SKB BPF programs are run from the socket/tcp context but early in
the stack before much of the TCP metadata is needed in tcp_skb_cb. So
we can use some unused fields to place BPF metadata needed for SK_SKB
programs when implementing the redirect function.

This allows us to drop the preempt disable logic. It does however
require an API change so sk_redirect_map() has been updated to
additionally provide ctx_ptr to skb. Note, we do however continue to
disable/enable preemption around actual BPF program running to account
for map updates.

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-10-20 13:01:29 +01:00
..
bpf_common.h tools lib bpf: Copy bpf.h and bpf_common.h from the kernel 2016-07-12 15:20:32 -03:00
bpf_perf_event.h selftests/bpf: fix broken build 2017-03-12 23:48:41 -07:00
bpf.h bpf: avoid preempt enable/disable in sockmap using tcp_skb_cb region 2017-10-20 13:01:29 +01:00
fcntl.h tools: Update include/uapi/linux/fcntl.h copy from the kernel 2017-07-18 23:13:50 -03:00
hw_breakpoint.h hw_breakpoint: Allow watchpoint of length 3,5,6 and 7 2016-11-18 17:23:17 +00:00
kvm.h tools include: Sync kernel ABI headers with tooling headers 2017-09-25 10:39:44 -03:00
mman.h tools include: Sync kernel ABI headers with tooling headers 2017-09-25 10:39:44 -03:00
perf_event.h perf tools: Support new sample type for physical address 2017-09-01 14:46:00 -03:00
sched.h tools include uapi: Grab a copy of linux/sched.h 2017-07-20 11:02:51 -03:00
stat.h tools/include: Sync kernel ABI headers with tooling headers 2017-05-24 09:00:21 +02:00
vhost.h tools include uapi: Grab a copy of linux/vhost.h 2017-08-01 13:04:56 -03:00