]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvpp2: do not disable GMAC padding
authorYan Markman <ymarkman@marvell.com>
Tue, 28 Nov 2017 13:19:50 +0000 (14:19 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Nov 2017 15:09:51 +0000 (10:09 -0500)
commitfdb4872a0aa7676b7ded441fa1fd4fc0966e593d
tree3e50305d2c874de90a4d99cc8390b18efee7096f
parent6c0d6a58d67e1ded38aadad7b26ac1dbf5c9599d
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: c48b5020e1ea ("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