Commit 89268f7d authored by Jakub Kicinski's avatar Jakub Kicinski
Browse files

selftests: net: relocate gro and toeplitz tests to drivers/net



The GRO test can run on a real device or a veth.
The Toeplitz hash test can only run on a real device.
Move them from net/ to drivers/net/ and drivers/net/hw/ respectively.

There are two scripts which set up the environment for these tests
setup_loopback.sh and setup_veth.sh. Move those scripts to net/lib.
The paths to the setup files are a little ugly but they will be
deleted shortly.

toeplitz_client.sh is not a test in itself, but rather a helper
to send traffic, so add it to TEST_FILES rather than TEST_PROGS.

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


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

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

TEST_PROGS := \
	gro.sh \
	hds.py \
	napi_id.py \
	napi_threaded.py \
+1 −1
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@
#include <string.h>
#include <unistd.h>

#include "../kselftest.h"
#include "../../kselftest.h"

#define DPORT 8000
#define SPORT 1500
+2 −2
Original line number Diff line number Diff line
@@ -90,9 +90,9 @@ while getopts "i:t:p:" opt; do
done

if [ -n "$dev" ]; then
	source setup_loopback.sh
	source $(dirname $0)/../../net/lib/setup_loopback.sh
else
	source setup_veth.sh
	source $(dirname $0)/../../net/lib/setup_veth.sh
fi

setup
+1 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only
iou-zcrx
ncdevmem
toeplitz
Loading