From nobody Thu Apr 9 20:28:09 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 02CD417BED0; Fri, 6 Mar 2026 00:01:41 +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=1772755303; cv=none; b=ngYueTqeAg/Zd6Z+eZ6R7BYQerSaopQ7C8Tr3u1SG2EVJf7CYSm1pGMuxRhioFGLJ/AWgYJu5cyCoGczrpqDHGjpRsyIhK2RnG2mHncJqco8vsOhHup3XqSZ3e4sfSFt1H1aOSi35BrseJOMjyvF1xkD58Wzoowls37EokLBppQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772755303; c=relaxed/simple; bh=mIZg6LyAQ5YLRYCvmDB1mT2AHmhvCBdfgRYz3Jhgt6Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bun4JkePBdfv3UMN8VHLVhQHb8W/8iW/nLljjy/eUh98npkD5Bf+EBFp0qC52EY+Sz2diZgH9AEx307RhCe4Zt0kNVhACsLkBclzLtLyFYwmk2AkMS2aE8/5OEFxuxtvUQ/u6hG/WEcqfx2H39k6fcPMPs6wJetMLDhnPUGCXIQ= 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=lYgFzp+v; 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="lYgFzp+v" 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=lYgFzp+vz8bV jRIFRxHPef/AbXW9/p++zVXQSlf4cx8lCeiDXXzeGOJczHb0fCHQSdmyHjWPfUj5M8We2fU76s0LW z8+zohTzZ8RZw0piuzVsN96EoD3qnn0X8UAmTW0ZkkAWPxxBGazF0UoR/fEyAySDkfV17ukUI/F8G VIzNQXIMHvUEn2crLmgZOMfu9C9ryJU4pMQ8QjVvHdAP2VcblnDzV/L/zM8X7HBPOcvpvmAg50PuC O2hRX/+bi9otBy0euIi58Nd53CVkBhyWdaN6zNvMZa9PBPSXMbaMJzayri2reWd9e+Lv8hYYz35UC JO+jyRwahhB9fhMgwKxkkQ==; 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 1vyIbn-006Fos-1v; Fri, 06 Mar 2026 01:01:30 +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 62601WJB519091 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 6 Mar 2026 00:01:32 GMT Received: (from root@localhost) by dev004.aci.vzint.dev (8.16.1/8.16.1/Submit) id 62601WXt519090; Fri, 6 Mar 2026 00:01:32 GMT From: Aleksei Oladko To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Shuah Khan , Aaron Conole , Ilya Maximets , Eelco Chaudron , Stefano Brivio Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, dev@openvswitch.org, Aleksei Oladko Subject: [PATCH net v3 1/6] selftests: net: fib_tests: skip rp_filter test if cls_basic is unavailable Date: Fri, 6 Mar 2026 00:01:22 +0000 Message-ID: <20260306000127.519064-2-aleksey.oladko@virtuozzo.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260306000127.519064-1-aleksey.oladko@virtuozzo.com> References: <20260306000127.519064-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 Thu Apr 9 20:28:09 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 69ED219CD03; Fri, 6 Mar 2026 00:01:42 +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=1772755303; cv=none; b=hQu47qpdrKYuVXQzmZzhcmQCeGbxhTUmcsS2a91Eea3WJOAjvNsxc4urzkMLNoFjClqEXFZerlzruAy+qRG+eSMt8hbZymBCZK3rFZ+VrcZKB07vVwBLlYui8/XWDduX/7JF5UG8/A1c/YTXKT0F/EarkX2CvOtndyD4vugTCpU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772755303; c=relaxed/simple; bh=NipXyq8Olunpd4nLlWBIUAlNUcuzVjyuhISS0mQU4mU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=H+/7sieH8F0EANQ79vM4djf2MQHuAYsYlk6RTgUjqQtA+xDKDePGnM+S+cXXhHWpcHxkLAY/N/esg2SCeMYlTtegXlae5IXT/SB9C2ipxzTQK6/0fhe3yf+UbfJkwcccJqmGdmw/2WFh1TCP23kohkiffW2ipsWtDS4pIOI74fk= 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=EiBaFP+6; 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="EiBaFP+6" 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=EiBaFP+62SgY hzE7YHWHnvQWN8et7YvBMAi7UiryoWw27nB82dxPExDZX35KA+Wdtla0Es1x/kBUBctebwiZlB2TT wEFBFinZBmE7bHNlpocvro34zMDlzhPWgpntf72oOcWidP30N56v2G2uQerQpLIN+FqxbN8OJQHUE uqDTdlpou6IdCHXvLjVjGHGzI20gAuIu/zZDhtCQaH0GNtXO1T5oVapJ36Ul0EflKhcgqxgYD0lc6 o0C6iMBHpbh6jwqP3/qEL4JWDdjZ+DWilWbHA+JOKR/uRWO9mrWuRdilsiIlZqITGSNnPWxEsatFD cMyR3+lcMZAS1/tA57d1DA==; 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 1vyIbp-006Fox-0V; Fri, 06 Mar 2026 01:01:32 +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 62601Yaa519095 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 6 Mar 2026 00:01:34 GMT Received: (from root@localhost) by dev004.aci.vzint.dev (8.16.1/8.16.1/Submit) id 62601YSu519094; Fri, 6 Mar 2026 00:01:34 GMT From: Aleksei Oladko To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Shuah Khan , Aaron Conole , Ilya Maximets , Eelco Chaudron , Stefano Brivio Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, dev@openvswitch.org, Aleksei Oladko Subject: [PATCH net v3 2/6] selftests: net: make ovs-dpctl.py fail when pyroute2 is unsupported Date: Fri, 6 Mar 2026 00:01:23 +0000 Message-ID: <20260306000127.519064-3-aleksey.oladko@virtuozzo.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260306000127.519064-1-aleksey.oladko@virtuozzo.com> References: <20260306000127.519064-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 Reviewed-by: Aaron Conole --- 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 Thu Apr 9 20:28:09 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 00D7D2253A1; Fri, 6 Mar 2026 00:01:47 +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=1772755317; cv=none; b=o7Io5jtrZe1VUOOy9N5SNe/jII2UFKO0a53MYgcfupwFb0P5suApLY87V3pd9RbpFulwuEVtpWpKH2ZgRj8fruQORAP7tvwPJO68Pm3IvMrkY3kR0h2pz9s6GAwJaSLyVQ7Nli6wFnW8gLHKAxcmyMLOpc4umh85zpPbEevLZDE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772755317; c=relaxed/simple; bh=HhABws9VtrB1n3AbbwLetzTMyAAfLcDTo08zkvKQMQ4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=C3NWdExoJ1We5b6Hrq6xAW36ss6yfhLzWdau8QQDI07D4JXwkV8943FxxcV+kyIhh+Vu20j3iF8TS9V4RIWR175h+aUmW+Xco158Nfj4ED+4XmNRnqqheST/BfS3QQC+nXnVaxhhruiy1EjVtoNwnQNoTsEECn67xaEkqmycq0I= 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=tEfZet3u; 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="tEfZet3u" 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=korn0yTDSXFwIp6ed9M6g4Gy/Z6W4bLaSV37nGpGjqo=; b=tEfZet3uFCcg EzIyvsae5Ob3E+N/UZfSG1YCL+tnx6zLQ2oZdSFk1otP8bi0MTgi/TWi1qUWTcEUxLqzwGlmJBrmE qQMKn6E1kQeJFS5qE7o5cXQh4a1+a897VPawu5JpENW5SQpkrn33RYXTZEDx3s08luNoYY59Vf10a eGL7jPkFSs71fmjEjYvlXHCCiwLMr+V9/rP7NzuvzoLcNuAHhiVTExI4vGMkvBa+icfgmdlEKPyaT BPnXZnkJLwEFRY0Dgi5+Rd8fVhPHHFQ/spVcRtXJPTTxdDfNFJQ8AABdW6jUzIyy1Z37fa6DyLUe5 Jd7iDhkKZjMOrsISy76CmA==; 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 1vyIbq-006Fp8-1w; Fri, 06 Mar 2026 01:01:33 +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 62601Zpv519099 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 6 Mar 2026 00:01:35 GMT Received: (from root@localhost) by dev004.aci.vzint.dev (8.16.1/8.16.1/Submit) id 62601ZAa519098; Fri, 6 Mar 2026 00:01:35 GMT From: Aleksei Oladko To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Shuah Khan , Aaron Conole , Ilya Maximets , Eelco Chaudron , Stefano Brivio Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, dev@openvswitch.org, Konstantin Khorenko Subject: [PATCH net v3 3/6] selftests: net: run reuseport tests in netns to avoid port conflicts Date: Fri, 6 Mar 2026 00:01:24 +0000 Message-ID: <20260306000127.519064-4-aleksey.oladko@virtuozzo.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260306000127.519064-1-aleksey.oladko@virtuozzo.com> References: <20260306000127.519064-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 605c54c0e8a3..8935967ad448 100644 --- a/tools/testing/selftests/net/Makefile +++ b/tools/testing/selftests/net/Makefile @@ -67,6 +67,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 \ @@ -145,6 +149,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 \ @@ -173,10 +181,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 Thu Apr 9 20:28:09 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 9D0AF242D89; Fri, 6 Mar 2026 00:01:48 +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=1772755317; cv=none; b=qOENOexiiEoMFoHC32GFvJ8IjBLviWynp5lBIGtwa0wgiP19cvLcMJpn41oFQ0641D4YVFwb484+u+POu13Q5XI0VrkQ/fgbB9bcbodOTNUDI/uTsBx1x2POjALHppXeqSYfQdgTvItkuDSad5WqUyY1arbW4HXIVre1YIutd90= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772755317; c=relaxed/simple; bh=At6h+EskauDBaA878gOENOXj2rvTCXCRxvx6/IO3Hr8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=H2cH/UKrWWr3Q/Z5Y2YYf1F1H3D1nYw5ocXxVOGDdgcFcK4AEbJPpoyJ5pZFonotDZP5jwP5cuaBSNsG00WpBVuDAvgg3Y4E5Op+tGwFtyI/cznJLtALgNBdPmXMXEsXiaDaEwgn+6BNrNezV+WBVlg/fZxgi0W5VPcyON7kf/Y= 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=cRbx52E5; 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="cRbx52E5" 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=YBLSb9yqzf06qC3jqMe2A7htFbxo6l7F/VdwMYNeQ8I=; b=cRbx52E5aQVZ NOVWkx6q28jfZi9N2OV0uOyi9K+MM8xMZFLmopKMFhMx4GrF+tbGpipKvmizVeq+JblToiiZMC6kj rbgbBs8qOMrzTO+72g1I6QLrkOSlAmqTog5EuFFj+iJSF2f42fmNiWmSt1SjgxOUNqppJZsLIaPcU fRZZWS5fIz76isf8QRTye2iBx6U1tclaux3mcmZotHhCK2v0TyWh/Jczply0WbQfSou2L8j8mmqva cx2ulePbPU2P2pfLewd7+PaWs4wACCAlHxoSBoLzh6kdgaXikbZEGmNn5J6q8NRALV5TAaF8UUGlm 8IeV7MunJeCzcC6CeJ3Shg==; 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 1vyIbr-006G4B-2z; Fri, 06 Mar 2026 01:01:35 +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 62601b4L519103 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 6 Mar 2026 00:01:37 GMT Received: (from root@localhost) by dev004.aci.vzint.dev (8.16.1/8.16.1/Submit) id 62601agu519102; Fri, 6 Mar 2026 00:01:36 GMT From: Aleksei Oladko To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Shuah Khan , Aaron Conole , Ilya Maximets , Eelco Chaudron , Stefano Brivio Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, dev@openvswitch.org, Aleksei Oladko Subject: [PATCH net v3 4/6] selftests: net: rename pmtu.sh to pmtu-test.sh Date: Fri, 6 Mar 2026 00:01:25 +0000 Message-ID: <20260306000127.519064-5-aleksey.oladko@virtuozzo.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260306000127.519064-1-aleksey.oladko@virtuozzo.com> References: <20260306000127.519064-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" Rename the pmtu.sh test script to pmtu-test.sh. No functional changes are made, only the file name is updated. Signed-off-by: Aleksei Oladko --- tools/testing/selftests/net/Makefile | 2 +- tools/testing/selftests/net/{pmtu.sh =3D> pmtu-test.sh} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename tools/testing/selftests/net/{pmtu.sh =3D> pmtu-test.sh} (100%) diff --git a/tools/testing/selftests/net/Makefile b/tools/testing/selftests= /net/Makefile index 8935967ad448..b9eeeffa5fd2 100644 --- a/tools/testing/selftests/net/Makefile +++ b/tools/testing/selftests/net/Makefile @@ -63,7 +63,7 @@ TEST_PROGS :=3D \ netns-name.sh \ netns-sysctl.sh \ nl_netdev.py \ - pmtu.sh \ + pmtu-test.sh \ psock_snd.sh \ reuseaddr_ports_exhausted.sh \ reuseport_addr_any.sh \ diff --git a/tools/testing/selftests/net/pmtu.sh b/tools/testing/selftests/= net/pmtu-test.sh similarity index 100% rename from tools/testing/selftests/net/pmtu.sh rename to tools/testing/selftests/net/pmtu-test.sh --=20 2.43.0 From nobody Thu Apr 9 20:28:09 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 8983A1D5AD4; Fri, 6 Mar 2026 00:01:50 +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=1772755323; cv=none; b=HDBQgi/OTSydrh5oWOesBnj6ndssCdznO1xRmbKL0O8TDV2ZaWbC3PE70rB/nIxAYhjLoaK8xFryUZ+6FJGYG02fZ5Ub961WDJgFC1J/pS/obXKu9quwGQ0gtPFiCYbH6VC+9KyqqD2A2pzLDziBo7iMGAoTClojCgexTNU41yM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772755323; c=relaxed/simple; bh=fhTfgUIcQ3y4hKSQw3oyq2gN1XbWjUDB8bmqXhAWjqs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Dlv7G1hfH1LFgon/4+vX2J+ghXs+uUfGZkVl70I+tPnhL2sdOHNRTGu6OhtsLOIKsB7Md51x/6SNfdh6s/ZKNcDGGGNDGeBmeeSKu0vKXZjJalcxrg4rsDxmCUTIYg5w6nFwnxs9uyKk2BTkMNqTsud7LQAvFNSVLXThpPc9Mrg= 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=QTuGlxsr; 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="QTuGlxsr" 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=mINb8Y4urQ3Ce2/gZIEe5yET0uG5j4QIGs1pRxm5EHU=; b=QTuGlxsrnyWl a6AZVwKRMaNpjlrvV7beX3+TQbjdUHs3GyGEqDHDMZ5jzHSVERz7DmG6cDAU2AMImGy5mWNt+aERd LCEmbwg1O4EGxR3OS0DmyxO07U8mOOx1VyH6dLdxFUMkagNXD3MP5bNBahwWj3uDpZVkR8FG9sxCH ImibPGsYk4pA+x1Th0dqb1N07ng7H+Bwzr50t2xzMDBP+LSK6Mn2hXiHwKEGR/nDlMkGXZgJtwbHl BWtzrKx4MgLioXa9jQKWTkWbDIYElzYYCxDHutrpD1knICsorQ/gcX1CoTQdR1v9KWJmZv3afUit+ 61qbO2uFAlrz/5//2IEPUQ==; 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 1vyIbt-006GPD-0u; Fri, 06 Mar 2026 01:01:36 +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 62601cNp519107 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 6 Mar 2026 00:01:38 GMT Received: (from root@localhost) by dev004.aci.vzint.dev (8.16.1/8.16.1/Submit) id 62601cNI519106; Fri, 6 Mar 2026 00:01:38 GMT From: Aleksei Oladko To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Shuah Khan , Aaron Conole , Ilya Maximets , Eelco Chaudron , Stefano Brivio Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, dev@openvswitch.org, Konstantin Khorenko , Aleksei Oladko Subject: [PATCH net v3 5/6] selftests: net: run pmtu.sh in netns to avoid host firewall interference Date: Fri, 6 Mar 2026 00:01:26 +0000 Message-ID: <20260306000127.519064-6-aleksey.oladko@virtuozzo.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260306000127.519064-1-aleksey.oladko@virtuozzo.com> References: <20260306000127.519064-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 Signed-off-by: Aleksei Oladko --- tools/testing/selftests/net/Makefile | 3 ++- tools/testing/selftests/net/pmtu-test.sh | 4 ++-- tools/testing/selftests/net/pmtu.sh | 4 ++++ 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100755 tools/testing/selftests/net/pmtu.sh diff --git a/tools/testing/selftests/net/Makefile b/tools/testing/selftests= /net/Makefile index b9eeeffa5fd2..363cd1e2cf8e 100644 --- a/tools/testing/selftests/net/Makefile +++ b/tools/testing/selftests/net/Makefile @@ -63,7 +63,7 @@ TEST_PROGS :=3D \ netns-name.sh \ netns-sysctl.sh \ nl_netdev.py \ - pmtu-test.sh \ + pmtu.sh \ psock_snd.sh \ reuseaddr_ports_exhausted.sh \ reuseport_addr_any.sh \ @@ -194,6 +194,7 @@ TEST_FILES :=3D \ fcnal-test.sh \ in_netns.sh \ lib.sh \ + pmtu-test.sh \ settings \ # end of TEST_FILES =20 diff --git a/tools/testing/selftests/net/pmtu-test.sh b/tools/testing/selft= ests/net/pmtu-test.sh index a3323c21f001..2ba6bc0252f0 100755 --- a/tools/testing/selftests/net/pmtu-test.sh +++ b/tools/testing/selftests/net/pmtu-test.sh @@ -976,7 +976,7 @@ setup_ovs_bridge() { run_cmd ip link set ovs_br0 up =20 run_cmd ${ns_c} ip link add veth_C-A type veth peer name veth_A-C - run_cmd ${ns_c} ip link set veth_A-C netns 1 + run_cmd ${ns_c} ip link set veth_A-C netns $$ =20 run_cmd ip link set veth_A-C up run_cmd ${ns_c} ip link set veth_C-A up @@ -985,7 +985,7 @@ setup_ovs_bridge() { setup_ovs_add_if veth_A-C =20 # Move veth_A-R1 to init - run_cmd ${ns_a} ip link set veth_A-R1 netns 1 + run_cmd ${ns_a} ip link set veth_A-R1 netns $$ run_cmd ip addr add ${prefix4}.${a_r1}.1/${veth4_mask} dev veth_A-R1 run_cmd ip addr add ${prefix6}:${a_r1}::1/${veth6_mask} dev veth_A-R1 run_cmd ip link set veth_A-R1 up diff --git a/tools/testing/selftests/net/pmtu.sh b/tools/testing/selftests/= net/pmtu.sh new file mode 100755 index 000000000000..1805fa44a2de --- /dev/null +++ b/tools/testing/selftests/net/pmtu.sh @@ -0,0 +1,4 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0 + +./in_netns.sh ./pmtu-test.sh "$@" --=20 2.43.0 From nobody Thu Apr 9 20:28:09 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 0BEB91E8823; Fri, 6 Mar 2026 00:01:51 +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=1772755323; cv=none; b=CF/b8ecxhUFO1yvO+f1wP0xk9BeR+3a9tCbpvv5kzKg18kWCl+RGGPikl0tejHzDGTFZxfJ4xPuyQCrEPyWQakgpSeDY7Rg1TKBtSx3clfuiAwIlqVvc0wVylTMju3YL+z2AgwHsOtx4PIN0i3f/f/VmAcHq5XNZ2+No5Akqxsw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772755323; c=relaxed/simple; bh=fAwcoqurxOiP2mlKpuJQinVz/GPCAjW6iExhrTuyN0c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Hm3HI0nSvrqi0rdILZBDEbYEZKTCaFnUerqIy167hHkU2fLnQedOORKVDW2scfo0C0Z2t6aIFHBCYuH6IMkjEt4ITRNYDpBR8Y+ymxZ9w59rdpPfjXh/iEEN1nYsq+OK888OuzWg0p1CrHbc2QiwXVyvXKuw0+Z2ah1wrepWwiQ= 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=wIQc+2Mc; 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="wIQc+2Mc" 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=wIQc+2Mcdi14 BBOsupzb8YV++bnmsUAYmuPljVTo8i1AolhJmP917+7nFxb9lLOFo0lbzzPaQ2w1P+QwvzcNZCpQI jepASJ0MxRKM0xtqCosqfzjMZb52uDA+SBs1GeoC+C22+muVSzmr810y7369ImiKZTSPVMMbb+fo3 fWgZjFrkGFTPafNB/eaaF2wUI1MAoISiBii/Q05zZSbQ/yeENrGw2Q6D6pY1Gku++pkjhQiTHRCsn cMZiMCPdeaKs2hXJG6udkQ9bbCZohIF+o2PDvjGPmcniFSJv4LCSozCUb/E9WngD6MLKFlxyqNluJ y8YU+Pa5BEoo18WOY0BEfg==; 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 1vyIbu-006GpO-39; Fri, 06 Mar 2026 01:01:38 +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 62601eNq519111 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 6 Mar 2026 00:01:40 GMT Received: (from root@localhost) by dev004.aci.vzint.dev (8.16.1/8.16.1/Submit) id 62601doY519110; Fri, 6 Mar 2026 00:01:39 GMT From: Aleksei Oladko To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Shuah Khan , Aaron Conole , Ilya Maximets , Eelco Chaudron , Stefano Brivio Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, dev@openvswitch.org, Aleksei Oladko , Konstantin Khorenko Subject: [PATCH net v3 6/6] selftests: net: io_uring_zerocopy: enable io_uring for the test Date: Fri, 6 Mar 2026 00:01:27 +0000 Message-ID: <20260306000127.519064-7-aleksey.oladko@virtuozzo.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260306000127.519064-1-aleksey.oladko@virtuozzo.com> References: <20260306000127.519064-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