Commit 800bb599 authored by Jose Abreu's avatar Jose Abreu Committed by Khasim Syed Mohammed
Browse files

BACKPORT: UPSTREAM: 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: default avatarJose 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: default avatarDavid S. Miller <davem@davemloft.net>
(cherry picked from commit 4205c88e
https://github.com/torvalds/linux.git

)
Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent e1d9868b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment