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

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: [email protected]
Reported-by: default avatarBrad Campbell <[email protected]>
Cc: Jarod Wilson <[email protected]>
Signed-off-by: default avatarCong Wang <[email protected]>
Signed-off-by: default avatarJay Vosburgh <[email protected]>
Signed-off-by: default avatarDavid S. Miller <[email protected]>
parent 152669bd
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment