Files
kernel_google_wahoo/include/uapi/linux
Daniel Borkmann a070594bc5 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>
Signed-off-by: Chatur27 <jasonbright2709@gmail.com>
2022-03-04 20:16:40 +01:00
..
2015-10-13 17:42:34 +02:00
2016-03-22 11:04:51 -07:00
2015-10-05 03:16:46 -07:00
2017-12-05 11:22:51 +01:00
2022-03-04 20:16:40 +01:00
2015-08-25 14:41:50 -05:00
2016-03-22 11:10:20 -07:00
2018-04-12 09:58:05 -07:00
2016-03-22 11:07:51 -07:00
2018-04-29 07:50:02 +02:00
2015-08-03 17:30:00 -07:00
2016-04-13 11:12:20 -07:00
2015-07-21 10:39:05 -07:00
2016-03-22 11:08:56 -07:00
2016-03-22 11:07:51 -07:00
2017-05-22 23:19:33 -07:00
2015-08-27 19:44:53 -04:00
2015-07-20 14:58:46 -04:00
2017-05-22 23:19:33 -07:00
2015-09-17 21:09:07 -07:00
2016-03-23 19:57:25 -07:00
2016-03-23 19:57:25 -07:00
2016-08-20 19:04:33 -07:00
2016-03-22 11:09:38 -07:00
2016-04-22 11:57:49 -07:00
2016-03-22 11:04:51 -07:00
2016-03-22 11:04:51 -07:00
2018-02-21 15:40:47 +00:00
2016-03-22 11:08:58 -07:00
2015-06-11 23:37:37 +02:00
2015-10-27 18:55:31 -07:00
2015-12-04 08:38:42 -07:00
2015-10-16 10:44:02 +02:00