Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 150087
b: refs/heads/master
c: 6e8cf5c
h: refs/heads/master
i:
  150085: 838f69e
  150083: 2491200
  150079: 38657c1
v: v3
  • Loading branch information
Thomas Petazzoni authored and David S. Miller committed May 4, 2009
1 parent d1e1bd6 commit 6487475
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 255cac91c3c9ce7dca7713b93ab03c75b7902e0e
refs/heads/master: 6e8cf5c069c6cb7b316e9b1715eac38873dd5cab
18 changes: 18 additions & 0 deletions trunk/drivers/net/macb.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,21 @@ static irqreturn_t macb_interrupt(int irq, void *dev_id)
return IRQ_HANDLED;
}

#ifdef CONFIG_NET_POLL_CONTROLLER
/*
* Polling receive - used by netconsole and other diagnostic tools
* to allow network i/o with interrupts disabled.
*/
static void macb_poll_controller(struct net_device *dev)
{
unsigned long flags;

local_irq_save(flags);
macb_interrupt(dev->irq, dev);
local_irq_restore(flags);
}
#endif

static int macb_start_xmit(struct sk_buff *skb, struct net_device *dev)
{
struct macb *bp = netdev_priv(dev);
Expand Down Expand Up @@ -1094,6 +1109,9 @@ static const struct net_device_ops macb_netdev_ops = {
.ndo_validate_addr = eth_validate_addr,
.ndo_change_mtu = eth_change_mtu,
.ndo_set_mac_address = eth_mac_addr,
#ifdef CONFIG_NET_POLL_CONTROLLER
.ndo_poll_controller = macb_poll_controller,
#endif
};

static int __init macb_probe(struct platform_device *pdev)
Expand Down

0 comments on commit 6487475

Please sign in to comment.