Skip to content

Commit 31c0541

Browse files
congwangdavem330
authored andcommitted
bonding: use ETH_MAX_MTU as max mtu
This restores the ability of setting bond device's mtu to 9000. Fixes: 9157208 ("net: use core MTU range checking in core net infra") Reported-by: [email protected] Reported-by: Brad Campbell <[email protected]> Cc: Jarod Wilson <[email protected]> Signed-off-by: Cong Wang <[email protected]> Signed-off-by: Jay Vosburgh <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 152669b commit 31c0541

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/bonding/bond_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4179,6 +4179,7 @@ void bond_setup(struct net_device *bond_dev)
41794179

41804180
/* Initialize the device entry points */
41814181
ether_setup(bond_dev);
4182+
bond_dev->max_mtu = ETH_MAX_MTU;
41824183
bond_dev->netdev_ops = &bond_netdev_ops;
41834184
bond_dev->ethtool_ops = &bond_ethtool_ops;
41844185

0 commit comments

Comments
 (0)