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=1796480489; b=eWBG6nCbV12OeMttVqhliYKlSxtjaS9zeA+kcTVaz0Idsc7colF+PCZAwj0Pvt8aZET+ NYB6cWIKUtqU9R+i0pgLgdIFyf/TeaWwwzRG37cRfVha55N9puAJIUgyjN5hvtGuSxufD o7lBKvSxCDuVLGUX5mgzzMGWrxaGe9gSfq0TPLin+8XYJ9IqyjtimpeOZF7PPhvruOwga ETA0i6mamrH8A+ycDY6N6rTWCO4XunpHjQs7wMfZEmvlUtTYCx23lRqjYdZFl0PUUsInK f55fVMaio7VeYpqOWKaLe3oJu897xtrJmM3LyR7AgRbI6+9I81gumBGnKRCnkxA7xfQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796480489; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=ALA28kAHfGZ67cMIWx3mIQPT4S0J+2Smidja2fyrVT8=; b=IP4okId1depJ9RiVh/yx3gvavxlu0BFT4ACTjltr7cPPxNBHhO6sdL7JkEQKib8Yx22l f0vjmmmZsNLXf55Vzw7Un15y57S5PbbzGvZNe3OmaipnPujSWhxTVdydaKiFzYB4pcxvy DlZ/5g6uI6OGI4RKvzGj3ZN2AFXVFpkoFANwBJa5V+uYSq6y+xECJdtKAIGH4y+tIgAxx F9Tk/Gh6+cqG/pNBYIw+1ep02Jm3ICn08FqD/hKAJol8MTAHE+1boewjUSB2qq7fhH+XZ Ze8YbVBRabpGfoUGVvX9Mm8hQoNvZJ4xeG8D4rgx9TgAegP1xEAj5cf592gcN/IHyFg== 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=UJm89QK7; 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 AA694606A322 for ; Sat, 5 Dec 2026 14:21:29 +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=UJm89QK7 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30E701F0092B; Sat, 5 Dec 2026 14:21:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796480489; bh=ALA28kAHfGZ67cMIWx3mIQPT4S0J+2Smidja2fyrVT8=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=UJm89QK7k7iaYeHVZnbUJ1HxgzsFIPbqg456YhH0K9fu7aMHPmC17ePLah4NBtDDV 4mD1lyFGnoR6BCir5JIYeLffRUQIU/Ruzzi2tIOHk2Q8ArDTm51Qt/UZ1+kD7ZjUX+ PStTCIxm2Ti9amKpa5wdpnvbbXvSr8X4nR200FkjQgZtWpBBfwuMJd+rLR4L78f8tu q9itRSAR9ri1+RRY/YOmBODhQ7TWYm4LwCHbpIoBT8vblnfdj+vxbiHxtdBfVDNtnl FvuBtiBYpyIfNiWMg1XrAQ5yuxr/7y3EDWWBV2FxR9bW5lONz3b4ay7n/sBf4cJMRW 4yHteWJ+j59ww== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH net v4 1/5] libeth: xdp: Count completed XDP_TX buffers up Reply-To: sashiko-reviews@lists.linux.dev To: =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= , bpf@vger.kernel.org Cc: intel-wired-lan@lists.osuosl.org In-Reply-To: <20261204142030.626820-2-bjorn@kernel.org> References: <20261204142030.626820-1-bjorn@kernel.org> <20261204142030.626820-2-bjorn@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 14:21:28 +0000 X-Mailing-List: bpf@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] libeth: xdp: Fixes trailer cites idpf user instead of introducing commit -- commit 030e6e7c99b2e23af9fccfaae5698263d3fe1e21 Author: Bj=C3=B6rn T=C3=B6pel > libeth: xdp: Count completed XDP_TX buffers up > > libeth adds the buffers it sends on an XDPSQ to the driver's in-flight > XDP_TX count. On completion, libeth counts them in struct > libeth_cq_pp, whose kernel-doc calls it the number processed, and idpf > subtracts that number. Currently libeth counts down from 0, so the > subtraction adds, and the count grows by two per buffer. > > idpf reads the count only on its XSk queues. At 0 it completes all > done descriptors as XSk xmit frames at once. After the first XDP_TX > buffer the count never gets back to 0, and every completion takes the > slow path. After about 2^31 buffers the count wraps. If it lands on 0 > while XDP_TX buffers are in flight, idpf completes them as XSk xmit > frames. Their buffers are never freed, and userspace gets completions > for xmit descriptors that are still in flight. > > Count the completed buffers up, as the kernel-doc says, and say > buffers there, not frames. > > Found by an AI code review agent in review of this series. Not > triggered at runtime. > > Fixes: 8ff6d62261a3 ("idpf: implement XSk xmit") > Signed-off-by: Bj=C3=B6rn T=C3=B6pel [Severity: Low] Should the Fixes: tag point to the libeth commit that introduced the inverted cp->xdp_tx -=3D sqe->nr_frags arithmetic in __libeth_xdp_complete_tx() and struct libeth_cq_pp::xdp_tx? Commit 8ff6d62261a3 ("idpf: implement XSk xmit") did not modify include/net/libeth/ and only exposed the bug when reading xdpsq->xdp_tx in idpf_xsksq_complete(). Fixes: 26ce8eb0bb7d ("libeth: xdp: add XDPSQE completion helpers") --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204142030.6268= 20-1-bjorn@kernel.org?part=3D1