]> git.baikalelectronics.ru Git - kernel.git/commit
team: use ETH_MAX_MTU as max mtu
authorJarod Wilson <jarod@redhat.com>
Mon, 6 Mar 2017 13:48:58 +0000 (08:48 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Mar 2017 06:19:17 +0000 (22:19 -0800)
commitd1d88d1178661308644c4d58e3b3c743d065d7f0
tree1a733746b224f8bf201607ac38d98a77b85642f9
parent05c792913db182292c7cf5e7535310db15dc55de
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: 1376e65bcf3a ("net: use core MTU range checking in core net infra")
CC: Cong Wang <xiyou.wangcong@gmail.com>
CC: Jiri Pirko <jiri@resnulli.us>
CC: netdev@vger.kernel.org
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/team/team.c