stmmac: Fix for higher mtu size handling
authorDeepak Sikri <deepak.sikri@st.com>
Sun, 8 Jul 2012 21:14:46 +0000 (21:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Jul 2012 21:37:52 +0000 (14:37 -0700)
commit684901a6df1fb91fc9a2bdb89ffbebb241428d78
treedc1d57f154de1fab19a91cd08257d0407a5e416e
parent8e83989106562326bfd6aaf92174fe138efd026b
stmmac: Fix for higher mtu size handling

For the higher mtu sizes requiring the buffer size greater than 8192,
the buffers are sent or received using multiple dma descriptors/ same
descriptor with option of multi buffer handling.
It was observed during tests that the driver was missing on data
packets during the normal ping operations if the data buffers being used
catered to jumbo frame handling.

The memory barrriers are added in between preparation of dma descriptors
in the jumbo frame handling path to ensure all instructions before
enabling the dma are complete.

Signed-off-by: Deepak Sikri <deepak.sikri@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/ring_mode.c