Re: [PATCH bpf-next] selftests: bpf: test_lwt_ip_encap: add negative tests.

2019-02-16 Thread Alexei Starovoitov
On Sat, Feb 16, 2019 at 04:13:12PM -0700, David Ahern wrote: > On 2/15/19 4:49 PM, Peter Oskolkov wrote: > > @@ -178,7 +205,7 @@ set -e # exit on error > > # configure IPv4 GRE device in NS3, and a route to it via the "bottom" > > route > > ip -netns ${NS3} tunnel add gre_dev mode gre rem

Re: [PATCH bpf-next] selftests: bpf: test_lwt_ip_encap: add negative tests.

2019-02-16 Thread David Ahern
On 2/15/19 4:49 PM, Peter Oskolkov wrote: > @@ -178,7 +205,7 @@ set -e # exit on error > # configure IPv4 GRE device in NS3, and a route to it via the "bottom" > route > ip -netns ${NS3} tunnel add gre_dev mode gre remote ${IPv4_1} local > ${IPv4_GRE} ttl 255 > ip -netns ${NS3}

[PATCH bpf-next] selftests: bpf: test_lwt_ip_encap: add negative tests.

2019-02-15 Thread Peter Oskolkov
As requested by David Ahern: - add negative tests (no routes, explicitly unreachable destinations) to exercize error handling code paths; - do not exit on test failures, but instead print a summary of passed/failed tests at the end. Future patches will add TSO and VRF tests. Signed-off-by: P