]> asedeno.scripts.mit.edu Git - linux.git/commit
net: stmmac: Correctly assing MAX MTU in XGMAC cores case
authorJose Abreu <Jose.Abreu@synopsys.com>
Wed, 4 Sep 2019 13:17:03 +0000 (15:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Sep 2019 10:19:55 +0000 (12:19 +0200)
commit56bcd5912221822b09685143916aa834d7e354f5
tree3ae1dc6ec95699dfe54f35ce9769a4f941d86777
parentc2b69474d63b62e7a1898faf86d096ad132e7baa
net: stmmac: Correctly assing MAX MTU in XGMAC cores case

Maximum MTU for XGMAC cores is 16k thus the check for presence of XGMAC
shall be done first in order to assign correct value.

Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c