From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fhigh-b8-smtp.messagingengine.com (fhigh-b8-smtp.messagingengine.com [202.12.124.159]) (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 58B552F3C10; Fri, 14 Aug 2026 01:23:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.12.124.159 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786670638; cv=none; b=cIfxrwHjJJL+xhZii02kcEiyKxCjpH4cONEqehK/ZLzjyQ9kaDDfjbAaXTqbV5DjvLVHvKFFnlTOsiE5FkzSMpup3ReqbG8PoMlvRP8W25mxBHaIY+OeB56QtYL94/91oxcPosh5WAi4ivMM5ZJ1by755lsQhAzDOBDH7peCsMc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786670638; c=relaxed/simple; bh=eWDj3kkPBFHQfyTEjMW902qILN3TU2T9Zq2jz1SA9nE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=heN1URvJAhIrKqBNsrHxoOsFOq59wc1pBZGQh/MPFVqRvtIJpuL1aaSIIGBOQLMYErrg+mm7w2EQibnz4SwI6d7BTDzDiY/vQGCh4Ehkn7KF0G9Ne45js4pvw18yPfwzDMOHOjSD0Dz/u0OSohrvFeuQ78vlk4+AvzQA79eskCQ= 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=SmQL7wxZ; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=jAgHIWsW; arc=none smtp.client-ip=202.12.124.159 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="SmQL7wxZ"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="jAgHIWsW" Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.stl.internal (Postfix) with ESMTP id 2F8737A0119; Thu, 13 Aug 2026 21:23:55 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Thu, 13 Aug 2026 21:23:55 -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=fm3; t=1786670635; x= 1786757035; bh=q7pte3tk23ZD+tvkYa9GrmKRYW53b1N7+AJyYvzvjS4=; b=S mQL7wxZSGDr4btt0W7XzJ6rUeImdb0t8r05ZUBCrFHgP+FbrKKEABjrSDsxVyp0y atAv26dV/H0pYXsgKk9ZC5Tosg2y3VcnJA0cOAtRfd33lFV/zgsmG39SncoPUINw Y8s54j8+McuRiJ/oOZ2/0WJFsjtE1ndL6y00xkXHXU3rFiNB99fSnIW0OsGltXkx tJmCJFENY+Xxhq5KaC4kVnq42EyIZeNvmLnAqbONxPdEir5ozW/u4gXZMji4x7Jj JKrzJUJRibeiJ/DUakqQK10ZYXtsE3i2eh4VIjCd34dnXxqAzfcMAxPgbNbRNvJq QiMp2XYCEOtosUic3Rk2Q== 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=fm3; t=1786670635; x=1786757035; bh=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sxdiwSs2wqE285H0Ud5IZriW4qFxtW5VDkQrJywcir4NsJ0w X-ME-Proxy: Feedback-ID: i80b64ba7:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 13 Aug 2026 21:23:54 -0400 (EDT) From: Juanlu Herrero To: netdev@vger.kernel.org, dw@davidwei.uk Cc: io-uring@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, kuba@kernel.org, asml.silence@gmail.com, pabeni@redhat.com, shuah@kernel.org, Juanlu Herrero Subject: [PATCH net-next v5 1/6] selftests: net: fix get_refill_ring_size() to use its local variable Date: Thu, 13 Aug 2026 20:23:43 -0500 Message-ID: <20260814012348.46958-2-juanlu@fastmail.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260814012348.46958-1-juanlu@fastmail.com> References: <20260814012348.46958-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 its local `size` variable instead of assigning to the file-global `ring_size`. Assisted-by: Claude:claude-opus-4-8 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 f6a8fc5fac241..df6b622043438 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-Meta