Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 10299
b: refs/heads/master
c: be2b28e
h: refs/heads/master
i:
  10297: 06ae16e
  10295: afba1af
v: v3
  • Loading branch information
Jeff Garzik committed Oct 4, 2005
1 parent a4a1eb8 commit a008f63
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a7990ba60adc46a808c737443393fdfecdc82593
refs/heads/master: be2b28ed3bb3dd3952e10fb72623b23c5d8b4795
15 changes: 9 additions & 6 deletions trunk/drivers/net/e1000/e1000_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -777,12 +777,12 @@ e1000_remove(struct pci_dev *pdev)
struct e1000_adapter *adapter = netdev_priv(netdev);
uint32_t ctrl_ext;
uint32_t manc, swsm;

flush_scheduled_work();
#ifdef CONFIG_E1000_NAPI
int i;
#endif

flush_scheduled_work();

if(adapter->hw.mac_type >= e1000_82540 &&
adapter->hw.media_type == e1000_media_type_copper) {
manc = E1000_READ_REG(&adapter->hw, MANC);
Expand Down Expand Up @@ -3100,7 +3100,9 @@ e1000_intr(int irq, void *data, struct pt_regs *regs)
struct e1000_adapter *adapter = netdev_priv(netdev);
struct e1000_hw *hw = &adapter->hw;
uint32_t icr = E1000_READ_REG(hw, ICR);
#ifdef CONFIG_E1000_MQ
int i;
#endif

if(unlikely(!icr))
return IRQ_NONE; /* Not our interrupt */
Expand Down Expand Up @@ -3128,13 +3130,14 @@ e1000_intr(int irq, void *data, struct pt_regs *regs)
} else {
printk("call_data.count == %u\n", atomic_read(&adapter->rx_sched_call_data.count));
}
#else
#else /* if !CONFIG_E1000_MQ */
if (likely(netif_rx_schedule_prep(&adapter->polling_netdev[0])))
__netif_rx_schedule(&adapter->polling_netdev[0]);
else
e1000_irq_enable(adapter);
#endif
#else
#endif /* CONFIG_E1000_MQ */

#else /* if !CONFIG_E1000_NAPI */
/* Writing IMC and IMS is needed for 82547.
Due to Hub Link bus being occupied, an interrupt
de-assertion message is not able to be sent.
Expand All @@ -3158,7 +3161,7 @@ e1000_intr(int irq, void *data, struct pt_regs *regs)
if(hw->mac_type == e1000_82547 || hw->mac_type == e1000_82547_rev_2)
e1000_irq_enable(adapter);

#endif
#endif /* CONFIG_E1000_NAPI */

return IRQ_HANDLED;
}
Expand Down

0 comments on commit a008f63

Please sign in to comment.