linux-mainline/tools/testing/selftests/net
Ido Schimmel 289fb44df4 selftests: forwarding: Fix test for different devices
When running the test on the Spectrum ASIC the generated packets are
counted on the ingress filter and injected back to the pipeline because
of the 'pass' action. The router block then drops the packets due to
checksum error, as the test generates packets with zero checksum.

When running the test on an emulator that is not as strict about
checksum errors the test fails since packets are counted twice. Once by
the emulated ASIC on its ingress filter and again by the kernel as the
emulator does not perform checksum validation and allows the packets to
be trapped by a matching host route.

Fix this by changing the action to 'drop', which will prevent the packet
from continuing further in the pipeline to the router block.

For veth pairs this change is essentially a NOP given packets are only
processed once (by the kernel).

Fixes: a0b61f3d8e ("selftests: forwarding: vxlan_bridge_1d: Add an ECN decap test")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-01-08 16:53:54 -05:00
..
forwarding selftests: forwarding: Fix test for different devices 2019-01-08 16:53:54 -05:00
.gitignore selftests: net: test that listening sockets match on address properly 2018-12-14 15:55:20 -08:00
config selftests: explicitly require kernel features needed by udpgro tests 2018-11-22 11:35:28 -08:00
fib_rule_tests.sh
fib_tests.sh
fib-onlink-tests.sh
in_netns.sh
ip6_gre_headroom.sh
ip_defrag.c selftests: net: fix/improve ip_defrag selftest 2019-01-04 13:38:39 -08:00
ip_defrag.sh selftests: net: fix/improve ip_defrag selftest 2019-01-04 13:38:39 -08:00
Makefile Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2018-12-20 11:53:36 -08:00
msg_zerocopy.c selftests: extend zerocopy tests to udp 2018-12-03 15:58:32 -08:00
msg_zerocopy.sh selftests: extend zerocopy tests to udp 2018-12-03 15:58:32 -08:00
netdevice.sh
pmtu.sh selftests: pmtu: Introduce FoU and GUE PMTU exceptions tests 2018-11-08 17:13:08 -08:00
psock_fanout.c
psock_lib.h
psock_snd.c
psock_snd.sh
psock_tpacket.c
reuseaddr_conflict.c
reuseport_addr_any.c selftests: net: reuseport_addr_any: silence clang warning 2018-12-20 19:26:52 -08:00
reuseport_addr_any.sh selftests: net: test that listening sockets match on address properly 2018-12-14 15:55:20 -08:00
reuseport_bpf_cpu.c
reuseport_bpf_numa.c
reuseport_bpf.c
reuseport_dualstack.c
rtnetlink.sh selftests: rtnetlink: Add a test case for multipath route get 2018-12-20 16:42:39 -08:00
run_afpackettests selftests/net: add txring_overwrite 2018-11-24 18:22:21 -08:00
run_netsocktests
socket.c
tcp_inq.c
tcp_mmap.c
test_bpf.sh
test_vxlan_fdb_changelink.sh selftests: net: Add test_vxlan_fdb_changelink.sh 2018-12-18 21:18:26 -08:00
test_vxlan_under_vrf.sh test/net: Add script for VXLAN underlay in a VRF 2018-12-03 14:16:01 -08:00
tls.c
txring_overwrite.c selftests/net: add txring_overwrite 2018-11-24 18:22:21 -08:00
udpgro_bench.sh selftests: add functionals test for UDP GRO 2018-11-07 16:23:05 -08:00
udpgro.sh selftests: add explicit test for multiple concurrent GRO sockets 2018-11-16 23:03:20 -08:00
udpgso_bench_rx.c selftests: add functionals test for UDP GRO 2018-11-07 16:23:05 -08:00
udpgso_bench_tx.c selftests: add functionals test for UDP GRO 2018-11-07 16:23:05 -08:00
udpgso_bench.sh selftests: extend zerocopy tests to udp 2018-12-03 15:58:32 -08:00
udpgso.c
udpgso.sh
xfrm_policy.sh xfrm: policy: fix netlink/pf_key policy lookups 2018-11-15 18:09:32 +01:00