summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWANG Cong <xiyou.wangcong@gmail.com>2017-03-02 12:24:36 -0800
committerDavid S. Miller <davem@davemloft.net>2017-03-02 14:43:20 -0800
commit31c05415f5b471fd333fe42629788364faea8e0d (patch)
tree049c1d963fba8573472b646ce9ce65dcc8fb6ec4
parent152669bd3cd2407d6f556009b95ee249c0c1a462 (diff)
downloadlinux-31c05415f5b471fd333fe42629788364faea8e0d.tar.gz
linux-31c05415f5b471fd333fe42629788364faea8e0d.tar.bz2
linux-31c05415f5b471fd333fe42629788364faea8e0d.zip
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>
-rw-r--r--drivers/net/bonding/bond_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index 6321f12630c8..8a4ba8b88e52 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -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;