Re: [PATCH net] net: bcmgenet: cap the Tx queue threshold at the ring size
From: Nicolai Buchwitz
Date: Sat Nov 07 2026 - 06:53:13 EST
Hi Florian
On 7.11.2026 01:14, Florian Fainelli wrote:
[...]
Eventually we will have to decide what to do with those other queues :D
Probably sooner than later. Sashiko claims that this patch does not fully
fix hte CONFIG_MAX_SKB_FRAGS=31 case. The check in bcmgenet_xmit()
if (ring->free_bds <= (nr_frags + 1))
wants 33 free descriptors for a 31 frag skb and those rings hold 32. Arguably
the bug is way older than this patch and you need a non-default config to hit.
So IMHO the options are:
Either linearize in bcmgenet_xmit() when the frame does not fit, or we drop
the queues as I proposed in June [1]?
With XDP in mind the second one seems more attractive, as it needs its own 64
descriptor ring. With the current split the main queue would end up with 64
descriptors, against 192 if the queues are collapsed.
[1] https://lore.kernel.org/netdev/20260612205915.3156127-1-nb@xxxxxxxxxxx/
Regards
Nicolai