]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: dwmac1000: Disable ACS if enhanced descs are not used
authorRemi Pommarel <repk@triplefau.lt>
Sun, 8 Mar 2020 09:25:56 +0000 (10:25 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2020 06:17:41 +0000 (07:17 +0100)
commit186e1f6db71876857d9883eed9af389e4482f3e8
tree81e3d380fcdbf66f18d1e8257a2a1fa10e36cb3f
parentd7fc5deeb51acc3df0380754a31021545b169095
net: stmmac: dwmac1000: Disable ACS if enhanced descs are not used

[ Upstream commit 591c8892b7602cc660da069eb9b31c4e30c2b6d5 ]

ACS (auto PAD/FCS stripping) removes FCS off 802.3 packets (LLC) so that
there is no need to manually strip it for such packets. The enhanced DMA
descriptors allow to flag LLC packets so that the receiving callback can
use that to strip FCS manually or not. On the other hand, normal
descriptors do not support that.

Thus in order to not truncate LLC packet ACS should be disabled when
using normal DMA descriptors.

Fixes: a271220f65991 ("net: add support for STMicroelectronics Ethernet controllers.")
Signed-off-by: Remi Pommarel <repk@triplefau.lt>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c