Re: [PATCH bpf-next v2 2/2] selftests/bpf: expand test_tc_tunnel with SIT encap

2019-04-23 Thread Yonghong Song
On 4/23/19 11:43 AM, Willem de Bruijn wrote: > From: Willem de Bruijn > > So far, all BPF tc tunnel testcases encapsulate in the same network > protocol. Add an encap testcase that requires updating skb->protocol. > > The 6in4 tunnel encapsulates an IPv6 packet inside an IPv4 tunnel. > Verify

[PATCH bpf-next v2 2/2] selftests/bpf: expand test_tc_tunnel with SIT encap

2019-04-23 Thread Willem de Bruijn
From: Willem de Bruijn So far, all BPF tc tunnel testcases encapsulate in the same network protocol. Add an encap testcase that requires updating skb->protocol. The 6in4 tunnel encapsulates an IPv6 packet inside an IPv4 tunnel. Verify that bpf_skb_net_grow correctly updates skb->protocol to sele