Skip to content

selftests/net: deflake GRO tests and fix return value and output

Kevin Krakauer linux-kselftest lkml netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 6 repliesApplied 3/3
  2. v11 patch 2 repliesSuperseded

Changes in v2 from the cover letter

- Split into multiple commits.
- Reduced napi_defer_hard_irqs to 1.
- Reduced gro_flush_timeout to 100us.
- Fixed comment that wasn't updated.

Patches in v2 All 3 applied

#Subject and filesSizeRepliesApplied
1/3selftests/net: have `gro.sh -t` return a correct exit codetools/testing/selftests/net/gro.sh+2 -13 repliesApplied
2/3selftests/net: only print passing message in GRO tests when tests passtools/testing/selftests/net/gro.c+5 -31 replyApplied
3/3selftests/net: deflake GRO teststools/testing/selftests/net/gro.sh tools/testing/selftests/net/setup_veth.sh+4 -31 replyApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchWillem de Bruijn
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] selftests/net: deflake GRO tests and fix return value and output

The GRO selftests can flake and have some confusing behavior. These changes make the output and return value of GRO behave as expected, then deflake the tests.

v2:
- Split into multiple commits.
- Reduced napi_defer_hard_irqs to 1.
- Reduced gro_flush_timeout to 100us.
- Fixed comment that wasn't updated.

v1: https://lore.kernel.org/netdev/[email protected]/

Kevin Krakauer (3):
selftests/net: have gro.sh -t return a correct exit code selftests/net: only print passing message in GRO tests when tests pass selftests/net: deflake GRO tests

 tools/testing/selftests/net/gro.c         | 8 +++++---
 tools/testing/selftests/net/gro.sh        | 7 ++++---
 tools/testing/selftests/net/setup_veth.sh | 3 ++-
 3 files changed, 11 insertions(+), 7 deletions(-)
Signature · 1 line
2.48.1.658.g4767266eb4-goog