]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: fixes for UDP GRO
authorPaolo Abeni <pabeni@redhat.com>
Tue, 26 Feb 2019 14:27:43 +0000 (15:27 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Mar 2019 19:24:00 +0000 (11:24 -0800)
commitd12cf9b70a879081a7662d6831712b9e55d17245
tree2343a98dbad56d387dd53b2d68122f8441004b5c
parent58550b1613f5e0f348ca9f419d1d48b3ff8da6ce
selftests: fixes for UDP GRO

The current implementation for UDP GRO tests is racy: the receiver
may flush the RX queue while the sending is still transmitting and
incorrectly report RX errors, with a wrong number of packet received.

Add explicit timeouts to the receiver for both connection activation
(first packet received for UDP) and reception completion, so that
in the above critical scenario the receiver will wait for the
transfer completion.

Fixes: 4811482b268d ("selftests: add functionals test for UDP GRO")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/udpgro.sh
tools/testing/selftests/net/udpgso_bench_rx.c