]> git.hungrycats.org Git - linux/commitdiff
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2017 11:56:58 +0000 (12:56 +0100)
[ Upstream commit 31c05415f5b471fd333fe42629788364faea8e0d ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/bonding/bond_main.c

index 8029dd4912b6f950e8ab5f06d5de9747d6832a02..644d2bf0c4513b4320536e2b07dc3699f368bfbc 100644 (file)
@@ -4185,6 +4185,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;