]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
selftests: ncdevmem: Move ncdevmem under drivers/net/hw
authorStanislav Fomichev <sdf@fomichev.me>
Thu, 7 Nov 2024 18:12:10 +0000 (10:12 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 12 Nov 2024 01:01:04 +0000 (17:01 -0800)
This is where all the tests that depend on the HW functionality live in
and this is where the automated test is gonna be added in the next
patch.

Reviewed-by: Mina Almasry <almasrymina@google.com>
Signed-off-by: Stanislav Fomichev <sdf@fomichev.me>
Link: https://patch.msgid.link/20241107181211.3934153-12-sdf@fomichev.me
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/hw/.gitignore [new file with mode: 0644]
tools/testing/selftests/drivers/net/hw/Makefile
tools/testing/selftests/drivers/net/hw/ncdevmem.c [moved from tools/testing/selftests/net/ncdevmem.c with 100% similarity]
tools/testing/selftests/net/.gitignore
tools/testing/selftests/net/Makefile

diff --git a/tools/testing/selftests/drivers/net/hw/.gitignore b/tools/testing/selftests/drivers/net/hw/.gitignore
new file mode 100644 (file)
index 0000000..e9fe6ed
--- /dev/null
@@ -0,0 +1 @@
+ncdevmem
index c9f2f48fc30f4d182e44a34c597adbefdd20b518..182348f4bd4001217e3864555f5883f4fd07d0ae 100644 (file)
@@ -26,4 +26,12 @@ TEST_INCLUDES := \
        ../../../net/forwarding/tc_common.sh \
        #
 
+# YNL files, must be before "include ..lib.mk"
+YNL_GEN_FILES := ncdevmem
+TEST_GEN_FILES += $(YNL_GEN_FILES)
+
 include ../../../lib.mk
+
+# YNL build
+YNL_GENS := ethtool netdev
+include ../../../net/ynl.mk
index 217d8b7a736502f4b3002ba0ebd816db88dc3964..a78debbd1fe7ab23fc9a9acbbbbe1f2194279605 100644 (file)
@@ -18,7 +18,6 @@ ipv6_flowlabel_mgr
 log.txt
 msg_oob
 msg_zerocopy
-ncdevmem
 nettest
 psock_fanout
 psock_snd
index 61cce028f1053d06478b8bb4597c0926327d4e9e..9322b904ad00c61d5131c150d501d7b9bf0f905f 100644 (file)
@@ -98,10 +98,6 @@ TEST_PROGS += vlan_hw_filter.sh
 TEST_PROGS += bpf_offload.py
 TEST_PROGS += ipv6_route_update_soft_lockup.sh
 
-# YNL files, must be before "include ..lib.mk"
-YNL_GEN_FILES := ncdevmem
-TEST_GEN_FILES += $(YNL_GEN_FILES)
-
 TEST_FILES := settings
 TEST_FILES += in_netns.sh lib.sh net_helper.sh setup_loopback.sh setup_veth.sh
 
@@ -111,10 +107,6 @@ TEST_INCLUDES := forwarding/lib.sh
 
 include ../lib.mk
 
-# YNL build
-YNL_GENS := ethtool netdev
-include ynl.mk
-
 $(OUTPUT)/epoll_busy_poll: LDLIBS += -lcap
 $(OUTPUT)/reuseport_bpf_numa: LDLIBS += -lnuma
 $(OUTPUT)/tcp_mmap: LDLIBS += -lpthread -lcrypto