Re: [PATCH net v2] net: fec: reject oversized fragments before bounce-buffer memcpy
From: Andrew Lunn
Date: Wed Sep 23 2026 - 17:01:39 EST
On Wed, Sep 23, 2026 at 05:37:38PM -0300, Aldo Ariel Panzardo wrote:
> fec_enet_txq_submit_frag_skb() and fec_enet_txq_submit_skb() copy
> transmit data into a per-ring bounce buffer when the source address is
> misaligned or the FEC_QUIRK_SWAP_FRAME quirk is active.
ndev->max_mtu = fep->max_buf_size - VLAN_ETH_HLEN - ETH_FCS_LEN;
What value is this? Is it greater than, or smaller than FEC_ENET_TX_FRSIZE?
Andrew