From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796214056; b=CCJc37OZaqCnF5jVPJF5qc5UgvXUw4PJi3wurqIBbtLFazqQdAltDDTfszTwOiqjJQiC 4O1nPxWdPypqPPeyfQ2wftqRYCUgqkwpGzywMDH7VVi2HcAs2aM+OtZC1mZxbRTOm2q9z x3N2uDiOwDXMtUpZTmP+7pjQQ2eGADiMH6Otm5FSw4DKeevPcZREYMioa0PL5RM/zYzYS ZfY8+KI9yOmpbaP0v+MBlaMfh2I4b+PnBbbYa5lGaGEvOfDIWiIuqg3aPSWi9r54gyC56 N9n3LCoxCoyViMwcgGkalogds+W0aMTPcF3AbQGQ2MVJapMzgkdLLZOD32I9vO0SV+Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796214056; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=F0EITQHUv/Nhn2WgFXk7DbRfZ6OmoqFFxxH9v+WOGbY=; b=Fesd0qM1R53cib/QNjdhuaK+jc45pY5ycZ0hebCYkrhT8SRAqgXq3hw57Ses6PwZEPmL +c1ZElr3b2p7IZ7rtkn31pID81GkZuVac+lziP3JsOPM8KYTEsQ9U2SBYM8IpW7LPF6GY ruHC0gxJBLB1QkHvcLI0hw9D4azPCYVD2OCJiuncfU2Mr+JYJChsz2nVm7LVL05g0An4n YjgC9uaHoIg+uXgIE/9PGXVzcTqosdiS+RfK2HdcZhlOqzObs4RtahNKFtiUyD1apFujP xue4+LNeIQzQo1IXWhzGulqaZOzHs59T/HaWXsiJGKiqhyjMsk+AVJcfUhhWvgxhaSg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=VitI+74D; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 844F8606A31A for ; Wed, 2 Dec 2026 12:20:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=VitI+74D Received: by smtp.kernel.org (Postfix) with ESMTPSA id DAE6B1F00896; Wed, 2 Dec 2026 12:20:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796214056; bh=F0EITQHUv/Nhn2WgFXk7DbRfZ6OmoqFFxxH9v+WOGbY=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=VitI+74DasDaEmEq+LMSe4je71lBaafq8BqAJJd52IiLmHLnCKSwB01ZfmwnPrgv8 C87VB+t75U3U6FzRziEW73cTNDapdLy8Kxz8ioNj+/mheq4wmhdeQzfnRjxtuH98D5 gy542rEMFEJmSOFQBO7zVd76M9U44R9NkXfvxTfpCvV6lp0S/1Ui92RRe5bQtAFTUp K5GCTXTCFSzdiUm5NiqoAGNL9K68oln4+Rv+pD2Ouwephnb1k/ujIhor3WvxSGU7SP /nMMNqnuDyAIQS7vBzBtm9S/ENb7oZLz++CyBFgnhG5pkF15Hrf0cLXz5ZAEwUjAoz zFVZGFHIhyedg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH net] net/mlx5e: Fix the missing WQE count of large striding RQs Reply-To: sashiko-reviews@lists.linux.dev To: "Tariq Toukan" Cc: linux-rdma@vger.kernel.org In-Reply-To: <20261202121422.3422569-1-tariqt@nvidia.com> References: <20261202121422.3422569-1-tariqt@nvidia.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 12:20:55 +0000 X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > mlx5e_post_rx_mpwqes() counts the WQEs to post in a u8, and the RQ > keeps its in-flight UMR counters in u8 fields: >=20 > missing =3D mlx5_wq_ll_missing(wq) - rq->mpwqe.umr_in_progress; >=20 > A striding RQ can have more than 256 WQEs. Its size is set in packets > of up to the MTU, up to 8K of them, and a WQE holds fewer such packets > as the MTU grows: with 4K pages and an MTU of 9000, a WQE holds 16 of > them, so a ring of 8K packets takes 512 WQEs. An XSK RQ can exceed 256 > WQEs at any MTU: a WQE holds only 8 or 16 frames of an unaligned UMEM > whose frame size is not a power of two, so a ring of 8K frames takes > up to 1024 WQEs. >=20 > The first refill of such an RQ computes 511 missing WQEs, truncates > that to 255 and posts them. From then on, the missing count is 256 > [ ... ] > packets. In the TCP test, 192 connections on one RX queue send 1MB > each at the same time. The XSK frames are of an unaligned UMEM. >=20 > Fixes: fd9b4be8002c ("net/mlx5e: RX, Support multiple outstanding UMR pos= ts") > Signed-off-by: Tariq Toukan Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202121422.3422= 569-1-tariqt@nvidia.com?part=3D1