Commit 7e7145f4 authored by Matt Mackall's avatar Matt Mackall Committed by Stephen Hemminger

[NET] Add netpoll support for tg3

parent 8fb9cf8a
......@@ -2479,6 +2479,15 @@ static irqreturn_t tg3_interrupt(int irq, void *dev_id, struct pt_regs *regs)
static int tg3_init_hw(struct tg3 *);
static int tg3_halt(struct tg3 *);
#ifdef CONFIG_NET_POLL_CONTROLLER
static void tg3_poll_controller(struct net_device *dev)
{
disable_irq(dev->irq);
tg3_interrupt (dev->irq, dev, NULL);
enable_irq(dev->irq);
}
#endif
static void tg3_reset_task(void *_data)
{
struct tg3 *tp = _data;
......@@ -7665,6 +7674,9 @@ static int __devinit tg3_init_one(struct pci_dev *pdev,
dev->watchdog_timeo = TG3_TX_TIMEOUT;
dev->change_mtu = tg3_change_mtu;
dev->irq = pdev->irq;
#ifdef CONFIG_NET_POLL_CONTROLLER
dev->poll_controller = tg3_poll_controller;
#endif
err = tg3_get_invariants(tp);
if (err) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment