]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: fix poll error in udpgro.sh
authorPaolo Abeni <pabeni@redhat.com>
Wed, 9 Dec 2020 11:21:13 +0000 (12:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Dec 2020 21:22:19 +0000 (13:22 -0800)
commit462597671a0af732d2f86dc08a3f007451d1e635
tree503dec065f1da607a538f61a14a94bdd6b9c2642
parent03331323642d002b5f81c893ee9bbbb049fe8bed
selftests: fix poll error in udpgro.sh

The test program udpgso_bench_rx always invokes the poll()
syscall with a timeout of 10ms. If a larger timeout is specified
via the command line, udpgso_bench_rx is supposed to do multiple
poll() calls till the timeout is expired or an event is received.

Currently the poll() loop errors out after the first invocation with
no events, and may causes self-tests failure alike:

failed
 GRO with custom segment size            ./udpgso_bench_rx: poll: 0x0 expected 0x1

This change addresses the issue allowing the poll() loop to consume
all the configured timeout.

Fixes: d12cf9b70a87 ("selftests: fixes for UDP GRO")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/udpgso_bench_rx.c