netd…@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