]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: fec: enable the Jumbo frame support for i.MX8QM
authorShenwei Wang <shenwei.wang@nxp.com>
Wed, 10 Sep 2025 18:52:11 +0000 (13:52 -0500)
committerJakub Kicinski <kuba@kernel.org>
Sun, 14 Sep 2025 21:20:01 +0000 (14:20 -0700)
commitd466c16026e9ac125e5053a2fa26e59c82538fa4
tree934a60430d7d82df476fb4a7110e726bd2f6cc6a
parent59e9bf037d7579a8d845bb8026276bc7e3852436
net: fec: enable the Jumbo frame support for i.MX8QM

Certain i.MX SoCs, such as i.MX8QM and i.MX8QXP, feature enhanced
FEC hardware that supports Ethernet Jumbo frames with packet sizes
up to 16K bytes.

When Jumbo frames are supported, the TX FIFO may not be large enough
to hold an entire frame. To handle this, the FIFO is configured to
operate in cut-through mode when the frame size exceeds
(PKT_MAXBUF_SIZE - ETH_HLEN - ETH_FCS_LEN), which allows transmission
to begin once the FIFO reaches a certain threshold.

Reviewed-by: Wei Fang <wei.fang@nxp.com>
Signed-off-by: Shenwei Wang <shenwei.wang@nxp.com>
Link: https://patch.msgid.link/20250910185211.721341-7-shenwei.wang@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/fec.h
drivers/net/ethernet/freescale/fec_main.c