commit | 48734994ac268eb391a66dca4cde7d08a08aba08 | [log] [tgz] |
---|---|---|
author | Vlastimil Setka <setka@vsis.cz> | Wed Apr 29 00:17:11 2015 +0200 |
committer | David S. Miller <davem@davemloft.net> | Wed Apr 29 15:19:34 2015 -0400 |
tree | 0d121b78c92a711a9144282e23ad7d0f61eca1b2 | |
parent | 42eab005a5dd5d7ea2b0328aecc4d6cc0c23c9c2 [diff] |
altera_tse: Correct rx packet length Altera TSE MAC rx DMA transfer starts with the 2 additional bytes for IP payload alignment. This patch fixes tse_rx() function loop which reads DMA rx status and extracts packet length from it. Status signalises a whole DMA transfer length, which is 2 bytes longer than the packet itself. Signed-off-by: Vlastimil Setka <setka@vsis.cz> Signed-off-by: David S. Miller <davem@davemloft.net>