altera_tse: Correct rx packet length
authorVlastimil Setka <setka@vsis.cz>
Tue, 28 Apr 2015 22:17:11 +0000 (00:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Apr 2015 19:19:34 +0000 (15:19 -0400)
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>

No differences found