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=1796393286; b=VbNnkg13q9RiXSpsN9TYWGJYZsZMIYcWRKHfWgrVDuEXJ64MOS9SVxM3X4V+3n6NB1ty LJl9vkP4ztS+pM/deYqhLK6weRBDTSGJF42GbghqJTfscrvo8C6yp1Y0f6V8duAky3aYc TpSQmgIawsCmCc3alLoaLPBHTNvOaMVV4+FThU8QMTTrgrJXtgJj1EScSbWt2tgNbp9ks gqsVA5tv6WY0O9kzXMk3QoCYvVOXTqOIt7qBqW8rSdO2HUKO6cE/EwP6Iwk2ncjdoZy1R Or1MZtMWuW2HjG7qAU0Q2jUCjuDruL5MeASP3wOzcSC0Qg4muLpjz361b12KJRC3fIA== 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== 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 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) 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 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F1831F00935; Fri, 4 Dec 2026 14:08:05 +0000 (UTC) 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== From: =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= To: netdev-bot+sashiko@kernel.org 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 Subject: Re: [PATCH net v3 1/4] libeth: xsk: Count each XDP_TX buffer on its own In-Reply-To: <179638077454.3146.35797073950689629@kernel.org> References: <20261203095647.3448925-2-bjorn@kernel.org> <179638077454.3146.35797073950689629@kernel.org> Date: Fri, 04 Dec 2026 15:08:02 +0100 Message-ID: <877bhp16m5.fsf@all.your.base.are.belong.to.us> X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable netdev-bot+sashiko@kernel.org writes: > Thank you for your contribution! Sashiko AI review found 2 potential > issue(s) to consider. > > Critical: 0 =C2=B7 High: 1 =C2=B7 Medium: 0 =C2=B7 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=C3=B6rn pw-bot: cr