net/macb: fix race with RX interrupt while doing NAPI
authorNicolas Ferre <nicolas.ferre@atmel.com>
Tue, 12 Feb 2013 10:08:48 +0000 (11:08 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Feb 2013 18:34:10 +0000 (13:34 -0500)
commit8770e91aa61127f82eb8a9e641832474dbbcc8f1
tree65aa9243d2f96562261e01d2278eb4aae7be84ca
parentac574804d412047e52de4dd887615cc88f58aeb0
net/macb: fix race with RX interrupt while doing NAPI

When interrupts are disabled, an RX condition can occur but
it is not reported when enabling interrupts again. We need to check
RSR and use napi_reschedule() if condition is met.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.c