Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests: net: cope with slow env in gro.sh test

The gro self-tests sends the packets to be aggregated with
multiple write operations.

When running is slow environment, it's hard to guarantee that
the GRO engine will wait for the last packet in an intended
train.

The above causes almost deterministic failures in our CI for
the 'large' test-case.

Address the issue explicitly ignoring failures for such case
in slow environments (KSFT_MACHINE_SLOW==true).

Fixes: 7d1575014a63 ("selftests/net: GRO coalesce test")
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Link: https://lore.kernel.org/r/97d3ba83f5a2bfeb36f6bc0fb76724eb3dafb608.1707729403.git.pabeni@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Paolo Abeni and committed by
Jakub Kicinski
e58779f4 e083dd03

+5
+5
tools/testing/selftests/net/gro.sh
··· 31 31 1>>log.txt 32 32 wait "${server_pid}" 33 33 exit_code=$? 34 + if [[ ${test} == "large" && -n "${KSFT_MACHINE_SLOW}" && \ 35 + ${exit_code} -ne 0 ]]; then 36 + echo "Ignoring errors due to slow environment" 1>&2 37 + exit_code=0 38 + fi 34 39 if [[ "${exit_code}" -eq 0 ]]; then 35 40 break; 36 41 fi