On Mon, Nov 30, 2026 at 07:01:58PM -0800, Narcisa Vasile wrote:
> The TX BD length field is 16 bits wide. Since BIG TCP raised > tso_max_size to GSO_MAX_SIZE, skbs can exceed 64KB. > A single frag can be 64KB or larger, e.g. with MSG_ZEROCOPY from a huge > page or in the case of a frag filling a whole 64KB page on arm64. > > The driver silently truncates the length of these oversized buffers. > For example, a 65536 byte frag becomes a zero length BD, so the NIC sends > malformed LSO packets or stalls the TX queue. > > Split these buffers over multiple BDs, at the largest 4KB multiple that > fits a BD (0xF000), so that a 64KB frag (e.g. a full page on 64KB-page > systems) becomes 60KB + 4KB rather than ending with a 1-byte BD. > > Splitting can add up to 8 BDs to a GSO_MAX_SIZE skb. Raise the minimum > TX ring size (BNXT_MIN_TX_DESC_CNT) and the point at which the TX queue > is stopped, so that a packet of the largest size always fits. With > MAX_SKB_FRAGS at 17, the minimum TX ring size grows from 19 to 27 BDs. > > With CONFIG_MAX_SKB_FRAGS raised above the default, an skb can need more > data BDs than a packet can have, either because splitting added BDs or > because it has more than TX_MAX_FRAGS frags. Clear the GSO features of > such skbs in bnxt_features_check() so the stack segments them, instead > of dropping or linearizing them in bnxt_start_xmit().
nit: is the commit message above stale since the v2 removed the check?
> Found by enabling BIG TCP on a Broadcom NIC host. > Tested on x86_64 with the tso.py selftest and with tcp_mmap sending > MSG_ZEROCOPY BIG TCP traffic with frags larger than 64KB. > > Fixes: b6488b161ab2 ("bnxt: Use generic HBH removal helper in tx path")
idk how backports work but IIUC the patch relies on behavior introduced by commit 3cb430e62c83 ("net: bnxt: Use dma_unmap_len for TX completion unmapping"), so i think if this is backported to trees before that commit it might introduce a new bug. so i think (?) it can only be backported to 7.1 but not further back. maybe the commit message should say that and add a CC line for stable to let them know it can only be backported as far back as 7.1. As an example check [1]. [1]: https://lore.kernel.org/netdev/2026…@google.com/ All the above said: Reviewed-by: Joe Damato <j…@dama.to>