mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-15 07:22:48 -05:00
gro.sh and toeplitz.sh used to source in one of two setup scripts depending on whether the test was expected to be run against veth or a real device. veth testing is replaced by netdevsim and existing "remote endpoint" support in our Python tests. Add a script which sets up loopback mode. The usage is a little bit more complicated than running the scripts used to be. Testing used to work like this: ./../gro.sh -i eth0 ... now the "setup script" has to be run explicitly: NETIF=eth0 ./../ksft_setup_loopback.sh ./../gro.sh But the functionality itself is retained. Reviewed-by: Petr Machata <petrm@nvidia.com> Reviewed-by: Willem de Bruijn <willemb@google.com> Link: https://patch.msgid.link/20251120021024.2944527-13-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
25 lines
532 B
Makefile
25 lines
532 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
CFLAGS += -Wall -Wl,--no-as-needed -O2 -g
|
|
CFLAGS += -I../../../../../usr/include/ $(KHDR_INCLUDES)
|
|
# Additional include paths needed by kselftest.h
|
|
CFLAGS += -I../../
|
|
|
|
TEST_FILES := \
|
|
../../../../net/ynl \
|
|
../../../../../Documentation/netlink/specs \
|
|
ksft_setup_loopback.sh \
|
|
# end of TEST_FILES
|
|
|
|
TEST_GEN_FILES := \
|
|
$(patsubst %.c,%.o,$(wildcard *.bpf.c)) \
|
|
csum \
|
|
xdp_helper \
|
|
# end of TEST_GEN_FILES
|
|
|
|
TEST_INCLUDES := $(wildcard py/*.py sh/*.sh)
|
|
|
|
include ../../lib.mk
|
|
|
|
include ../bpf.mk
|