Commit 8888bf4f authored by Jakub Kicinski's avatar Jakub Kicinski
Browse files

selftests: net: move gro to lib for HW vs SW reuse



The gro.c packet sender is used for SW testing but bulk of incoming
new tests will be HW-specific. So it's better to put them under
drivers/net/hw/, to avoid tip-toeing around netdevsim. Move gro.c
to lib so we can reuse it.

Reviewed-by: default avatarPetr Machata <petrm@nvidia.com>
Reviewed-by: default avatarWillem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20260318033819.1469350-2-kuba@kernel.org


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent edab1ca5
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only
gro
napi_id_helper
psp_responder
+0 −1
Original line number Diff line number Diff line
@@ -6,7 +6,6 @@ TEST_INCLUDES := $(wildcard lib/py/*.py) \
		 ../../net/lib.sh \

TEST_GEN_FILES := \
	gro \
	napi_id_helper \
# end of TEST_GEN_FILES

+1 −1
Original line number Diff line number Diff line
@@ -117,7 +117,7 @@ def _setup(cfg, mode, test_name):
    """ Setup hardware loopback mode for GRO testing. """

    if not hasattr(cfg, "bin_remote"):
        cfg.bin_local = cfg.test_dir / "gro"
        cfg.bin_local = cfg.net_lib_dir / "gro"
        cfg.bin_remote = cfg.remote.deploy(cfg.bin_local)

    if not hasattr(cfg, "feat"):
+1 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only
csum
gro
xdp_helper
+1 −0
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@ TEST_FILES := \
TEST_GEN_FILES := \
	$(patsubst %.c,%.o,$(wildcard *.bpf.c)) \
	csum \
	gro \
	xdp_helper \
# end of TEST_GEN_FILES

Loading