mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-08 18:57:22 +00:00
net: fec: account for VLAN header in frame length calculations
The MAX_FL (maximum frame length) and related calculations used ETH_HLEN, which does not account for the 4-byte VLAN tag in tagged frames. This caused the hardware to reject valid VLAN frames as oversized, resulting in RX errors and dropped packets. Use VLAN_ETH_HLEN instead of ETH_HLEN in the MAX_FL register setup, cut-through mode threshold, buffer allocation, and max_mtu calculation. Cc: stable@kernel.org # v6.18+ Fixes:62b5bb7be7("net: fec: update MAX_FL based on the current MTU") Fixes:d466c16026("net: fec: enable the Jumbo frame support for i.MX8QM") Fixes:59e9bf037d("net: fec: add change_mtu to support dynamic buffer allocation") Fixes:ec2a1681ed("net: fec: use a member variable for maximum buffer size") Signed-off-by: Clemens Gruber <mail@clemensgruber.at> Reviewed-by: Wei Fang <wei.fang@nxp.com> Link: https://patch.msgid.link/20260121083751.66997-1-mail@clemensgruber.at Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
cc4816bdb0
commit
ca1bb3fedf
1 changed files with 7 additions and 6 deletions
Loading…
Add table
Add a link
Reference in a new issue