From: "Björn Töpel" <bjorn@kernel.org>
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
Date: Fri, 04 Dec 2026 15:08:02 +0100 [thread overview]
Message-ID: <877bhp16m5.fsf@all.your.base.are.belong.to.us> (raw)
In-Reply-To: <179638077454.3146.35797073950689629@kernel.org>
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
next prev parent reply other threads:[~2026-12-04 14:08 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 9:56 [PATCH net v3 0/4] xsk: Keep the shared info of zero-copy buffers in kernel memory Björn Töpel
2026-12-03 9:56 ` [PATCH net v3 1/4] libeth: xsk: Count each XDP_TX buffer on its own Björn Töpel
2026-12-04 10:39 ` netdev-bot+sashiko
2026-12-04 14:08 ` Björn Töpel [this message]
2026-12-03 9:56 ` [PATCH net v3 2/4] xdp: Size zero-copy skbs from the data, not the frame size Björn Töpel
2026-12-03 14:04 ` Maciej Fijalkowski
2026-12-04 10:39 ` netdev-bot+sashiko
2026-12-04 14:09 ` Björn Töpel
2026-12-03 9:56 ` [PATCH net v3 3/4] intel: Copy the exact length of XSk packets to skbs Björn Töpel
2026-12-03 14:07 ` Maciej Fijalkowski
2026-12-04 14:51 ` Loktionov, Aleksandr
2026-12-03 9:56 ` [PATCH net v3 4/4] xsk: Keep the shared info of zero-copy buffers in kernel memory Björn Töpel
2026-12-03 15:16 ` Maciej Fijalkowski
2026-12-04 10:39 ` netdev-bot+sashiko
2026-12-04 14:12 ` Björn Töpel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877bhp16m5.fsf@all.your.base.are.belong.to.us \
--to=bjorn@kernel.org \
--cc=aleksander.lobakin@intel.com \
--cc=andrew+netdev@lunn.ch \
--cc=andrii@kernel.org \
--cc=anthony.l.nguyen@intel.com \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=clecigne@google.com \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=eddyz87@gmail.com \
--cc=edumazet@kernel.org \
--cc=emil@etsalapatis.com \
--cc=hawk@kernel.org \
--cc=horms@kernel.org \
--cc=ihor.solodrai@linux.dev \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=john.fastabend@gmail.com \
--cc=jolsa@kernel.org \
--cc=kuba@kernel.org \
--cc=kurt@linutronix.de \
--cc=maciej.fijalkowski@intel.com \
--cc=magnus.karlsson@intel.com \
--cc=martin.lau@linux.dev \
--cc=memxor@gmail.com \
--cc=michal.swiatkowski@linux.intel.com \
--cc=netdev-bot+sashiko@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=przemyslaw.kitszel@intel.com \
--cc=sdf@fomichev.me \
--cc=song@kernel.org \
--cc=sriram.yagnaraman@ericsson.com \
--cc=willemb@google.com \
--cc=yonghong.song@linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox