Skip to content

Commit be18cce

Browse files
jarodwilsongregkh
authored andcommitted
team: use ETH_MAX_MTU as max mtu
[ Upstream commit 3331aa3 ] This restores the ability to set a team device's mtu to anything higher than 1500. Similar to the reported issue with bonding, the team driver calls ether_setup(), which sets an initial max_mtu of 1500, while the underlying hardware can handle something much larger. Just set it to ETH_MAX_MTU to support all possible values, and the limitations of the underlying devices will prevent setting anything too large. Fixes: 9157208 ("net: use core MTU range checking in core net infra") CC: Cong Wang <[email protected]> CC: Jiri Pirko <[email protected]> CC: [email protected] Signed-off-by: Jarod Wilson <[email protected]> Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 92ab4de commit be18cce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/team/team.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2075,6 +2075,7 @@ static int team_dev_type_check_change(struct net_device *dev,
20752075
static void team_setup(struct net_device *dev)
20762076
{
20772077
ether_setup(dev);
2078+
dev->max_mtu = ETH_MAX_MTU;
20782079

20792080
dev->netdev_ops = &team_netdev_ops;
20802081
dev->ethtool_ops = &team_ethtool_ops;

0 commit comments

Comments
 (0)