From: Willem de Bruijn <will...@google.com> Expand the tc tunnel encap support with protocols that convert the network layer protocol, such as 6in4. This is analogous to existing support in bpf_skb_proto_6_to_4.
Patch 1 implements the straightforward logic Patch 2 tests it with a 6in4 tunnel Changes v1->v2 - improve documentation in test Willem de Bruijn (2): bpf: update skb->protocol in bpf_skb_net_grow selftests/bpf: expand test_tc_tunnel with SIT encap net/core/filter.c | 8 +++ tools/testing/selftests/bpf/config | 1 + .../selftests/bpf/progs/test_tc_tunnel.c | 64 +++++++++++++++++-- tools/testing/selftests/bpf/test_tc_tunnel.sh | 20 +++++- 4 files changed, 88 insertions(+), 5 deletions(-) -- 2.21.0.593.g511ec345e18-goog