From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fout-a2-smtp.messagingengine.com (fout-a2-smtp.messagingengine.com [103.168.172.145]) (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 BBD5D3B3C11 for ; Wed, 8 Apr 2026 16:38:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.145 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775666320; cv=none; b=LC0lc2bSNoBBNbsOT/4mZxlQpGtK4oolyYE5Dp7mphmn5sC3N4kBV9WEqz/QUAAnT4RXP3WR7prlz1/4NdzmlbO1KTXpLDuawm0QVLiJFVdT06rT5D0rUCwee9lCdvgYMYTds+srLDSIS/nc+FFHp3aBfLtUZ11q0Op5qOsINvI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775666320; c=relaxed/simple; bh=KlPmwoeMgWHTjATVRUnw9M5waW7wNMphDVZ7SE5c/Q8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=BQimvwAtLTPLZfunuNoHuYUG3sGIhhs6SnVVVtiKB53CQ2gql2RYbvgpCuZpkasExp8JXe2DwP48PzqtOgRsVehp5MLx3KNPcW0O26LxWfcrXhmZ/UTHTojoyMCOfXniC88AOUrDpt+Kp5Po9vC/yBJ06GDNJ/iZ+fjCI+6ZLqo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fastmail.com; spf=pass smtp.mailfrom=fastmail.com; dkim=pass (2048-bit key) header.d=fastmail.com header.i=@fastmail.com header.b=mIKiSUgo; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=rpMtodrf; arc=none smtp.client-ip=103.168.172.145 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fastmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fastmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fastmail.com header.i=@fastmail.com header.b="mIKiSUgo"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="rpMtodrf" Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfout.phl.internal (Postfix) with ESMTP id E881DEC01BD; Wed, 8 Apr 2026 12:38:37 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-02.internal (MEProxy); Wed, 08 Apr 2026 12:38:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm2; t=1775666317; x= 1775752717; bh=hoqNxZTzX5z9bT52hTg5m+WV+ktsLfPv9BSaF8nPgaM=; b=m IKiSUgoZ8BGwaBR46hnWXwKoaaYLlwoz0iLY6tLYs93YVXSr8jMzPL5jPVrX3H/k 5qy2REd/8jiSsQ1YdCFDmLDYKaXb+H5OBDeIXaNzXwPem3Cj4yGl7L8F3hP2WUPs t99GYapJNpU0ugKL+w6toiU0HtS3M9+MGNj4PAcJmBVcRZ6KI+6fkRgd4iieDAuF QL6gAlM6K9/7Mrb5Ti58zGfHp4jg6D/ENGN8E/5B2gZsxLCKHxtC5u2P2BhJ8wqk qheAxT6S2KvPXCCqdvT79Npjz++4D7CqC/R5yobvQzBsnA0+62KhQcqR68QhKf5F NeWtMkXnr8h442L75HQTA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1775666317; x=1775752717; bh=h oqNxZTzX5z9bT52hTg5m+WV+ktsLfPv9BSaF8nPgaM=; b=rpMtodrfntRxjkTW3 Va1uNdfW3KR4mr55eIBL5xgtCAyfTXWMWHLZh9mEaDJ1GJmdmx3jUAFcOmL3X2+B RYPFfuEhTySceEuH+BnCk+YXkby75uWVORyrnJWTKNwc3AGfT6ca2aiTnqzSCClD 41EPcBaAYQyhO/yAowoTAd/mfsbelC+oifCS4yABXcNnC0EKy2xfOz6jl2tx87Cd PDl7NmRaZXKGAu6hgd4pFuKPQo0YYmZmejwGDSs88ifBanu2xvvPxBuoI8dyv7/+ UYUn/ni5OtMAEgvVnv4Y2adZtG9bgilqr5VSE56QtM07qU7cFlP1QtyX/SmrMQju NKKZg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgddvgedtjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgjfhgggfestdekredtre dttdenucfhrhhomheplfhurghnlhhuucfjvghrrhgvrhhouceojhhurghnlhhusehfrghs thhmrghilhdrtghomheqnecuggftrfgrthhtvghrnhepgeeiieegudejfedvheehjedutd fgffekgffguedvhfehkedtvdekkeehkeefheevnecuvehluhhsthgvrhfuihiivgeptden ucfrrghrrghmpehmrghilhhfrhhomhepjhhurghnlhhusehfrghsthhmrghilhdrtghomh dpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepnhgv thguvghvsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtohepjhhurghnlhhuse hfrghsthhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: i80b64ba7:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 8 Apr 2026 12:38:37 -0400 (EDT) From: Juanlu Herrero To: netdev@vger.kernel.org Cc: Juanlu Herrero Subject: [PATCH 1/5] selftests: net: fix get_refill_ring_size() to use its local variable Date: Wed, 8 Apr 2026 11:38:12 -0500 Message-ID: <20260408163816.2760-2-juanlu@fastmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260408163816.2760-1-juanlu@fastmail.com> References: <20260408163816.2760-1-juanlu@fastmail.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit In preparation for multi-threaded rss selftests, fix get_refill_ring_size to use the local `size` variable, instead of the `global_size`. Signed-off-by: Juanlu Herrero --- tools/testing/selftests/drivers/net/hw/iou-zcrx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/drivers/net/hw/iou-zcrx.c b/tools/testing/selftests/drivers/net/hw/iou-zcrx.c index 240d13dbc54e..334985083f61 100644 --- a/tools/testing/selftests/drivers/net/hw/iou-zcrx.c +++ b/tools/testing/selftests/drivers/net/hw/iou-zcrx.c @@ -132,10 +132,10 @@ static inline size_t get_refill_ring_size(unsigned int rq_entries) { size_t size; - ring_size = rq_entries * sizeof(struct io_uring_zcrx_rqe); + size = rq_entries * sizeof(struct io_uring_zcrx_rqe); /* add space for the header (head/tail/etc.) */ - ring_size += page_size; - return ALIGN_UP(ring_size, page_size); + size += page_size; + return ALIGN_UP(size, page_size); } static void setup_zcrx(struct io_uring *ring) -- 2.53.0