From nobody Sun Feb 8 19:48:46 2026 Received: from relay.virtuozzo.com (relay.virtuozzo.com [130.117.225.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3262923D297; Tue, 27 Jan 2026 22:52:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=130.117.225.111 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769554326; cv=none; b=i12lD8wWnvo9opSe+A2eMLPPUc7JzFWgrgwQk/uZSStxoX23Oux9hquIw1XKJfC/TIfdjibqKO0kN/l3+AGMEBwevhIGqAX6z26G/uZC6HK9dOBvkuKOtB/omJTGSBXCZYVi5JO6OcTNSlTcnKVSS+VddAV4xAA+2lpC3xOI0eI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769554326; c=relaxed/simple; bh=mIZg6LyAQ5YLRYCvmDB1mT2AHmhvCBdfgRYz3Jhgt6Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=r/kzPcWgcU1HWqoUHI1XXey5Vmvbu3P0/0KoJCVc6mY71caaU9fp4OEOc1yg5er8/hV646OTONBDA7fpO32nAOH0KiiosvPVv8L3aTHztJL5eTmI5P6EbLU0ufjLL19edGrx+/tNtFMSRfpmEmBxFIT4k0NTxwfShaT0n+2pHqw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=virtuozzo.com; spf=pass smtp.mailfrom=virtuozzo.com; dkim=pass (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b=saPOUfTH; arc=none smtp.client-ip=130.117.225.111 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=virtuozzo.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=virtuozzo.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="saPOUfTH" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=MIME-Version:Message-ID:Date:Subject:From: Content-Type; bh=8dIBwwgRdF0bXQt/KiXpNGJQK1PK9H5//g4wCSNy9ag=; b=saPOUfTHinNi GvHyiwwUAlqttTIvTrrIukdZAgYYVQ5+GH0cY36F1Bjle465h8HUKfoVdX2dchHnH4pYBJbQw9B77 veXGPhivF0bO+ehhRXyT17l0ZLTG3OUZPIxcngi5CVjjdsmMTN2oApBgKdZRoX9G1TQ5NuFdWjn8I KaTNnV9n6zyJAYE/m2kpSV9k5B5alwagG9ArBKfBfcloMX3ltabXxvImse1Io3+9gJsj2oR3bfTbT pCFlbR/jJGVVTKzbPC3OwKUvHjtKbbVTDfcWrYcnyJwruVk3zMjFr4HmSj3zFRuRPpC2yjKR6b2Zw GAmZNB7u5bmsIL1lwPhVNg==; Received: from [130.117.225.5] (helo=dev004.aci.vzint.dev) by relay.virtuozzo.com with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vkrtu-0080T1-29; Tue, 27 Jan 2026 23:51:40 +0100 Received: from dev004.aci.vzint.dev (localhost [127.0.0.1]) by dev004.aci.vzint.dev (8.16.1/8.16.1) with ESMTPS id 60RMpoqd304387 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 27 Jan 2026 22:51:50 GMT Received: (from root@localhost) by dev004.aci.vzint.dev (8.16.1/8.16.1/Submit) id 60RMpnYw304386; Tue, 27 Jan 2026 22:51:49 GMT From: Aleksei Oladko To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Shuah Khan , Aaron Conole Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Aleksei Oladko Subject: [PATCH v2 1/5] selftests: net: fib_tests: skip rp_filter test if cls_basic is unavailable Date: Tue, 27 Jan 2026 22:51:30 +0000 Message-ID: <20260127225134.304362-2-aleksey.oladko@virtuozzo.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260127225134.304362-1-aleksey.oladko@virtuozzo.com> References: <20260127225134.304362-1-aleksey.oladko@virtuozzo.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The rp_filter test in fib_tests.sh installs tc filters using the "basic" classifier but does not verify the corresponding kernel module (cls_basic) is available. On kernels built without CONFIG_NET_CLS_BASIC, the tc command fails and the rp_filter test is reported as a failure. Add a check for the presence of the cls_basic module and skip the rp_filter test when the classifier is not available. Signed-off-by: Aleksei Oladko --- tools/testing/selftests/net/fib_tests.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/net/fib_tests.sh b/tools/testing/selft= ests/net/fib_tests.sh index c5694cc4ddd2..fa58f9b6bed0 100755 --- a/tools/testing/selftests/net/fib_tests.sh +++ b/tools/testing/selftests/net/fib_tests.sh @@ -441,6 +441,8 @@ fib_rp_filter_test() echo echo "IPv4 rp_filter tests" =20 + modprobe cls_basic || return $ksft_skip + setup =20 set -e --=20 2.43.0 From nobody Sun Feb 8 19:48:46 2026 Received: from relay.virtuozzo.com (relay.virtuozzo.com [130.117.225.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 21E2B2F83AE; Tue, 27 Jan 2026 22:52:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=130.117.225.111 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769554330; cv=none; b=Wx9281JMabPFfjwJnNzdXLr3RtKViyGrc57A+yGxzzFz6h9XvVHRL763+TCaWoRgOPohU8xlYw2WImclt9j+7SAg42/dsCw0qV5InjzyiGQF6VKFA1nsq4qakzQCltK/EZaCDZ066Ir2PGiXaeEWH7T2y0FNwxVxzCdEQAi6mMo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769554330; c=relaxed/simple; bh=NipXyq8Olunpd4nLlWBIUAlNUcuzVjyuhISS0mQU4mU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lxseKASudE6i4PL6dH5L5sfbsKKxbZQJ7wx+5wWSa5PnzAc8GF9QPulzCGApTUNDA5yh8ELVHnq0FWA+wBt8ippybbnD/K8xgYV6cTBm5lmdXw+DvkCwzv0MHy11bnN0cIKJKLaDaOyvlmkc2f1W81Gff94qY9IST62vNY1QtH4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=virtuozzo.com; spf=pass smtp.mailfrom=virtuozzo.com; dkim=pass (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b=epVa14ju; arc=none smtp.client-ip=130.117.225.111 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=virtuozzo.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=virtuozzo.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="epVa14ju" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=MIME-Version:Message-ID:Date:Subject:From: Content-Type; bh=IpUU4MbJSN8PkPmUt1IzIbg/Bcu1M7gnSljEdtG9dlo=; b=epVa14juOxon 6hVjVE5o7agp+flakrjkFSJPAaApTmD0AFs1CYu7WJeId080+UhL5f+v8SVy/uf7faJbgJj1U2x+6 AwA12R4r0CRkfNVvNTnUhlg5FvDo9T9Az/sH5zh1W6VWEkp/JGF27cYMWONG6TyIcE/bk+ORCsnDz bqm3qjpNwPW5N9IckRJvk94kTha0xMtq9ggIzeDdfs7aqF4vRdN10PsbrXEpuFsyYny2GIIX47LwZ EST0UMsWY625396PxlPFfad4gvknxbHsroCxUQiyKgPO4xhPybTSA6cOBZCDZ0jXJNhizo6BsPW7N hJ8Ed3+HajKYlK9cp9uxhw==; Received: from [130.117.225.5] (helo=dev004.aci.vzint.dev) by relay.virtuozzo.com with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vkru2-0080TH-07; Tue, 27 Jan 2026 23:51:48 +0100 Received: from dev004.aci.vzint.dev (localhost [127.0.0.1]) by dev004.aci.vzint.dev (8.16.1/8.16.1) with ESMTPS id 60RMpvmJ304391 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 27 Jan 2026 22:51:57 GMT Received: (from root@localhost) by dev004.aci.vzint.dev (8.16.1/8.16.1/Submit) id 60RMpv2S304390; Tue, 27 Jan 2026 22:51:57 GMT From: Aleksei Oladko To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Shuah Khan , Aaron Conole Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Aleksei Oladko Subject: [PATCH v2 2/5] selftests: net: make ovs-dpctl.py fail when pyroute2 is unsupported Date: Tue, 27 Jan 2026 22:51:31 +0000 Message-ID: <20260127225134.304362-3-aleksey.oladko@virtuozzo.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260127225134.304362-1-aleksey.oladko@virtuozzo.com> References: <20260127225134.304362-1-aleksey.oladko@virtuozzo.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The pmtu.sh kselftest configures OVS using ovs-dpctl.py and falls back to ovs-vsctl only when ovs-dpctl.py fails. However, ovs-dpctl.py exits with a success status when the installed pyroute2 package version is lower than 0.6, even though the OVS datapath is not configured. As a result, pmtu.sh assumes that the setup was successful and continues running the test, which later fails due to the missing OVS configuration. Fix the exit code handling in ovs-dpctl.py so that pmtu.sh can detect that the setup did not complete successfully and fall back to ovs-vsctl. Fixes: 962e8a01eab9 ("selftests: openvswitch: Add version check for pyroute= 2") Signed-off-by: Aleksei Oladko --- tools/testing/selftests/net/openvswitch/ovs-dpctl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/openvswitch/ovs-dpctl.py b/tools/t= esting/selftests/net/openvswitch/ovs-dpctl.py index b521e0dea506..848f61fdcee0 100644 --- a/tools/testing/selftests/net/openvswitch/ovs-dpctl.py +++ b/tools/testing/selftests/net/openvswitch/ovs-dpctl.py @@ -2583,7 +2583,7 @@ def main(argv): prverscheck =3D pyroute2.__version__.split(".") if int(prverscheck[0]) =3D=3D 0 and int(prverscheck[1]) < 6: print("Need to upgrade the python pyroute2 package to >=3D 0.6.") - sys.exit(0) + sys.exit(1) =20 parser =3D argparse.ArgumentParser() parser.add_argument( --=20 2.43.0 From nobody Sun Feb 8 19:48:46 2026 Received: from relay.virtuozzo.com (relay.virtuozzo.com [130.117.225.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3256D21CC44; Tue, 27 Jan 2026 22:52:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=130.117.225.111 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769554325; cv=none; b=Cbui/rOuG8sqAhYBMIan5uBLZHEGJY87+rBkG0bkgtN5XYloG0Q6/G8wNidexzL9ATRb3/fZdK0jYc6ER+/agmZyxWwFSaytKs7TnqSp274zIgoT/iGUSPULshIKTNkYNRp43y6zF8PyGVf7WO3MAPEpSGqifb5V4wozqzCXdms= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769554325; c=relaxed/simple; bh=7kWkj0+C7q8BgmM4Lz/XKazPnhAuaZXkRlwEeSr8NLg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tPLxyzz9nlDqiYX1xeGi15XwdZO/UAnT+ONbmbIrdM9dboQvGaOqwHZJL4V8IUp7BpKLtLe/FH8XlsZ8LM1XHEZ+chyFgosC+a8/tGfpjB0JXp79IMcHtRgbAsBVXOOf1taqsTsEbsSa6gwYiTDT23CpCcOTEewBlsybywW9dZY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=virtuozzo.com; spf=pass smtp.mailfrom=virtuozzo.com; dkim=pass (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b=Ez+mCiHM; arc=none smtp.client-ip=130.117.225.111 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=virtuozzo.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=virtuozzo.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="Ez+mCiHM" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=MIME-Version:Message-ID:Date:Subject:From: Content-Type; bh=DuabfVWgE3sqzQgQxtkjFsuzMq6NqsoO509biuXoWWo=; b=Ez+mCiHMYZHS UXlieF/aRKWISraKmfHJcm4Z8hzuVuiQ6btOKRzvdGLs5On6/LMNF5V/CCialzvO6nA8HsN9LeLLB 6hcxXLw4YMbLinIAMfqrkVDMuQP6q22MC938joO6HKIQ0aVmgBldvKVDfwFCozevZVfoWUrhjWfE7 my9XSPzHdsi9l3eRKw5I0QiqYn2N2GCvQbHGzuTIQ7VE6Qb45tmGMuJKYAEd2vRTibzixn2w2nIjs SxIL6Em6Ok1l/ddzoDWHxLF3kbSgBrZ3cqdczwhzP/FTbBTYLwdDzSBIwUii/XNFMABuF+GW4BkLd 5Wk4C5kuPnXVRa1fvsHm9g==; Received: from [130.117.225.5] (helo=dev004.aci.vzint.dev) by relay.virtuozzo.com with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vkru3-0080TL-1D; Tue, 27 Jan 2026 23:51:49 +0100 Received: from dev004.aci.vzint.dev (localhost [127.0.0.1]) by dev004.aci.vzint.dev (8.16.1/8.16.1) with ESMTPS id 60RMpwpF304395 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 27 Jan 2026 22:51:58 GMT Received: (from root@localhost) by dev004.aci.vzint.dev (8.16.1/8.16.1/Submit) id 60RMpw06304394; Tue, 27 Jan 2026 22:51:58 GMT From: Aleksei Oladko To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Shuah Khan , Aaron Conole Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Konstantin Khorenko Subject: [PATCH v2 3/5] selftests: net: run reuseport tests in netns to avoid port conflicts Date: Tue, 27 Jan 2026 22:51:32 +0000 Message-ID: <20260127225134.304362-4-aleksey.oladko@virtuozzo.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260127225134.304362-1-aleksey.oladko@virtuozzo.com> References: <20260127225134.304362-1-aleksey.oladko@virtuozzo.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Konstantin Khorenko Some net kselftests use fixed ports which overlap with process-exporter service already running on the host. When such a conflict happens, the test fail with: failed to bind receive socket: Address already in use Instead of changing port numbers, run the affected tests in isolated network namespace to avoid conflicts with running daemons. Signed-off-by: Konstantin Khorenko --- tools/testing/selftests/net/Makefile | 12 ++++++++---- tools/testing/selftests/net/reuseport_bpf.sh | 4 ++++ tools/testing/selftests/net/reuseport_bpf_cpu.sh | 4 ++++ tools/testing/selftests/net/reuseport_bpf_numa.sh | 4 ++++ tools/testing/selftests/net/reuseport_dualstack.sh | 4 ++++ 5 files changed, 24 insertions(+), 4 deletions(-) create mode 100755 tools/testing/selftests/net/reuseport_bpf.sh create mode 100755 tools/testing/selftests/net/reuseport_bpf_cpu.sh create mode 100755 tools/testing/selftests/net/reuseport_bpf_numa.sh create mode 100755 tools/testing/selftests/net/reuseport_dualstack.sh diff --git a/tools/testing/selftests/net/Makefile b/tools/testing/selftests= /net/Makefile index b66ba04f19d9..ce65763e74ef 100644 --- a/tools/testing/selftests/net/Makefile +++ b/tools/testing/selftests/net/Makefile @@ -64,6 +64,10 @@ TEST_PROGS :=3D \ psock_snd.sh \ reuseaddr_ports_exhausted.sh \ reuseport_addr_any.sh \ + reuseport_bpf.sh \ + reuseport_bpf_cpu.sh \ + reuseport_bpf_numa.sh \ + reuseport_dualstack.sh \ route_hint.sh \ route_localnet.sh \ rps_default_mask.sh \ @@ -142,6 +146,10 @@ TEST_GEN_FILES :=3D \ psock_tpacket \ reuseaddr_ports_exhausted \ reuseport_addr_any \ + reuseport_bpf \ + reuseport_bpf_cpu \ + reuseport_bpf_numa \ + reuseport_dualstack \ rxtimestamp \ sctp_hello \ skf_net_off \ @@ -169,10 +177,6 @@ TEST_GEN_PROGS :=3D \ ipv6_fragmentation \ proc_net_pktgen \ reuseaddr_conflict \ - reuseport_bpf \ - reuseport_bpf_cpu \ - reuseport_bpf_numa \ - reuseport_dualstack \ sk_bind_sendto_listen \ sk_connect_zero_addr \ sk_so_peek_off \ diff --git a/tools/testing/selftests/net/reuseport_bpf.sh b/tools/testing/s= elftests/net/reuseport_bpf.sh new file mode 100755 index 000000000000..75014a5462a1 --- /dev/null +++ b/tools/testing/selftests/net/reuseport_bpf.sh @@ -0,0 +1,4 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0 + +./in_netns.sh ./reuseport_bpf diff --git a/tools/testing/selftests/net/reuseport_bpf_cpu.sh b/tools/testi= ng/selftests/net/reuseport_bpf_cpu.sh new file mode 100755 index 000000000000..243dc5bee014 --- /dev/null +++ b/tools/testing/selftests/net/reuseport_bpf_cpu.sh @@ -0,0 +1,4 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0 + +./in_netns.sh ./reuseport_bpf_cpu diff --git a/tools/testing/selftests/net/reuseport_bpf_numa.sh b/tools/test= ing/selftests/net/reuseport_bpf_numa.sh new file mode 100755 index 000000000000..eccab95a3202 --- /dev/null +++ b/tools/testing/selftests/net/reuseport_bpf_numa.sh @@ -0,0 +1,4 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0 + +./in_netns.sh ./reuseport_bpf_numa diff --git a/tools/testing/selftests/net/reuseport_dualstack.sh b/tools/tes= ting/selftests/net/reuseport_dualstack.sh new file mode 100755 index 000000000000..82cc8e345a83 --- /dev/null +++ b/tools/testing/selftests/net/reuseport_dualstack.sh @@ -0,0 +1,4 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0 + +./in_netns.sh ./reuseport_dualstack --=20 2.43.0 From nobody Sun Feb 8 19:48:46 2026 Received: from relay.virtuozzo.com (relay.virtuozzo.com [130.117.225.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4E23B26C3B0; Tue, 27 Jan 2026 22:52:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=130.117.225.111 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769554326; cv=none; b=YOZa6I/NZqipTVgUDNREJu2YPV53KUrkA9HF9ghjL32k9HRt0bw3lMmWgtXY4+YUwjAgb5AAgrqn7/NVFyZ7eKoMabjzO8KFbeiKvm2y6XLr24yWzgA6Xq0es2TumGQ1e9+gX9P5934S1fa4yZ4ljGiaTSh7wYWsBgKY9+fRE0c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769554326; c=relaxed/simple; bh=cup0bCUk/lNTrWk4tM8eA6a6bf6h4KPh7ieNzbcZWqg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ZEqaK79/iyoOFtczA59CNomPIvglXE2UjnU/IeLwJlWNil05zEV3xrYY/DYXco7ytWnsomcaZBJkULqKDNmxPImoMOi7ikX5DRwIiFn1xbrJSGoOv1OX+gmrmrogGcNPixAfdmg/Y+OFDdTi7Ue967TySXlJOwtDY5C/oxk+d+c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=virtuozzo.com; spf=pass smtp.mailfrom=virtuozzo.com; dkim=pass (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b=de+2aBdV; arc=none smtp.client-ip=130.117.225.111 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=virtuozzo.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=virtuozzo.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="de+2aBdV" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=MIME-Version:Message-ID:Date:Subject:From: Content-Type; bh=KFcpsybEbQCcJVnoCf7kqdbKPGLMpiaYK1Bhi1Tec/8=; b=de+2aBdVgC8g Fddz6EMsjFf178DjM97chvd4N1Adc3km4/KSpMjDOdj3gBkDHylJ8PFZwTI4Wo448QhAyco3TtixO IAfrpMxWD8Nnmg3+VqZphTW3YOoCwsMiNDOIKo3ucU8CzoD0jVUqnJED/+PryFj2tVv3BfJ/eYp/8 3Wxhk3S+p+c5Nj+I/khAhDOBTNFW2Z0ABR/F3qvONoAaxeS8IPaz8kO9S/S0R/rvrkP5DhLquVbFB iuzmLd0SQbwW0Dp2MnEdKCoBVfLSc2C1MrGkh2P8aV0aI7s9Gww+zcG2rVH6QvkikD5JYtmEEVY3U TYw/r53ivNsADweJ5JEurQ==; Received: from [130.117.225.5] (helo=dev004.aci.vzint.dev) by relay.virtuozzo.com with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vkru4-0080TU-20; Tue, 27 Jan 2026 23:51:50 +0100 Received: from dev004.aci.vzint.dev (localhost [127.0.0.1]) by dev004.aci.vzint.dev (8.16.1/8.16.1) with ESMTPS id 60RMq0fm304399 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 27 Jan 2026 22:52:00 GMT Received: (from root@localhost) by dev004.aci.vzint.dev (8.16.1/8.16.1/Submit) id 60RMpxdE304398; Tue, 27 Jan 2026 22:51:59 GMT From: Aleksei Oladko To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Shuah Khan , Aaron Conole Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Konstantin Khorenko Subject: [PATCH v2 4/5] selftests: net: run pmtu.sh in netns to avoid host firewall interference Date: Tue, 27 Jan 2026 22:51:33 +0000 Message-ID: <20260127225134.304362-5-aleksey.oladko@virtuozzo.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260127225134.304362-1-aleksey.oladko@virtuozzo.com> References: <20260127225134.304362-1-aleksey.oladko@virtuozzo.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Konstantin Khorenko The pmtu.sh kselftest sets up a multi-namespace test topology where the host network itself is part of the test setup. Test packets originating from the created namespace are expected to reach test interface created in the host. When firewall rules are present on the host, this traffic may be blocked, causing the test to fail. Run the test in an isolated network namespace to avoid interference from host firewall rules. Signed-off-by: Konstantin Khorenko --- tools/testing/selftests/net/Makefile | 2 +- tools/testing/selftests/net/pmtu_wrapper.sh | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100755 tools/testing/selftests/net/pmtu_wrapper.sh diff --git a/tools/testing/selftests/net/Makefile b/tools/testing/selftests= /net/Makefile index ce65763e74ef..f84f7111adf9 100644 --- a/tools/testing/selftests/net/Makefile +++ b/tools/testing/selftests/net/Makefile @@ -60,7 +60,7 @@ TEST_PROGS :=3D \ netns-name.sh \ netns-sysctl.sh \ nl_netdev.py \ - pmtu.sh \ + pmtu_wrapper.sh \ psock_snd.sh \ reuseaddr_ports_exhausted.sh \ reuseport_addr_any.sh \ diff --git a/tools/testing/selftests/net/pmtu_wrapper.sh b/tools/testing/se= lftests/net/pmtu_wrapper.sh new file mode 100755 index 000000000000..d43c23ba5155 --- /dev/null +++ b/tools/testing/selftests/net/pmtu_wrapper.sh @@ -0,0 +1,4 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0 + +./in_netns.sh ./pmtu.sh "$@" --=20 2.43.0 From nobody Sun Feb 8 19:48:46 2026 Received: from relay.virtuozzo.com (relay.virtuozzo.com [130.117.225.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 98F1E2EAB8E; Tue, 27 Jan 2026 22:52:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=130.117.225.111 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769554328; cv=none; b=MTrjXJRuRcE3fC0aZL7S0xDEOGarYUdQCacj9MIFusagwPNibwlDzgJHOlgeiydCLbmSXhEtgkI8wTSAQeCeIWwXIYmioW8R5IfxFrGkdHNv6OtDH/L6aScFsGHdtU9RRj2g0XsbBgDz8Jv8sgBP1D842FXlvHNZmdavjLZO1sQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769554328; c=relaxed/simple; bh=fAwcoqurxOiP2mlKpuJQinVz/GPCAjW6iExhrTuyN0c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IUZDHAP9akJGaGcL32EdYTWzRrIIArSaXfExjRdAttGI64fU0xSFbbASz+0lx6OuFWv1i23/IbOe2JdIOCA8eBK2G263CZA/7DeFLRDk7V0yav08ealnGIPdJZxR1h5cvZJtS3CGGuDKP0Q2eX/O/gVYiKIkEOhkffBfxYmn518= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=virtuozzo.com; spf=pass smtp.mailfrom=virtuozzo.com; dkim=pass (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b=Ms2I0qzl; arc=none smtp.client-ip=130.117.225.111 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=virtuozzo.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=virtuozzo.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="Ms2I0qzl" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=MIME-Version:Message-ID:Date:Subject:From: Content-Type; bh=bW5DtRsamE95vGAdJSFvHf3U93xrRQ4W2Xdb4GAprTM=; b=Ms2I0qzlkEog 5ruqsEb3QiEMxNVRgOc0w+3gVDJjeucexsdFpIClznfSs6iN+ZwffS86CP3tNObgxeez2W9xZz1Um 1ofAF9gm3ulNUOhVApk0peIqL4GF1eXNjrGxiFWIF77X5WOHt2yauWb1/4hPqs44GIES67ZpbTHkH RzxuGgKVVpgHsPN3mTCEsYDmmx00p+d8SVd4jcbtl+tJJXLsf+2+Sb1oe6ZsVZR39DnabC+7mWYYx FUvYorA66Me1y/t1ZYMCNuEDlbQ9D/aN1w3ns8eMfeWJQdtdquAWGLIIjpvnba1YYCyE8LPN1djMV W0QuioCF226NWT0I+XjhPw==; Received: from [130.117.225.5] (helo=dev004.aci.vzint.dev) by relay.virtuozzo.com with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vkru5-0080Te-2n; Tue, 27 Jan 2026 23:51:52 +0100 Received: from dev004.aci.vzint.dev (localhost [127.0.0.1]) by dev004.aci.vzint.dev (8.16.1/8.16.1) with ESMTPS id 60RMq1AW304403 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 27 Jan 2026 22:52:01 GMT Received: (from root@localhost) by dev004.aci.vzint.dev (8.16.1/8.16.1/Submit) id 60RMq1IW304402; Tue, 27 Jan 2026 22:52:01 GMT From: Aleksei Oladko To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Shuah Khan , Aaron Conole Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Aleksei Oladko , Konstantin Khorenko Subject: [PATCH v2 5/5] selftests: net: io_uring_zerocopy: enable io_uring for the test Date: Tue, 27 Jan 2026 22:51:34 +0000 Message-ID: <20260127225134.304362-6-aleksey.oladko@virtuozzo.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260127225134.304362-1-aleksey.oladko@virtuozzo.com> References: <20260127225134.304362-1-aleksey.oladko@virtuozzo.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The io_uring_zerocopy.sh kselftest assumes that io_uring support is enabled on the host system. When io_uring is disabled via the kernel.io_uring_disabled sysctl, the test fails. Explicitly enable io_uring for the test by setting kernel.io_uring_disabled=3D0. Save the original value of kernel.io_uring_disabled before changing it and restore it in cleanup handler to ensure the system state is restored regardless of test outcome. Signed-off-by: Aleksei Oladko Signed-off-by: Konstantin Khorenko --- tools/testing/selftests/net/io_uring_zerocopy_tx.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/testing/selftests/net/io_uring_zerocopy_tx.sh b/tools/te= sting/selftests/net/io_uring_zerocopy_tx.sh index 123439545013..8c3647de9b4c 100755 --- a/tools/testing/selftests/net/io_uring_zerocopy_tx.sh +++ b/tools/testing/selftests/net/io_uring_zerocopy_tx.sh @@ -77,9 +77,13 @@ esac =20 # Start of state changes: install cleanup handler =20 +old_io_uring_disabled=3D0 cleanup() { ip netns del "${NS2}" ip netns del "${NS1}" + if [ "$old_io_uring_disabled" -ne 0 ]; then + sysctl -w -q kernel.io_uring_disabled=3D"$old_io_uring_disabled" 2>/dev/= null || true + fi } =20 trap cleanup EXIT @@ -122,5 +126,10 @@ do_test() { wait } =20 +old_io_uring_disabled=3D$(sysctl -n kernel.io_uring_disabled 2>/dev/null |= | echo "0") +if [ "$old_io_uring_disabled" -ne 0 ]; then + sysctl -w -q kernel.io_uring_disabled=3D0 +fi + do_test "${EXTRA_ARGS}" echo ok --=20 2.43.0