Skip to content

Commit 3331aa3

Browse files
jarodwilsondavem330
authored andcommitted
team: use ETH_MAX_MTU as max mtu
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]>
1 parent aac1561 commit 3331aa3

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
@@ -2072,6 +2072,7 @@ static int team_dev_type_check_change(struct net_device *dev,
20722072
static void team_setup(struct net_device *dev)
20732073
{
20742074
ether_setup(dev);
2075+
dev->max_mtu = ETH_MAX_MTU;
20752076

20762077
dev->netdev_ops = &team_netdev_ops;
20772078
dev->ethtool_ops = &team_ethtool_ops;

0 commit comments

Comments
 (0)