From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A5E95606A322 for ; Sat, 5 Dec 2026 14:21:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=osuosl.org header.i=@osuosl.org header.a=rsa-sha256 header.s=default header.b=DCPdmSim; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=UJm89QK7 Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 82E1460618; Sat, 5 Dec 2026 14:21:35 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id i3_OQ2hFhZUX; Sat, 5 Dec 2026 14:21:34 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp3.osuosl.org B35C16064A Authentication-Results: smtp3.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1796480494; b=bsJh3oXB9T6pPIEkD1LiGx2i0InFsrja7XZKP4xVSsi//ZQwD3WrXAXItYagtWGsxLTt bEkszbx7eUZ64SXJrbg+y66iR2+P/L7+V0YjEjSK7id2EvpczxL0LIX7YgxXAc4cHB9NG 3tow+3aBURmdDY35C1wNpDGaebXDRkKv6IMfhWFAmS3ELLBRzai33QWpRjr78I0JLW3pP LSqV9tH7h4Z4Vg6J9EaQ4RG+f5U1G7EMNkYoY6Nn8qIFctUNw9MhDEwe+BOLbIgeI06u0 OhoOCaWvS6gL0CWentaPWAvx3SbNFd77EXnuwoZ/EONL96tGZNu82PHNBxGvvwsvUtA== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1796480494; h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received: Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level: X-Spam-Status:Received:ARC-Filter:Received-SPF:Received:Received: Received:DKIM-Signature:Message-ID:From:Subject:To:Cc:In-Reply-To: References:Content-Type:Content-Transfer-Encoding:Date:X-BeenThere: X-Mailman-Version:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:Reply-To:Errors-To; bh=ALA28kAHfGZ67cMIWx3mIQPT4S0J+2Smidja2fyrVT8=; b=P6Klc2Y+RQG9swxz+TQj2C27hQqZ4X8CQVgh/iinusbieZlDMBr5sYgX8bgA/21bRQMD 7D1aLot97YtYJOHtDwJ525BStIXJHKj+7nklPAgHlRUA9Qt3pRwKVaXD1ilasvT4cIKva +VNuow5IP4st9ERvoYO/Ai3mMPd7roJ5xx8U/4i2cR2tsjU1aXU5FluxRWsMYoNmU43re a/AKiepmLZ945Yot+rD+3OtS3idKEnEKILMevDRhFL49mmRAibdKY2+KV/2nReij4vx+T XMiwrYUV07sI7wddy6cwnlle4KYMilvQbtC31+/otdI/AbQxf+n3VBYuc4CEmAeIMCQ== ARC-Authentication-Results: i=1; smtp3.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1796480494; bh=ALA28kAHfGZ67cMIWx3mIQPT4S0J+2Smidja2fyrVT8=; h=From:Subject:To:Cc:In-Reply-To:References:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Reply-To:From; b=DCPdmSimX8QBNmkoZZelBrj94UK5VcAo2/gwVncQ5Fq328idjORfWjCoQUxZXHqTf S2tGHeTFnr92/r4hbRzkvj6Iz1ExVinpQTz5u5+OODuVacPHdAqt/BfXecS+ERbI/Y xrNxHvSL89+QWCiJcMPXAUk26ltZ209hqol0PQuiiVw0y1WpeROWCPJQ1nwLDnFHhd 4upiZaLXNq5IeHHrAOS+46jWYZuuzZmebKhNFCb59Gm9ksFPy1xImFa/4QsbLhe5DV s9o+flTBjCD/CYvD4IfaJWZysoMLgZfj3n/CfaPCX2zMjX2UG++YD7hfM9W9kuSBEu C/ZYynfqzdqSQ== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp3.osuosl.org (Postfix) with ESMTP id B35C16064A; Sat, 5 Dec 2026 14:21:34 +0000 (UTC) Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists1.osuosl.org (Postfix) with ESMTP id C8981158 for ; Sat, 5 Dec 2026 14:21:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id AE7F6400AB for ; Sat, 5 Dec 2026 14:21:32 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 0gmzJiEdvwgX for ; Sat, 5 Dec 2026 14:21:31 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp2.osuosl.org B6C38400A8 Authentication-Results: smtp2.osuosl.org; arc=none smtp.remote-ip=172.105.4.254 Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.4.254; helo=tor.source.kernel.org; envelope-from=sashiko-bot@kernel.org; receiver= Authentication-Results: smtp2.osuosl.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=UJm89QK7 Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by smtp2.osuosl.org (Postfix) with ESMTPS id B6C38400A8 for ; Sat, 5 Dec 2026 14:21:31 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 93BBE601CF for ; Sat, 5 Dec 2026 14:21:29 +0000 (UTC) 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 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-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sashiko-reviews@lists.linux.dev X-Spam-Status: No, score=-11.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-Archived-By: 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