]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfe5e76c6f478a413a13bb62d82a54e1e0603e7ed
tree280742d771add229877d7bc053e74a7b1c216f4f
parent1a84736478a5aa6a32d4ea17ea8418c1357870d9
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: ec92cb93097f ("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