OSDN Git Service

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)
commit777e55e30d1275e0ddd70efdbcd8cf6f4dae554e
tree965f2b14534ecaa6aa97cc364eeffe778d246136
parentc513002980838af4d65551497f63e403d961ea36
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