aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/reuseport_bpf_cpu.c
diff options
context:
space:
mode:
authorPetr Machata <petrm@mellanox.com>2019-01-31 22:35:27 +0000
committerDavid S. Miller <davem@davemloft.net>2019-02-01 15:26:37 -0800
commit084fafe9efe4bcf55aa4517aa40f28dad1f0988b (patch)
tree9c3eebdfa8d12a2ff51712ce785550a49043c50f /tools/testing/selftests/net/reuseport_bpf_cpu.c
parentselftests: forwarding: mirror_gre_bridge_1q_lag: Ignore ARP (diff)
downloadlinux-dev-084fafe9efe4bcf55aa4517aa40f28dad1f0988b.tar.xz
linux-dev-084fafe9efe4bcf55aa4517aa40f28dad1f0988b.zip
selftests: forwarding: mirror_gre_flower: Fix test result handling
The global variable RET needs to be initialized before each call to log_test. This test case sets it once before running the tests, but then calls log_tests for every individual test. Thus a failure in one of the tests causes spurious failures in follow-up tests as well. Fix by moving the initialization of RET from test_all() to full_test_span_gre_dir_acl(), a function that implements the test. Signed-off-by: Petr Machata <petrm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/net/reuseport_bpf_cpu.c')
0 files changed, 0 insertions, 0 deletions