airoha_en7523
The PPE egress MTU register and WAN MTU register compare against L2
frame length without FCS, as confirmed by the hardware reset value of
0x05EA (1514 = ETH_HLEN + 1500).
Account for VLAN_ETH_HLEN when programming these registers to prevent
valid VLAN-tagged frames from being incorrectly dropped by hardware.
Rename the local variable from 'mtu' to 'len' in airoha_ppe_set_mtu()
since it now represents a frame length rather than an L3 MTU value.
Fixes: 99e204d255c9 ("net: airoha: Rework MTU configuration")
Signed-off-by: Sayantan Nandy <sayantann11@gmail.com>
Linux kernel
============
There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.
In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``. The formatted documentation can also be read online at:
https://www.kernel.org/doc/html/latest/
There are various text files in the Documentation/ subdirectory,
several of them using the reStructuredText markup notation.
Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
Languages
C
97.3%
Assembly
1%
Shell
0.6%
Python
0.4%
Makefile
0.3%
Other
0.2%