]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit48734994ac268eb391a66dca4cde7d08a08aba08
tree0d121b78c92a711a9144282e23ad7d0f61eca1b2
parent42eab005a5dd5d7ea2b0328aecc4d6cc0c23c9c2
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>
drivers/net/ethernet/altera/altera_tse_main.c