team: use ETH_MAX_MTU as max mtu
Subsystems (3)
PATCH 1/1 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.
--- drivers/net/team/team.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/team/team.c +1 -0
@@ -2072,6 +2072,7 @@ static int team_dev_type_check_change(struct net_device *dev,static void team_setup (struct net_device *dev) {ether_setup (dev); + dev->max_mtu =ETH_MAX_MTU ; dev->netdev_ops = &team_netdev_ops; dev->ethtool_ops = &team_ethtool_ops;
Signature · 1 line
2.11.0
Quoted 7 lines · Mon, Mar 06, 2017 at 02:48:58PM CET, [email protected] wrote:
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 initialmax_mtuof 1500, while the underlying hardware can handle something much larger. Just set it toETH_MAX_MTUto support all possible values, and the limitations of the underlying devices will prevent setting anything too large.
Quoted 5 lines
Fixes 91572088e3fd ("net: use core MTU range checking in core net infra")CC Cong Wang <[email protected]>CC Jiri Pirko <[email protected]>Signed-off-by Jarod Wilson <[email protected]>
David Miller
maintainerFrom: Jarod Wilson <[email protected]>
Date: Mon, 6 Mar 2017 08:48:58 -0500
Quoted 7 lines
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 initialmax_mtuof 1500, while the underlying hardware can handle something much larger. Just set it toETH_MAX_MTUto support all possible values, and the limitations of the underlying devices will prevent setting anything too large.
Quoted 5 lines
Fixes 91572088e3fd ("net: use core MTU range checking in core net infra")CC Cong Wang <[email protected]>CC Jiri Pirko <[email protected]>Signed-off-by Jarod Wilson <[email protected]>
Applied and queued up for -stable, thanks.