Files
linux/include/linux
Daniel Borkmann 5293efe62d bpf: add bpf_skb_change_tail helper
This work adds a bpf_skb_change_tail() helper for tc BPF programs. The
basic idea is to expand or shrink the skb in a controlled manner. The
eBPF program can then rewrite the rest via helpers like bpf_skb_store_bytes(),
bpf_lX_csum_replace() and others rather than passing a raw buffer for
writing here.

bpf_skb_change_tail() is really a slow path helper and intended for
replies with f.e. ICMP control messages. Concept is similar to other
helpers like bpf_skb_change_proto() helper to keep the helper without
protocol specifics and let the BPF program mangle the remaining parts.
A flags field has been added and is reserved for now should we extend
the helper in future.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-08-18 23:38:16 -07:00
..
2016-07-04 17:19:22 +05:30
2016-08-18 23:04:40 -07:00
2016-07-08 16:23:11 +02:00
2016-07-25 11:47:52 +01:00
2016-07-04 08:19:21 -07:00
2016-08-07 14:41:02 -06:00
2016-08-04 08:50:07 -04:00
2016-08-07 14:41:02 -06:00
2016-08-07 14:41:02 -06:00
2016-08-11 09:41:35 -06:00
2016-08-02 19:35:24 -04:00
2016-07-26 16:19:19 -07:00
2016-07-22 09:07:02 +02:00
2016-08-02 19:35:44 -04:00
2016-08-04 10:16:55 +09:30
2016-07-29 12:17:52 -07:00
2016-07-12 19:25:38 -07:00
2016-07-28 16:07:41 -07:00
2016-07-12 19:25:38 -07:00
2016-07-06 10:51:14 +01:00
2016-07-26 16:19:19 -07:00
2016-07-20 23:30:06 -04:00
2016-08-18 23:38:16 -07:00
2016-07-19 17:43:38 +03:00
2016-07-26 16:19:19 -07:00