netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf-next v2 0/2] update skb->protocol in bpf_skb_net_grow
@ 2019-04-23 18:43 Willem de Bruijn
  2019-04-23 18:43 ` [PATCH bpf-next v2 1/2] bpf: " Willem de Bruijn
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Willem de Bruijn @ 2019-04-23 18:43 UTC (permalink / raw)
  To: netdev; +Cc: ast, daniel, alan.maguire, yhs, Willem de Bruijn

From: Willem de Bruijn <willemb@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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-04-23 23:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-23 18:43 [PATCH bpf-next v2 0/2] update skb->protocol in bpf_skb_net_grow Willem de Bruijn
2019-04-23 18:43 ` [PATCH bpf-next v2 1/2] bpf: " Willem de Bruijn
2019-04-23 18:43 ` [PATCH bpf-next v2 2/2] selftests/bpf: expand test_tc_tunnel with SIT encap Willem de Bruijn
2019-04-23 21:10   ` Yonghong Song
2019-04-23 23:35 ` [PATCH bpf-next v2 0/2] update skb->protocol in bpf_skb_net_grow Daniel Borkmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).