• Paolo Abeni's avatar
    selftests: fixes for UDP GRO · ada641ff
    Paolo Abeni authored
    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: 3327a9c4 ("selftests: add functionals test for UDP GRO")
    Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
    Acked-by: default avatarWillem de Bruijn <willemb@google.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    ada641ff
udpgso_bench_rx.c 8.57 KB