Re: [PATCHv2 net 1/2] selftest/bpf: add missed ip6ip6 test back

2020-11-09 Thread Martin KaFai Lau
On Mon, Nov 09, 2020 at 11:00:15AM +0800, Hangbin Liu wrote: > On Fri, Nov 06, 2020 at 06:15:44PM -0800, Martin KaFai Lau wrote: > > > - if (iph->nexthdr == 58 /* NEXTHDR_ICMP */) { > > Same here. Can this check be kept? > > Hi Martin, > > I'm OK to keep the checking, then what about _ipip6_set_t

Re: [PATCHv2 net 1/2] selftest/bpf: add missed ip6ip6 test back

2020-11-08 Thread Hangbin Liu
On Fri, Nov 06, 2020 at 06:15:44PM -0800, Martin KaFai Lau wrote: > > - if (iph->nexthdr == 58 /* NEXTHDR_ICMP */) { > Same here. Can this check be kept? Hi Martin, I'm OK to keep the checking, then what about _ipip6_set_tunnel()? It also doesn't have the ICMP checking. Thanks Hangbin

Re: [PATCHv2 net 1/2] selftest/bpf: add missed ip6ip6 test back

2020-11-06 Thread Martin KaFai Lau
On Fri, Nov 06, 2020 at 05:01:16PM +0800, Hangbin Liu wrote: > In comment 173ca26e9b51 ("samples/bpf: add comprehensive ipip, ipip6, > ip6ip6 test") we added ip6ip6 test for bpf tunnel testing. But in commit > 933a741e3b82 ("selftests/bpf: bpf tunnel test.") when we moved it to > the current folder

[PATCHv2 net 1/2] selftest/bpf: add missed ip6ip6 test back

2020-11-06 Thread Hangbin Liu
In comment 173ca26e9b51 ("samples/bpf: add comprehensive ipip, ipip6, ip6ip6 test") we added ip6ip6 test for bpf tunnel testing. But in commit 933a741e3b82 ("selftests/bpf: bpf tunnel test.") when we moved it to the current folder, we didn't add it. This patch add the ip6ip6 test back to bpf tunne