atl1: do not drop rx/tx interrupts before they are scheduled
authorTony Zelenoff <antonz@parallels.com>
Fri, 13 Apr 2012 06:09:54 +0000 (06:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Apr 2012 17:00:12 +0000 (13:00 -0400)
commit136cd14e1ea2bfde66d212d8e18e81552c94e4e3
tree7d0bab86b0a308fa9590fac420da0662ad4adc30
parent2a9bc71e9a1a099e1aab745f1755a3c15a745ad8
atl1: do not drop rx/tx interrupts before they are scheduled

To prevent interrupts lost they should be dropped only if
they are scheduled via napi interfaces. In other case, there is
exists situation when napi handler process TX interrupt, stay in
RX processing and in that moment any other interrupt received.
Then before this patch TX bit in ISR will be cleaned, napi
schedule will not occur in case of currently processing event and
TX interrupt definitely will be lost.

Signed-off-by: Tony Zelenoff <antonz@parallels.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/atheros/atlx/atl1.c