Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
authorDavid S. Miller <davem@davemloft.net>
Tue, 10 Feb 2009 07:22:21 +0000 (23:22 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Feb 2009 07:22:21 +0000 (23:22 -0800)
Conflicts:
drivers/net/gianfar.c

1  2 
drivers/net/gianfar.c
drivers/net/netxen/netxen_nic_main.c
drivers/net/tun.c

index 802a9516ce416fa230938ff9afb2bed40fda78f9,9b12a13a640f1383fdd3265ae3ebe69949f1b936..a64a4385f5a5f992eae32be996f35f03143d18dc
@@@ -1665,9 -1626,15 +1665,15 @@@ static void gfar_schedule_cleanup(struc
        spin_lock_irqsave(&priv->txlock, flags);
        spin_lock(&priv->rxlock);
  
 -      if (netif_rx_schedule_prep(&priv->napi)) {
 +      if (napi_schedule_prep(&priv->napi)) {
                gfar_write(&priv->regs->imask, IMASK_RTX_DISABLED);
 -              __netif_rx_schedule(&priv->napi);
 +              __napi_schedule(&priv->napi);
+       } else {
+               /*
+                * Clear IEVENT, so interrupts aren't called again
+                * because of the packets that have already arrived.
+                */
+               gfar_write(&priv->regs->ievent, IEVENT_RTX_MASK);
        }
  
        spin_unlock(&priv->rxlock);
Simple merge
Simple merge