]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: Set DMA buffer size in HW
authorJose Abreu <Jose.Abreu@synopsys.com>
Wed, 27 Jun 2018 14:03:20 +0000 (15:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Jun 2018 13:24:25 +0000 (22:24 +0900)
commite2d0ece86933351d109b40327156e438c8d68a22
tree75a7ae1f806d7e25625405244f43a65dccc86a85
parent67f98918e75b7c69541a23f92cf17aa9e0595b62
net: stmmac: Set DMA buffer size in HW

This is clearly a bug.

We need to set the DMA buffer size in the HW otherwise corruption can
occur when receiving packets.

This is probably not occuring because of small MTU values and because HW
has a default value internally (which currently is bigger than default
buffer size).

Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Joao Pinto <jpinto@synopsys.com>
Cc: Vitor Soares <soares@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_dma.c
drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.h
drivers/net/ethernet/stmicro/stmmac/hwif.h
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c