Re: [PATCH net-next v9 8/8] net: bcmgenet: reassemble jumbo frames from status block fragments
From: Nicolai Buchwitz
Date: Fri Nov 27 2026 - 05:46:20 EST
Hi Daniel
On 26.11.2026 13:07, Daniel Machon wrote:
[...]
-/* Largest MTU that fits one descriptor, with room for a VLAN tag so a VLAN
- * interface can use the parent MTU.
- */
-#define ENET_MAX_MTU (ENET_THLD_MAX_LEN - GENET_RBUF_ALIGN - \
- ETH_HLEN - VLAN_HLEN)
+/* UMAC_MAX_FRAME_LEN is 14 bits wide and counts the FCS */
+#define ENET_MAX_MTU (GENMASK(13, 0) - ENET_FRAME_OVERHEAD)
Now that the driver supports larger MTUs, should the flow control thresholds be
scaled for larger frames?
IMHO there is othing to scale, GENET has no software programmed flow control
watermark. Pause is just CMD_RX_PAUSE_IGNORE and CMD_TX_PAUSE_IGNORE plus what
the PHY negotiates.
The only MTU dependent thresholds are the packet ready pair, which this series
touches already
[...]
Thanks,
Nicolai