]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'dsa-mtu'
authorDavid S. Miller <davem@davemloft.net>
Thu, 6 Dec 2018 20:18:17 +0000 (12:18 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Dec 2018 20:18:17 +0000 (12:18 -0800)
commit2b60d1016b4e7191137b1839cef1c4288b71e8ca
tree8f91a4fdb046fea0ec14589399758a2a766156d7
parent968da96b9d0a0e50755b23968c54929337f5f5e1
parenta93ed72d9ac2865b6442b12d998b0db23600a464
Merge branch 'dsa-mtu'

Andrew Lunn says:

====================
Adjust MTU of DSA master interface

DSA makes use of additional headers to direct a frame in/out of a
specific port of the switch. When the slave interfaces uses an MTU of
1500, the master interface can be asked to handle frames with an MTU
of 1504, or 1508 bytes. Some Ethernet interfaces won't
transmit/receive frames which are bigger than their MTU.

Automate the increasing of the MTU on the master interface, by adding
to each tagging driver how much overhead they need, and then calling
dev_set_mtu() of the master interface to increase its MTU as needed.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>