]> 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)
commita93ed72d9ac2865b6442b12d998b0db23600a464
tree8f91a4fdb046fea0ec14589399758a2a766156d7
parent897d4d652e1599f462158a4c771b12d03cba6c2e
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