Re: [PATCH net-next v10 8/8] net: bcmgenet: reassemble jumbo frames from status block fragments
From: Nicolai Buchwitz
Date: Sat Nov 28 2026 - 08:13:03 EST
On 28.11.2026 12:26, netdev-bot+sashiko@xxxxxxxxxx wrote:
[...]
[Severity: Medium]
Can a split frame end with a descriptor that holds only its status
block plus DMA_EOP, with no payload?
Not on a bcm2711. I tested both boundaries reachable with MTU 9000, 3582
and 7166, 200 frames each. All bytes were delivered and I observed no errors.
EOP landed on the last descriptor that had data.
[...]
[Severity: Medium]
For a reassembled frame, dma_flag at the deliver label holds the status
word of the final EOP descriptor. The stats code in bcmgenet_desc_rx()
then does:
if (dma_flag & DMA_RX_MULT)
u64_stats_inc(&stats->multicast);
else if (dma_flag & DMA_RX_BRDCAST)
u64_stats_inc(&stats->broadcast);
The commit message says the status blocks of a split frame differ
("Only the last block holds the checksum of the whole frame"). It
doesn't say which block carries the DMA_RX_MULT and DMA_RX_BRDCAST
classification. The MAC already has that from the destination address
when it writes the SOP block.
If these flags are set only in the SOP status block, would jumbo
multicast and broadcast frames go uncounted in stats->multicast and
stats->broadcast?
They do, but the SOP block has no flags either.
The MAC just stops setting DMA_RX_BRDCAST and DMA_RX_MULT above 1518 bytes,
same boundary at MTU 1500 as at 9000. So a full size VLAN tagged broadcast
frame is already miscounted today.
I'd make this a separate fix for net, using skb->pkt_type instead.
Could the SOP descriptor's flags be saved when frag_head is set up and
used here instead?
/* Build SKB from the page - data starts at hard_start,
* frame begins after RSB(64) + pad(2) = 66 bytes.
*/
[ ... ]