aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethoc.c
diff options
context:
space:
mode:
authorAdam Edvardsson <adam.edvardsson@orsoc.se>2010-11-24 21:30:27 -0500
committerDavid S. Miller <davem@davemloft.net>2010-11-28 14:16:35 -0500
commit7438a5455734d109fdf18d97147dc57a6dbe5a44 (patch)
tree7153605bec3b359c91a8421e83da6a879b1583b6 /drivers/net/ethoc.c
parenteac0d3ff5a92de410964fdf0d072314821ca39fc (diff)
ethoc: enable interrupts after napi_complete
Occasionally, it seems that some race is causing the interrupts to not be reenabled otherwise with the end result that networking just stops working. Enabling interrupts after calling napi_complete is more in line with what other drivers do. Signed-off-by: Jonas Bonn <jonas@southpole.se> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethoc.c')
-rw-r--r--drivers/net/ethoc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethoc.c b/drivers/net/ethoc.c
index e9e712e0f92c..db444a73e4b1 100644
--- a/drivers/net/ethoc.c
+++ b/drivers/net/ethoc.c
@@ -569,8 +569,8 @@ static int ethoc_poll(struct napi_struct *napi, int budget)
569 569
570 work_done = ethoc_rx(priv->netdev, budget); 570 work_done = ethoc_rx(priv->netdev, budget);
571 if (work_done < budget) { 571 if (work_done < budget) {
572 ethoc_enable_irq(priv, INT_MASK_RX);
573 napi_complete(napi); 572 napi_complete(napi);
573 ethoc_enable_irq(priv, INT_MASK_RX);
574 } 574 }
575 575
576 return work_done; 576 return work_done;