]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite55e77ab31af02aaa647613034568ace97d31f45
tree7d0bab86b0a308fa9590fac420da0662ad4adc30
parent340f231829b0853c4ffc755791fe6cf519ef0d1f
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