]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: sja1105: increase MTU to account for VLAN header on DSA ports
authorVladimir Oltean <vladimir.oltean@nxp.com>
Wed, 4 Aug 2021 13:54:34 +0000 (16:54 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Aug 2021 10:05:48 +0000 (11:05 +0100)
commit0d24f145744d0434d74884fae9a5f345ab5cca31
tree965f2b14534ecaa6aa97cc364eeffe778d246136
parent5f4676c41f4db6614f0fc890751f7694ebd31ade
net: dsa: sja1105: increase MTU to account for VLAN header on DSA ports

Since all packets are transmitted as VLAN-tagged over a DSA link (this
VLAN tag represents the tag_8021q header), we need to increase the MTU
of these interfaces to account for the possibility that we are already
transporting a user-visible VLAN header.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105_main.c