]> git.baikalelectronics.ru Git - kernel.git/commit
altera tse: Fix network-delays and -retransmissions after high throughput.
authorAndreas Oetken <andreas@oetken.name>
Thu, 16 Apr 2015 21:48:08 +0000 (23:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Apr 2015 19:13:31 +0000 (15:13 -0400)
commit88938938225b4cea2b604e4262bcf56c51b249c6
tree067f790a216591ef4565aad8fc642b8f7ea50096
parentf8b98a3708e23b91ebb4fbe1d4e8ba028d03e06e
altera tse: Fix network-delays and -retransmissions after high throughput.

Fix bug which occurs when more than <limit> packets are available during
napi-poll, leading to "delays" and retransmissions on the network.

Check for (count < limit) before checking the get_rx_status in tse_rx-function.
Function get_rx_status is reading from the response-fifo.
If there is currently a response in the fifo,
reading the last byte of the response pops the value from the fifo.
If the limit is checked as second condition
and the limit is reached the fifo is popped but the packet is not processed.

Signed-off-by: Andreas Oetken <ennoerlangen@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/altera/altera_tse_main.c