bonding: use ETH_MAX_MTU as max mtu
authorWANG Cong <xiyou.wangcong@gmail.com>
Thu, 2 Mar 2017 20:24:36 +0000 (12:24 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Mar 2017 22:43:20 +0000 (14:43 -0800)
This restores the ability of setting bond device's mtu to 9000.

Fixes: 91572088e3fd ("net: use core MTU range checking in core net infra")
Reported-by: daznis@gmail.com
Reported-by: Brad Campbell <lists2009@fnarfbargle.com>
Cc: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Jay Vosburgh <jay.vosburgh@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c

index 6321f12630c8c5fb6277097dea1a847549f92d4f..8a4ba8b88e52f9d5b1ba318e5dbfb53344f6ebca 100644 (file)
@@ -4179,6 +4179,7 @@ void bond_setup(struct net_device *bond_dev)
 
        /* Initialize the device entry points */
        ether_setup(bond_dev);
+       bond_dev->max_mtu = ETH_MAX_MTU;
        bond_dev->netdev_ops = &bond_netdev_ops;
        bond_dev->ethtool_ops = &bond_ethtool_ops;