• Andrew Lunn's avatar
    net: fec: Set max MTU size to allow the MTU to be changed · 59193053
    Andrew Lunn authored
    The FEC allocates 2K buffers, but looses some of it due to
    alignment. It can however support an MTU bigger than the default. This
    is particularly interesting when used in combination with Ethernet
    switches supporting DSA, which have extra headers. The DSA core will
    try to increase the MTU to support these extra headers. If the max
    size defaults to that of standard Ethernet we get a warning. By
    setting the max to what the driver actually supports, we avoid this
    warning.
    Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    59193053
fec_main.c 100 KB