Browse Source

bonding: use ETH_MAX_MTU as max mtu

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>
WANG Cong 8 years ago
parent
commit
31c05415f5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/net/bonding/bond_main.c

+ 1 - 0
drivers/net/bonding/bond_main.c

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