]> git.baikalelectronics.ru Git - kernel.git/commit
net: remove MTU limits on a few ether_setup callers
authorJarod Wilson <jarod@redhat.com>
Fri, 21 Oct 2016 03:25:27 +0000 (23:25 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Oct 2016 17:57:50 +0000 (13:57 -0400)
commitc1d1a18b88580a221bcca6ab5864ca848333ee1f
tree80b313286f4f191d241a803d5f8690b74187a4e9
parent5ba5cf29a2473899f43d6a601981d2e6a984a7d2
net: remove MTU limits on a few ether_setup callers

These few drivers call ether_setup(), but have no ndo_change_mtu, and thus
were overlooked for changes to MTU range checking behavior. They
previously had no range checks, so for feature-parity, set their min_mtu
to 0 and max_mtu to ETH_MAX_MTU (65535), instead of the 68 and 1500
inherited from the ether_setup() changes. Fine-tuning can come after we get
back to full feature-parity here.

CC: netdev@vger.kernel.org
Reported-by: Asbjoern Sloth Toennesen <asbjorn@asbjorn.st>
CC: Asbjoern Sloth Toennesen <asbjorn@asbjorn.st>
CC: R Parameswaran <parameswaran.r7@gmail.com>
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/atm/br2684.c
net/bluetooth/bnep/netdev.c
net/dsa/slave.c
net/irda/irlan/irlan_eth.c
net/l2tp/l2tp_eth.c