Re: [PATCH net-next V3 13/15] selftests: drv-net: gro: Extract shared helpers into gro_lib.py
From: Daniel Zahka
Date: Fri Sep 04 2026 - 08:44:13 EST
On Thu Sep 3, 2026 at 4:52 AM EDT, Tariq Toukan wrote:
> From: Cosmin Ratiu <cratiu@xxxxxxxxxx>
>
> Bits and pieces of gro.py are needed by a second test file:
> - dmac resolution
> - the ethtool/sysfs feature dance
> - the HW GRO setup logic
> - the gro binary invocation
> - the retry loop
>
> Move them to gro_lib.py, installed via TEST_FILES (like psp_lib.py).
>
> hw/gro_hw.py keeps its own copies for now since they diverged.
>
> Signed-off-by: Cosmin Ratiu <cratiu@xxxxxxxxxx>
> Reviewed-by: Dragos Tatulea <dtatulea@xxxxxxxxxx>
> Signed-off-by: Tariq Toukan <tariqt@xxxxxxxxxx>
> ---
> tools/testing/selftests/drivers/net/Makefile | 1 +
> tools/testing/selftests/drivers/net/gro.py | 200 ++----------------
> .../testing/selftests/drivers/net/gro_lib.py | 194 +++++++++++++++++
> 3 files changed, 217 insertions(+), 178 deletions(-)
> create mode 100644 tools/testing/selftests/drivers/net/gro_lib.py
>
Conflicts with:
f225a7317c18 ("selftests: drv-net: split gro.py into one test per coalescing mode")
I will take a look at the other patches now in case I can provide any
feedback before reposting.