From nobody Sat Feb 7 07:25:52 2026 Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.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 D0BE536EA97 for ; Tue, 27 Jan 2026 19:39:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769542773; cv=none; b=TFldjKrUZ0sLc4sbrZ7MqnmLBtNv7+XakJpIhQKkvbdpO4s8ka5wWFs2X/YV5HGlj2mSwhtcfWFODwm41o8wWKtFfTo3dnOmUGKrvatwaRrwf+pNCUoCkXtQ++oNUW0av0YPRCV+HgvKZnO1R4j5PEQIAdwjyuAWvPc7lbuToqw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769542773; c=relaxed/simple; bh=g6k7zzUsrT7F487MO4zf2ZQi4xNe9hcuQHBGVzU3D4w=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=Kyd5JVGFwOP8sAUviubciMZmC/iVwcjNunok868iDBNCmNIkzIq8iRU+ayuEmmfCL46wAc5RAVQWwBNvWhnR5isPy6RnYDQ9c7mV2J2fbb7iOqtgaSfzHeYLh0Y9OxYbz5rwB3K3G4njWycW7UK4iLhXTHzMBO6RxU7CInuQ4zE= 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=nZFzzsc0; arc=none smtp.client-ip=209.85.208.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="nZFzzsc0" Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-655af782859so12010551a12.2 for ; Tue, 27 Jan 2026 11:39:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769542764; x=1770147564; 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=eSbmEUZcW8Nu0dPxbuGEHIOk7OwoB0RMeyMHkhwbJas=; b=nZFzzsc0hUHBBgS1vIhmtsIYXNEyZnoXazGfK2lLUYFCVotRAHgXY/M65lWfkIYggb O8VS4z+7kOYTx6Ucbq8YOYETcm3sF46Na9/MoOt7qluE99EyoA//PxuGMZOPT8O5Q+ri bORdpmYoIEycf9ejwKTyPa1w9y/YkbXrB/gF2JF2O44C9x1iNLn28fwYeTEU3yr2EVDV 8+J4rtstSyN+76PsSt47nu7szCUgE1/n+FyyF1zQVcdUDQnjpP0PSnVuue5VtulrArcb PelPdlcNismPIIK+w8TVEBbd7aHiBNLOzl/y1dRYa91qEOhYvHx5dkOwdsWh4jeJjOe3 sJpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769542764; x=1770147564; 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=eSbmEUZcW8Nu0dPxbuGEHIOk7OwoB0RMeyMHkhwbJas=; b=if6+X+29KfZYRFbRFW8DxiCLGfUcyhYmWSYSUkp4bn8cm59Dz2dipqkK9zeeyHryVg 4TyvsMK3MLdIKJtVQrpY41QpOBKHnhrsMWa5RDExQztOjSbgO2s1CBluF7Xxzp4KfHfY xMzDFaePtw/gBLjx0e7jtaxzfsE0Kv3TadX1x7ONQeTtotuE2HKe9WROeX6pkGe52jEA CJS/lJN+Il/qWDo3ZttSO7ffa4YU0SvgWdZt5K3bF4nPceSjlML/IlfimWCp0EyRIYwM mR+leaFReved0cCOBS/CcfGeWvEmDbW+451/4DH/LkTsAPKjNi3n+/UByF8td0gI+N2v IgGA== X-Gm-Message-State: AOJu0YxT8pGu5bKYpZA84OLpCFehRUD8TxbZWj9qeKNuO/u9btvnBTKk 9DQo0iMrMpNkOs2y4KK4g7ovkAG4DNPsSaRVZzLQJoSwIeyAe1UGveN9jsFyIQ47 X-Gm-Gg: AZuq6aJjz+Y+nrkioAPhkgyd70dH5CBV9zoGuwJIZ1XVwWi4oX4PeDoVt/WtwyA4K8S BIVJ4tUPmNZ1z7NjuxBXiab6yPgAlIb7MSeLoVslXfHNOyKKDeLZcD2hTCU3yuWCoBUqX0ENssR DIO9vx+VQU1tF+4356MPvKGNMtmTPYhtghRVcV548hEQ5SKjNC0FAL0cawTSq5QkeH/kADco+Cw GFmgNZ+fYbjkTJMv7RPGxXdiAnfgpMgYpZGIu2CQ77+NbLAjYS+SKeHa1jwhSSsj86Xix80SWjO RcddOkkpdt6hpeQV4/Yqe8XNQLVdemTDbJvoStkxbXkuI1+VFNzjSIlDGKxGWhDLFbdv1UCmRft gJNb9oEvSA5D3IbIFR2ImVTY5YrCuPhxvtDkC2AmGV6noBOSdOikRi0wTXX2SGlbp84WNnnyFI8 GV3giW7wnSmeP0VQ== X-Received: by 2002:a17:907:743:b0:b88:411c:fcbf with SMTP id a640c23a62f3a-b8dab28d5b8mr227101466b.12.1769542763675; Tue, 27 Jan 2026 11:39:23 -0800 (PST) Received: from [192.168.1.243] ([143.58.192.3]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b8dbefc6685sm22433266b.17.2026.01.27.11.39.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jan 2026 11:39:23 -0800 (PST) From: Andre Carvalho Date: Tue, 27 Jan 2026 19:39:20 +0000 Subject: [PATCH net-next v2] 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: <20260127-netcons-selftest-target-v2-1-f509ab65b3bc@gmail.com> X-B4-Tracking: v=1; b=H4sIAAAAAAAC/3WNQQrCMBBFr1Jm7UiTRouuvId0EZNJG2gTyYRSK bm7obh1+fi893dgSp4Y7s0OiVbPPoYK8tSAmXQYCb2tDLKV11ZIiYGyiYGRaXaZOGPWaaSML2G t0K7X8qKh2u9Ezm9H+QlVquKWYajL5DnH9DkuV3Hsv7r6W18FCrTdreudUkYZ+RgX7eeziQsMp ZQvLLOy2sgAAAA= 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=1769542762; l=10027; i=asantostc@gmail.com; s=20250807; h=from:subject:message-id; bh=g6k7zzUsrT7F487MO4zf2ZQi4xNe9hcuQHBGVzU3D4w=; b=ahjUZtSUNXgxupp+8CwZFXKv/EsOb7a5HAAKBYSHPvjFzPBo/mYk9B6b/bqQoz/YakGW4TIuf zqgLndsiBezASxDzT/OBG9f+JLjT+QhsMxYoJEwVqY5cxQiLlLFXfHW 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). Reviewed-by: Breno Leitao Signed-off-by: Andre Carvalho --- 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] --- Changes in v2: - Removed unnecessary "*" on maintainers entry (Breno) - Link to v1: https://lore.kernel.org/r/20260124-netcons-selftest-target-v1= -1-d3937f44c4c2@gmail.com --- 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 c3df85fd5acd..ee9c76cc0561 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -18021,7 +18021,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: 62777c8015f3d86ab7853790192b24f0cee8a647 change-id: 20260122-netcons-selftest-target-b1dd1af7a25a Best regards, --=20 Andre Carvalho