net: mvpp2: do not disable GMAC padding
commite749aca84b10f3987b2ee1f76e0c7d8aacc5653c
authorYan Markman <ymarkman@marvell.com>
Tue, 28 Nov 2017 13:19:50 +0000 (28 14:19 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Nov 2017 15:09:51 +0000 (28 10:09 -0500)
tree3e50305d2c874de90a4d99cc8390b18efee7096f
parent26146b0e6b6869c6cd8a45ab3a4a5562e7a91b23
net: mvpp2: do not disable GMAC padding

Short fragmented packets may never be sent by the hardware when padding
is disabled. This patch stop modifying the GMAC padding bits, to leave
them to their reset value (disabled).

Fixes: 3919357fb0bb ("net: mvpp2: initialize the GMAC when using a port")
Signed-off-by: Yan Markman <ymarkman@marvell.com>
[Antoine: commit message]
Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2.c