Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 31c05415 authored by WANG Cong's avatar WANG Cong Committed by David S. Miller
Browse files

bonding: use ETH_MAX_MTU as max mtu



This restores the ability of setting bond device's mtu to 9000.

Fixes: 91572088 ("net: use core MTU range checking in core net infra")
Reported-by: default avatar <daznis@gmail.com>
Reported-by: default avatarBrad Campbell <lists2009@fnarfbargle.com>
Cc: Jarod Wilson <jarod@redhat.com>
Signed-off-by: default avatarCong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: default avatarJay Vosburgh <jay.vosburgh@canonical.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 152669bd
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;