OSDN Git Service

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)
commitdc0fe7d47f9f2256e3aa695bb754625f37291e17
tree8f91a4fdb046fea0ec14589399758a2a766156d7
parenta5dd308778a4e05e7b0b927cf18b89d1ebbff59c
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