Files
linux/drivers
Jose Abreu eaf4fac478 net: stmmac: Do not accept invalid MTU values
The maximum MTU value is determined by the maximum size of TX FIFO so
that a full packet can fit in the FIFO. Add a check for this in the MTU
change callback.

Also check if provided and rounded MTU does not passes the maximum limit
of 16K.

Changes from v2:
- Align MTU before checking if its valid

Fixes: 7ac6653a08 ("stmmac: Move the STMicroelectronics driver")
Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-12-18 12:04:17 -08:00
..
2019-11-22 11:16:26 +05:30
2019-12-13 15:42:09 -08:00
2019-11-22 19:56:35 +00:00
2019-12-05 13:18:54 -08:00
2019-11-20 02:15:57 -05:00
2019-11-14 13:06:33 +08:00