[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190422145059.125561-1-willemdebruijn.kernel@gmail.com>
Date: Mon, 22 Apr 2019 10:50:57 -0400
From: Willem de Bruijn <willemdebruijn.kernel@...il.com>
To: netdev@...r.kernel.org
Cc: ast@...nel.org, daniel@...earbox.net, alan.maguire@...cle.com,
Willem de Bruijn <willemb@...gle.com>
Subject: [PATCH bpf-next 0/2] update skb->protocol in bpf_skb_net_grow
From: Willem de Bruijn <willemb@...gle.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
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 | 55 +++++++++++++++++--
tools/testing/selftests/bpf/test_tc_tunnel.sh | 20 ++++++-
4 files changed, 79 insertions(+), 5 deletions(-)
--
2.21.0.593.g511ec345e18-goog
Powered by blists - more mailing lists