net: stmmac: Disable ACS Feature for GMAC >= 4
authorJose Abreu <Jose.Abreu@synopsys.com>
Wed, 18 Apr 2018 09:57:55 +0000 (10:57 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Apr 2018 17:33:44 +0000 (13:33 -0400)
commit565020aaeebfa7c8b3ec077bee38f4c15acc9905
tree280742d771add229877d7bc053e74a7b1c216f4f
parentda42bb271305d68df6cbf99eed90542f1f1ee1c9
net: stmmac: Disable ACS Feature for GMAC >= 4

ACS Feature is currently enabled for GMAC >= 4 but the llc_snap status
is never checked in descriptor rx_status callback. This will cause
stmmac to always strip packets even that ACS feature is already
stripping them.

Lets be safe and disable the ACS feature for GMAC >= 4 and always strip
the packets for this GMAC version.

Fixes: 477286b53f55 ("stmmac: add GMAC4 core support")
Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Joao Pinto <jpinto@synopsys.com>
Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Cc: Alexandre Torgue <alexandre.torgue@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac4.h
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c