]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: Set the master device's MTU to account for DSA overheads
authorAndrew Lunn <andrew@lunn.ch>
Thu, 6 Dec 2018 10:36:05 +0000 (11:36 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Dec 2018 20:18:17 +0000 (12:18 -0800)
commit0817fa0abd101d74890b3d747d62ea86aea3a69d
tree8f91a4fdb046fea0ec14589399758a2a766156d7
parenta156ef29aefe884fef68f0242485f681a610f769
net: dsa: Set the master device's MTU to account for DSA overheads

DSA tagging of frames sent over the master interface to the switch
increases the size of the frame. Such frames can then be bigger than
the normal MTU of the master interface, and it may drop them. Use the
overhead information from the tagger to set the MTU of the master
device to include this overhead.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/master.c