]> git.baikalelectronics.ru Git - kernel.git/commit
ethoc: rework interrupt handling
authorJonas Bonn <jonas@southpole.se>
Thu, 25 Nov 2010 02:30:29 +0000 (02:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 28 Nov 2010 19:16:36 +0000 (11:16 -0800)
commit4a1200d5450263ffd034903dbfe4c0eaf46f326c
treed07c00d2cd4c2073d92f8d9aebb4cbb4f3a35631
parent38701975301f438a3038280d72435a49447c1d37
ethoc: rework interrupt handling

The old interrupt handling was incorrect in that it did not account for the
fact that the interrupt source bits get set irregardless of whether or not
their corresponding mask is set.  This patch fixes that by masking off the
source bits for masked interrupts.

Furthermore, the handling of transmission events is moved to the NAPI polling
handler alongside the reception handler, thus preventing a whole bunch of
interrupts during heavy traffic.

Signed-off-by: Jonas Bonn <jonas@southpole.se>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethoc.c