Files
kernel_google_wahoo/include/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
..
2018-04-08 11:51:57 +02:00
2017-05-22 23:19:33 -07:00
2017-07-15 11:57:44 +02:00
2018-04-12 09:58:05 -07:00
2021-02-03 23:16:16 +01:00
2021-12-14 10:35:51 +01:00
2017-01-23 11:03:24 +05:30
2017-05-04 16:43:06 +00:00
2021-11-26 11:58:33 +01:00
2020-08-26 07:32:20 -07:00
2017-08-24 17:02:36 -07:00
2019-04-03 10:24:12 +02:00
2019-01-11 07:53:18 +09:00
2020-04-02 19:02:39 +02:00
2022-03-04 20:16:40 +01:00
2016-11-08 10:23:45 -08:00
2021-03-07 11:37:45 +01:00
2018-11-21 09:27:36 +01:00
2019-12-21 11:36:50 +01:00
2020-12-14 00:49:15 -07:00
2020-09-23 21:48:05 -07:00
2020-04-02 19:02:39 +02:00
2021-12-14 10:03:49 +01:00
2018-08-23 12:00:19 -07:00
2018-08-23 12:00:19 -07:00