kernel-fxtec-pro1x/tools/testing/selftests/net
Willem de Bruijn 615214ab78 selftests/net: relax cpu affinity requirement in msg_zerocopy test
[ Upstream commit 16f6458f2478b55e2b628797bc81a4455045c74e ]

The msg_zerocopy test pins the sender and receiver threads to separate
cores to reduce variance between runs.

But it hardcodes the cores and skips core 0, so it fails on machines
with the selected cores offline, or simply fewer cores.

The test mainly gives code coverage in automated runs. The throughput
of zerocopy ('-z') and non-zerocopy runs is logged for manual
inspection.

Continue even when sched_setaffinity fails. Just log to warn anyone
interpreting the data.

Fixes: 07b65c5b31 ("test: add msg_zerocopy test")
Reported-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Willem de Bruijn <willemb@google.com>
Acked-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-08-11 15:32:35 +02:00
..
forwarding
.gitignore
config
fib-onlink-tests.sh
fib_rule_tests.sh
fib_tests.sh
in_netns.sh
ip6_gre_headroom.sh
Makefile
msg_zerocopy.c selftests/net: relax cpu affinity requirement in msg_zerocopy test 2020-08-11 15:32:35 +02:00
msg_zerocopy.sh
netdevice.sh
pmtu.sh
psock_fanout.c
psock_lib.h
psock_snd.c
psock_snd.sh
psock_tpacket.c
reuseaddr_conflict.c
reuseport_bpf.c
reuseport_bpf_cpu.c
reuseport_bpf_numa.c
reuseport_dualstack.c
rtnetlink.sh
run_afpackettests
run_netsocktests
socket.c
tcp_inq.c
tcp_mmap.c
test_bpf.sh
tls.c
udpgso.c
udpgso.sh
udpgso_bench.sh
udpgso_bench_rx.c
udpgso_bench_tx.c