]> git.baikalelectronics.ru Git - kernel.git/commit
net: bpf: Allow TC programs to call BPF_FUNC_skb_change_head
authorLorenzo Colitti <lorenzo@google.com>
Mon, 20 Apr 2020 18:34:08 +0000 (11:34 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Dec 2022 11:24:15 +0000 (12:24 +0100)
commitdc2193d09487331acf473848baa91a77d3d14164
treeee50ab0309b55f1b76affe308cc18ab9d178d1d7
parentcfdc6e035e6a84ce054ad5a744819f111f651d13
net: bpf: Allow TC programs to call BPF_FUNC_skb_change_head

commit 36bf5c22422a518f0e95318ad0e8f6e167947cab upstream.

This allows TC eBPF programs to modify and forward (redirect) packets
from interfaces without ethernet headers (for example cellular)
to interfaces with (for example ethernet/wifi).

The lack of this appears to simply be an oversight.

Tested:
  in active use in Android R on 4.14+ devices for ipv6
  cellular to wifi tethering offload.

Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Cc: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/core/filter.c