From nobody Sat Feb 7 08:45:30 2026 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0BB5B2641C6 for ; Sat, 24 Jan 2026 18:51:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769280714; cv=none; b=lsTer1Sn93xsa1QCp40eu2MmIfUBdogG6l7cURqmKWQNILS5aQIamWjrUeHytokn6f25xAFnZoofT7v65XYfVB8yqto+YHOCogA/LDVx7B7Ekd3d93mlYyHb2qGIAkzWrG7/hP/WGape1kuehsnOCdYZbA4E1PKMCXDx/mlHNfo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769280714; c=relaxed/simple; bh=hACeFLmB7JO7jj9lR2cviMtZn9mZeZtTO0aBpjglBOc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=ViDmozY26Sz3cKJZHcbm7NumEaPG6e96gtEApjSHkeRbpeIEMFGJtUQu6X/4ICx6ITXakLx0LOjL1TUpd043TIRJcusS1mNSuatkpKQzx9tVNStgOcuiaWmof2CWoTGnMagZppD1XSU7XqmwPAXU2NEGV17S+nGSP5r1/Wo4RhM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=h6CekC0U; arc=none smtp.client-ip=209.85.128.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="h6CekC0U" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-4801c2fae63so25651365e9.2 for ; Sat, 24 Jan 2026 10:51:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769280711; x=1769885511; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=zDWnFF3L77mStDU/jp9FeJ9XntgIY7dtEZmIsI8Hxi4=; b=h6CekC0UvvN8AJg5yhWhWIBncToPdY68Lj1OZhc07ovxIiFpvOI/1b4MwQjOup5MqA wZJzIiLYkYvadSyJTXN9diXVe67bgB0wLMAgGtJ2E7pJwoPVCJTpMZScJRlXNcoMVFkb cbxI7E4J8RVYx9/5yDhqeWTSVenbp5xMnSyK69TMsTkXh1YzJE+T7NC3yxC9GfaFeHQv zQV33g8b7nPsHtgDk66B8+XxBOo9ihwQh5UsO54qx2WqedKYE7Q28qWUl1OSKqLL44EU laxmkwRp0HfLEqMOOtfp+Xnd5Q/NhOEp2koxLWLFZ8qorOkLb37oDgtvU9IZjlwuPpA5 EkzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769280711; x=1769885511; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=zDWnFF3L77mStDU/jp9FeJ9XntgIY7dtEZmIsI8Hxi4=; b=MrsDzphaFG3AC4b6h65VLumG+iuP+L0s0oZxxXWlTEiw9M2WgbdETA/tDnhbqLIfqr oyS1kiXeb9Q5dACw7gYt1KQf8Qcr6QzzOQfum7uwXXG8WwtXrJiMm3Zq88PdB7kW37Vj g1ow27y5IzZnkvhU3M8sIuEuYFbTsPB1cwfNZ1PC2WuNAXmR+C342x+uj0MaMtZ6JHqy 9/ybPx0ISek9PT1ZdRpRog9Px2h2wEe259n+t8HewDqk8yRYjaG1YHq8HquYCh8dBLtE 7db6LMaZZNktIzSsvM21GEUQjfZVsNgBbg8arOgs9fJbtzW1arBWtt8MRneVDJlyh1XX aHZQ== X-Gm-Message-State: AOJu0Yz9+8aUJfa+u28Z1MsxI/LhjHSVxrtbKgWvC4a3V3HgN8piSSIY 5qUpnOvhpzrsDeC4W6HiCTZRXjB23SXqUnNYooVwosIK4YSaH6YbxPVe X-Gm-Gg: AZuq6aJvYA0ZgrWFHXzDIsrQD8NULZIfWge8EvYot+Pm6veYIG1tQo2QsD1wItRplve Ex5RzpvO9A4mjB2WlvzBVXc9yJK3X2noEqkturS3CYdVMjjHapjFgUPMlYoTQqsxCWx5QJEusM/ 52toEAqboCjZrAUjrG1AXv0/dbwYDqNuF93+sZA89hJ9Luy7PK/l9QBQlkU5EHivPcjg78clNWH V8ob7Rc+lFIfGvr3WEjpChoXqRqcmnoHHMHPVM4EEZywOvAkETLQkMePuykydWLcdCKVD5Gu4hI q030kvpDpM7DjlcKWonK7Oe//ud8cKOkj9UgxaK96QDBGiZvsD20mKPIBYl3OAnTrq113cIVfwF 7ogm5Xqvb8MShn/3GjkjrWJzpnGAdgl61SifZl50X7k1/cfrVTn0v8y9/20kGpVvXmxBppQwTHc WGowLHHrEeenp3En8JzIquIyON X-Received: by 2002:a05:600c:198d:b0:47e:e8de:7420 with SMTP id 5b1f17b1804b1-4804c9af7f2mr109144515e9.22.1769280711140; Sat, 24 Jan 2026 10:51:51 -0800 (PST) Received: from [192.168.1.243] ([143.58.192.3]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4804d85cff5sm140700785e9.7.2026.01.24.10.51.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Jan 2026 10:51:50 -0800 (PST) From: Andre Carvalho Date: Sat, 24 Jan 2026 18:51:42 +0000 Subject: [PATCH net-next] netconsole: selftests: Move netconsole selftests to separate target Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260124-netcons-selftest-target-v1-1-d3937f44c4c2@gmail.com> X-B4-Tracking: v=1; b=H4sIAAAAAAAC/x3MQQqDQAxA0atI1g04gVbwKsVF6mQ0IGOZBBHEu zd0+RfvX2DSVAzG7oImh5ruNSI9OphXroug5mignl59IsIqPu/V0GQrLubo3BZx/KScE5eB6ck Q+tuk6Pk/vyFQwNNhuu8fbrsOK3MAAAA= X-Change-ID: 20260122-netcons-selftest-target-b1dd1af7a25a To: Shuah Khan , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Breno Leitao Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, netdev@vger.kernel.org, Andre Carvalho X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1769280710; l=9802; i=asantostc@gmail.com; s=20250807; h=from:subject:message-id; bh=hACeFLmB7JO7jj9lR2cviMtZn9mZeZtTO0aBpjglBOc=; b=DXU3lwfOweYqoWeAkeP7qWj5RfJr+V85r1lfLzoicK0dCq/YFPnCTooBC0p3KA58C5wEzlcJ3 U9QMbnGWX6gDw4u2135HQCRp1+I6QxadMSq+owllJw710vCMoULTG/r X-Developer-Key: i=asantostc@gmail.com; a=ed25519; pk=eWre+RwFHCxkiaQrZLsjC67mZ/pZnzSM/f7/+yFXY4Q= This patch moves netconsole selftests from drivers/net to its own target in drivers/net/netconsole. This change helps saving some resources from CI since tests in drivers/net automatically run against real hardware which are not used by netconsole tests as they rely solely on netdevsim. lib_netcons.sh is kept under drivers/net/lib since it is also used by bonding selftests. Finally, drivers/net config remains unchanged as netpoll_basic.py requires netconsole (and does leverage real HW testing). Signed-off-by: Andre Carvalho Reviewed-by: Breno Leitao --- This was initially discussed in [1] when Jakub pointed out new tests were failing on HW runs. I'm not sure if the CI is going to automatically run these or if some changes are required on NIPA in order to do so. Link: https://lore.kernel.org/netdev/20260120172057.6600eefe@kernel.org/ [1] --- MAINTAINERS | 2 +- tools/testing/selftests/Makefile | 1 + tools/testing/selftests/drivers/net/Makefile | 7 ------- .../testing/selftests/drivers/net/netconsole/Makefile | 19 +++++++++++++++= ++++ tools/testing/selftests/drivers/net/netconsole/config | 6 ++++++ .../drivers/net/{ =3D> netconsole}/netcons_basic.sh | 2 +- .../drivers/net/{ =3D> netconsole}/netcons_cmdline.sh | 2 +- .../net/{ =3D> netconsole}/netcons_fragmented_msg.sh | 2 +- .../drivers/net/{ =3D> netconsole}/netcons_overflow.sh | 2 +- .../drivers/net/{ =3D> netconsole}/netcons_resume.sh | 2 +- .../drivers/net/{ =3D> netconsole}/netcons_sysdata.sh | 2 +- .../drivers/net/{ =3D> netconsole}/netcons_torture.sh | 2 +- 12 files changed, 34 insertions(+), 15 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 92768bceb929..d92927ce87cc 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -18016,7 +18016,7 @@ S: Maintained F: Documentation/networking/netconsole.rst F: drivers/net/netconsole.c F: tools/testing/selftests/drivers/net/lib/sh/lib_netcons.sh -F: tools/testing/selftests/drivers/net/netcons\* +F: tools/testing/selftests/drivers/net/netconsole/* =20 NETDEVSIM M: Jakub Kicinski diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Mak= efile index 56e44a98d6a5..450f13ba4cca 100644 --- a/tools/testing/selftests/Makefile +++ b/tools/testing/selftests/Makefile @@ -22,6 +22,7 @@ TARGETS +=3D drivers/ntsync TARGETS +=3D drivers/s390x/uvdevice TARGETS +=3D drivers/net TARGETS +=3D drivers/net/bonding +TARGETS +=3D drivers/net/netconsole TARGETS +=3D drivers/net/team TARGETS +=3D drivers/net/virtio_net TARGETS +=3D drivers/platform/x86/intel/ifs diff --git a/tools/testing/selftests/drivers/net/Makefile b/tools/testing/s= elftests/drivers/net/Makefile index 3eba569b3366..8154d6d429d3 100644 --- a/tools/testing/selftests/drivers/net/Makefile +++ b/tools/testing/selftests/drivers/net/Makefile @@ -15,13 +15,6 @@ TEST_PROGS :=3D \ hds.py \ napi_id.py \ napi_threaded.py \ - netcons_basic.sh \ - netcons_cmdline.sh \ - netcons_fragmented_msg.sh \ - netcons_overflow.sh \ - netcons_resume.sh \ - netcons_sysdata.sh \ - netcons_torture.sh \ netpoll_basic.py \ ping.py \ psp.py \ diff --git a/tools/testing/selftests/drivers/net/netconsole/Makefile b/tool= s/testing/selftests/drivers/net/netconsole/Makefile new file mode 100644 index 000000000000..b56c70b7e274 --- /dev/null +++ b/tools/testing/selftests/drivers/net/netconsole/Makefile @@ -0,0 +1,19 @@ +# SPDX-License-Identifier: GPL-2.0 + +TEST_INCLUDES :=3D \ + ../../../net/lib.sh \ + ../lib/sh/lib_netcons.sh \ +# end of TEST_INCLUDES + +TEST_PROGS :=3D \ + netcons_basic.sh \ + netcons_cmdline.sh \ + netcons_fragmented_msg.sh \ + netcons_overflow.sh \ + netcons_resume.sh \ + netcons_sysdata.sh \ + netcons_torture.sh \ +# end of TEST_PROGS + +include ../../../lib.mk + diff --git a/tools/testing/selftests/drivers/net/netconsole/config b/tools/= testing/selftests/drivers/net/netconsole/config new file mode 100644 index 000000000000..a3f6b0fd44ef --- /dev/null +++ b/tools/testing/selftests/drivers/net/netconsole/config @@ -0,0 +1,6 @@ +CONFIG_CONFIGFS_FS=3Dy +CONFIG_IPV6=3Dy +CONFIG_NETCONSOLE=3Dm +CONFIG_NETCONSOLE_DYNAMIC=3Dy +CONFIG_NETCONSOLE_EXTENDED_LOG=3Dy +CONFIG_NETDEVSIM=3Dm diff --git a/tools/testing/selftests/drivers/net/netcons_basic.sh b/tools/t= esting/selftests/drivers/net/netconsole/netcons_basic.sh similarity index 98% rename from tools/testing/selftests/drivers/net/netcons_basic.sh rename to tools/testing/selftests/drivers/net/netconsole/netcons_basic.sh index 2022f3061738..59cf10013ecd 100755 --- a/tools/testing/selftests/drivers/net/netcons_basic.sh +++ b/tools/testing/selftests/drivers/net/netconsole/netcons_basic.sh @@ -18,7 +18,7 @@ set -euo pipefail =20 SCRIPTDIR=3D$(dirname "$(readlink -e "${BASH_SOURCE[0]}")") =20 -source "${SCRIPTDIR}"/lib/sh/lib_netcons.sh +source "${SCRIPTDIR}"/../lib/sh/lib_netcons.sh =20 modprobe netdevsim 2> /dev/null || true modprobe netconsole 2> /dev/null || true diff --git a/tools/testing/selftests/drivers/net/netcons_cmdline.sh b/tools= /testing/selftests/drivers/net/netconsole/netcons_cmdline.sh similarity index 97% rename from tools/testing/selftests/drivers/net/netcons_cmdline.sh rename to tools/testing/selftests/drivers/net/netconsole/netcons_cmdline.sh index d1d23dc67f99..96d704b8d9d9 100755 --- a/tools/testing/selftests/drivers/net/netcons_cmdline.sh +++ b/tools/testing/selftests/drivers/net/netconsole/netcons_cmdline.sh @@ -12,7 +12,7 @@ set -euo pipefail =20 SCRIPTDIR=3D$(dirname "$(readlink -e "${BASH_SOURCE[0]}")") =20 -source "${SCRIPTDIR}"/lib/sh/lib_netcons.sh +source "${SCRIPTDIR}"/../lib/sh/lib_netcons.sh =20 check_netconsole_module =20 diff --git a/tools/testing/selftests/drivers/net/netcons_fragmented_msg.sh = b/tools/testing/selftests/drivers/net/netconsole/netcons_fragmented_msg.sh similarity index 98% rename from tools/testing/selftests/drivers/net/netcons_fragmented_msg.sh rename to tools/testing/selftests/drivers/net/netconsole/netcons_fragmented= _msg.sh index 4a71e01a230c..0dc7280c3080 100755 --- a/tools/testing/selftests/drivers/net/netcons_fragmented_msg.sh +++ b/tools/testing/selftests/drivers/net/netconsole/netcons_fragmented_msg= .sh @@ -16,7 +16,7 @@ set -euo pipefail =20 SCRIPTDIR=3D$(dirname "$(readlink -e "${BASH_SOURCE[0]}")") =20 -source "${SCRIPTDIR}"/lib/sh/lib_netcons.sh +source "${SCRIPTDIR}"/../lib/sh/lib_netcons.sh =20 modprobe netdevsim 2> /dev/null || true modprobe netconsole 2> /dev/null || true diff --git a/tools/testing/selftests/drivers/net/netcons_overflow.sh b/tool= s/testing/selftests/drivers/net/netconsole/netcons_overflow.sh similarity index 97% rename from tools/testing/selftests/drivers/net/netcons_overflow.sh rename to tools/testing/selftests/drivers/net/netconsole/netcons_overflow.sh index 06089643b771..a8e43d08c166 100755 --- a/tools/testing/selftests/drivers/net/netcons_overflow.sh +++ b/tools/testing/selftests/drivers/net/netconsole/netcons_overflow.sh @@ -13,7 +13,7 @@ set -euo pipefail =20 SCRIPTDIR=3D$(dirname "$(readlink -e "${BASH_SOURCE[0]}")") =20 -source "${SCRIPTDIR}"/lib/sh/lib_netcons.sh +source "${SCRIPTDIR}"/../lib/sh/lib_netcons.sh # This is coming from netconsole code. Check for it in drivers/net/netcons= ole.c MAX_USERDATA_ITEMS=3D256 =20 diff --git a/tools/testing/selftests/drivers/net/netcons_resume.sh b/tools/= testing/selftests/drivers/net/netconsole/netcons_resume.sh similarity index 98% rename from tools/testing/selftests/drivers/net/netcons_resume.sh rename to tools/testing/selftests/drivers/net/netconsole/netcons_resume.sh index fc5e5e3ad3d4..cb59cf436dd0 100755 --- a/tools/testing/selftests/drivers/net/netcons_resume.sh +++ b/tools/testing/selftests/drivers/net/netconsole/netcons_resume.sh @@ -20,7 +20,7 @@ set -euo pipefail =20 SCRIPTDIR=3D$(dirname "$(readlink -e "${BASH_SOURCE[0]}")") =20 -source "${SCRIPTDIR}"/lib/sh/lib_netcons.sh +source "${SCRIPTDIR}"/../lib/sh/lib_netcons.sh =20 SAVED_SRCMAC=3D"" # to be populated later SAVED_DSTMAC=3D"" # to be populated later diff --git a/tools/testing/selftests/drivers/net/netcons_sysdata.sh b/tools= /testing/selftests/drivers/net/netconsole/netcons_sysdata.sh similarity index 99% rename from tools/testing/selftests/drivers/net/netcons_sysdata.sh rename to tools/testing/selftests/drivers/net/netconsole/netcons_sysdata.sh index baf69031089e..3fb8c4afe3d2 100755 --- a/tools/testing/selftests/drivers/net/netcons_sysdata.sh +++ b/tools/testing/selftests/drivers/net/netconsole/netcons_sysdata.sh @@ -18,7 +18,7 @@ set -euo pipefail =20 SCRIPTDIR=3D$(dirname "$(readlink -e "${BASH_SOURCE[0]}")") =20 -source "${SCRIPTDIR}"/lib/sh/lib_netcons.sh +source "${SCRIPTDIR}"/../lib/sh/lib_netcons.sh =20 # Enable the sysdata cpu_nr feature function set_cpu_nr() { diff --git a/tools/testing/selftests/drivers/net/netcons_torture.sh b/tools= /testing/selftests/drivers/net/netconsole/netcons_torture.sh similarity index 98% rename from tools/testing/selftests/drivers/net/netcons_torture.sh rename to tools/testing/selftests/drivers/net/netconsole/netcons_torture.sh index 2ce9ee3719d1..33a44adb6f8f 100755 --- a/tools/testing/selftests/drivers/net/netcons_torture.sh +++ b/tools/testing/selftests/drivers/net/netconsole/netcons_torture.sh @@ -17,7 +17,7 @@ set -euo pipefail =20 SCRIPTDIR=3D$(dirname "$(readlink -e "${BASH_SOURCE[0]}")") =20 -source "${SCRIPTDIR}"/lib/sh/lib_netcons.sh +source "${SCRIPTDIR}"/../lib/sh/lib_netcons.sh =20 # Number of times the main loop run ITERATIONS=3D${1:-150} --- base-commit: b00a7b3a612925faa7362f5c61065e3e5f393fff change-id: 20260122-netcons-selftest-target-b1dd1af7a25a Best regards, --=20 Andre Carvalho