From nobody Thu Apr 9 21:57:45 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