Article View: linux.kernel.netdev
Article #26964Re: [PATCH net v3 1/4] libeth: xsk: Count each XDP_TX buffer on its own
From: Björn Töpel
Date: Fri, 04 Dec 2026 14:08
Date: Fri, 04 Dec 2026 14:08
55 lines
10317 bytes
10317 bytes
netdev-bot+sashiko@kernel.org writes: > Thank you for your contribution! Sashiko AI review found 2 potential > issue(s) to consider. > > Critical: 0 · High: 1 · Medium: 0 · Low: 1 > > If you believe none of the issues are legitimate, please reply to each > issue of Medium severity or higher and explain why the AI is wrong. > If any of them are legitimate and you plan to respin, please let patchwork > know by including "pw-bot: cr" as a separate line at the end of your reply > (one such reply per series is enough). > > - [High] The in-flight XDP_TX count uses opposite signs on the two sides, > so this patch does not fix the count it is meant to fix. Sigh... OK, I'm convinced. :-) See below. > [Severity: Low] > This isn't a bug, but should the message mention another trigger? It needs > no userspace action and was reachable before this patch: a multi-buffer > XSk XDP_TX frame that is only partly sent when the XDPSQ ring is full. [...] > Could the message describe this path, since normal load can reach it? Ok > [Severity: High] > Does this decrement move the idpf in-flight count the wrong way? [...] > Should this fix change the sign on one side, either in the libeth > completion code or in the idpf consumers? No later patch in the series > appears to touch include/net/libeth/ or drivers/net/ethernet/intel/idpf/. In v1 I said the sign was an older bug and that a fix was outside this series. But this patch only does what it says once the sign is right, and the two changes touch the same lines, so splitting them just means that whichever lands second has to flip the other one. So I'll add the sign fix as patch 1. libeth then counts completed buffers up, like its kernel-doc says, and this patch does cp->xdp_tx++. idpf is the only user, and it only reads the count on XSk queues. I don't have idpf hardware, so patch 1 is build-tested only. I hope Olek can help me out here. Björn pw-bot: cr
Technical Details
Message-ID:
<877bhp16m5.fsf@all.your.base.are.belong.to.us>Path:
mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377400-linux-kernel-netdev=dewy.ruReferences:
<20261203095647.3448925-2-bjorn@kernel.org> <179638077454.3146.35797073950689629@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377400-linux-kernel-netdev=dewy.ru From: bjorn@kernel.org (Björn Töpel) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v3 1/4] libeth: xsk: Count each XDP_TX buffer on its own Date: Fri, 04 Dec 2026 15:08:02 +0100 Organization: Usenet Network Message-ID: <877bhp16m5.fsf@all.your.base.are.belong.to.us> References: <20261203095647.3448925-2-bjorn@kernel.org> <179638077454.3146.35797073950689629@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: usenet.network; logging-data="2779790"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:PjByk51soqM+iIfuy5Kg9xXWsy8= sha256:6iDMnfmHt+bv5IVDWnBuXc0WrPTK9AQJfUdCPFwC0AE= sha1:ZG8MF81H2o1NIlnFjWPl1r1MEUk= sha256:AKRJBKM8tH8iBZyQM/ucaDzxeVIyYXOQ3AQmAziDIhg= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 969AD117C1B; Fri, 4 Dec 2026 17:08:29 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.542 X-Spam-Status: No, score=-3.542 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.142, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id D9upUDykwgva; Fri, 4 Dec 2026 17:08:26 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-377400-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id EFE5A117C17; Fri, 4 Dec 2026 17:08:12 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sin.lore.kernel.org (Postfix) with ESMTP id 306263085A; Fri, 4 Dec 2026 14:08:09 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796393287; b=5B2GVE61F7eEgU6oL8dTD0+p98BBnzxqxQzYhCD/seBvzca94DmvqInRdbO0r+MihpHK 7STkpzQxXRcOfgjpgTHDryLZxNpPAFHVbSiUdkuClZkyXYxrCW1buJcBB/OAPwWsGVVjG GC/DPm2zvMJMZj5f3qR37EaLcjldemS4fKp5V6G+PXNrkQTMLodvZAjnM7ZoTfyjzAb6b bF8vChEusOeHlHQedF34Bpt5QCGIM83GLQNEfGpr/tJ3t/mqZ+u0Ju68dbjaaxYe9lroP ocNQoZsSl9iCjgv/TNAYKA5F6oFCKeH0EsNdlvhVkEVSgEqzXu44gwrOXeFJK423prg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796393287; h=X-Original-To:Received:Received:DKIM-Signature:From:To:Cc:Subject: In-Reply-To:References:Date:Message-ID:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=AihTM8t/C3o1CgHlU4ssqaxYz709m8K7nWvpXOb89Xs=; b=1hqR3BoSWMCVlcJgxdXaefbbXlLpEFy0VNhEA4Aw9v8vL1tndVaAAzTfsCSfhxvRC20D 7lPMwUNAIu3sfH5rnQmMUpbgqNkAjz0yPJlbXV2xZn12yLmfzLpgaRBCXgHUI9TkizO+l vOCwd9ENuBjly3x0CXAcITWrYcZccqv9eaDZ4qjwFyj550LQibBti7GjzSROv0UteKm6f REClZuRijXqAclCVcAxmGSxClmAipLIKkj4xqwUnIS8wRXAFFhjgx6I+wV2cRVegW4b74 hybWzBH9VPXZxyROob1vQxLpDByQbl5NtvnRx0rpU4hxAkul/2Xs0lXvZxmnhyeKIaw== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=oFS6NYPP; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6AC60606A680; Fri, 4 Dec 2026 14:08:07 +0000 (UTC) X-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=oFS6NYPP X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796393286; b=VbNnkg13q9RiXSpsN9TYWGJYZsZMIYcWRKHfWgrVDuEXJ64MOS9SVxM3X4V+3n6NB1ty LJl9vkP4ztS+pM/deYqhLK6weRBDTSGJF42GbghqJTfscrvo8C6yp1Y0f6V8duAky3aYc TpSQmgIawsCmCc3alLoaLPBHTNvOaMVV4+FThU8QMTTrgrJXtgJj1EScSbWt2tgNbp9ks gqsVA5tv6WY0O9kzXMk3QoCYvVOXTqOIt7qBqW8rSdO2HUKO6cE/EwP6Iwk2ncjdoZy1R Or1MZtMWuW2HjG7qAU0Q2jUCjuDruL5MeASP3wOzcSC0Qg4muLpjz361b12KJRC3fIA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796393286; h=Received:DKIM-Signature:From:To:Cc:Subject:In-Reply-To:References: Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=AihTM8t/C3o1CgHlU4ssqaxYz709m8K7nWvpXOb89Xs=; b=EHl3sx3NqkuRG1n19103YT3ifPOCoaZ/tctymc7LYy6tXPwzQwVi4EiIqCipnGFBKkKr F/qpLMpsFo+71ubB/24SnCg4pZUyQHM+AphAKhwBribW4dtH4QjtQmwF7kLWgXN+iq05Z W4c9qBPECji2UlwLBmU2Ghp9NwSMocbiImfIEKTAjT2wJxCzU2nz0BXwRBVJ/Sn4O2LQU 5VFGXU7Jk64MzM5vcpqQ49tH85VES3IrI37PpOCK0AG8TsvUH+9EA2F0hzeSQDIfBfM7q RYKZZCOjn8o6IBifa7Zg2McVH1BHYoUvg79QR5L+xBlZgfepxg5LisV5kLuJQdC6w2w== X-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=oFS6NYPP; arc=none smtp.remote-ip=100.103.45.18 X-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 8C84B606A32D; Fri, 4 Dec 2026 14:08:06 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F1831F00935; Fri, 4 Dec 2026 14:08:05 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796393286; bh=AihTM8t/C3o1CgHlU4ssqaxYz709m8K7nWvpXOb89Xs=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=oFS6NYPPEq7QyiLOzOtDZeJXtVgbYt4BeiAFo+rOHfd/nZQYaMzwqmjQ5JvZtPs7w Tbm5mk0JKJO2IzrclA2NzddnwdfJfZy7IGisvQpi3rw0VQwLl0ETCU6EIRS5LECQnj tGVe+O1CsQHyLthHqLOh+8vmYTu5i+dw7icwgz5Fpa6LqAo1RoTPPR/AlYRNm0fSOm UAp9oJu5hyEqsaYkE6ixJiU/ScUJE1OBM5BRV8maE8Xci/Ip72vYULlXDcLrmXYAex jRuPgCepfNt9rz7oKEKxRUvJbBEr22mFHV7I8/rLaJwPYAkoTjkiHnxfZGeUVlV9xt EciKZ8wa5TVVg== X-Cc: magnus.karlsson@intel.com, maciej.fijalkowski@intel.com, aleksander.lobakin@intel.com, ast@kernel.org, daniel@iogearbox.net, hawk@kernel.org, john.fastabend@gmail.com, andrii@kernel.org, eddyz87@gmail.com, memxor@gmail.com, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, willemb@google.com, andrew+netdev@lunn.ch, anthony.l.nguyen@intel.com, przemyslaw.kitszel@intel.com, netdev@vger.kernel.org, bpf@vger.kernel.org, horms@kernel.org, sdf@fomichev.me, martin.lau@linux.dev, song@kernel.org, yonghong.song@linux.dev, jolsa@kernel.org, emil@etsalapatis.com, ihor.solodrai@linux.dev, intel-wired-lan@lists.osuosl.org, clecigne@google.com, michal.swiatkowski@linux.intel.com, sriram.yagnaraman@ericsson.com, kurt@linutronix.de X-In-Reply-To: <179638077454.3146.35797073950689629@kernel.org> X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list