netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/2] bpf: Add ipip6 and ip6ip decap support for bpf_skb_adjust_room()
@ 2023-01-06  3:55 Ziyang Xuan
  2023-01-06  3:55 ` [PATCH bpf-next 1/2] " Ziyang Xuan
  2023-01-06  3:55 ` [PATCH bpf-next 2/2] selftests/bpf: add ipip6 and ip6ip decap to test_tc_tunnel Ziyang Xuan
  0 siblings, 2 replies; 10+ messages in thread
From: Ziyang Xuan @ 2023-01-06  3:55 UTC (permalink / raw)
  To: ast, daniel, andrii, davem, edumazet, kuba, pabeni, bpf, netdev,
	martin.lau, song, yhs, john.fastabend, kpsingh, sdf, haoluo,
	jolsa

Add ipip6 and ip6ip decap support for bpf_skb_adjust_room().
Main use case is for using cls_bpf on ingress hook to decapsulate
IPv4 over IPv6 and IPv6 over IPv4 tunnel packets.

And add ipip6 and ip6ip decap testcases to verify that
bpf_skb_adjust_room() correctly decapsulate ipip6 and ip6ip
tunnel packets.

Ziyang Xuan (2):
  bpf: Add ipip6 and ip6ip decap support for bpf_skb_adjust_room()
  selftests/bpf: add ipip6 and ip6ip decap to test_tc_tunnel

 net/core/filter.c                             | 34 +++++++++-
 .../selftests/bpf/progs/test_tc_tunnel.c      | 64 +++++++++++++++++++
 tools/testing/selftests/bpf/test_tc_tunnel.sh | 15 +++--
 3 files changed, 105 insertions(+), 8 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2023-01-11  2:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-06  3:55 [PATCH bpf-next 0/2] bpf: Add ipip6 and ip6ip decap support for bpf_skb_adjust_room() Ziyang Xuan
2023-01-06  3:55 ` [PATCH bpf-next 1/2] " Ziyang Xuan
2023-01-06 19:55   ` sdf
2023-01-08 19:16     ` Willem de Bruijn
2023-01-09  9:19       ` Ziyang Xuan (William)
2023-01-09 13:32         ` Willem de Bruijn
2023-01-10 13:07           ` Ziyang Xuan (William)
2023-01-10 14:09             ` Willem de Bruijn
2023-01-11  2:37               ` Ziyang Xuan (William)
2023-01-06  3:55 ` [PATCH bpf-next 2/2] selftests/bpf: add ipip6 and ip6ip decap to test_tc_tunnel Ziyang Xuan

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).