diff options
author | Michal Schmidt <xschmi00@stud.feec.vutbr.cz> | 2005-05-12 19:42:06 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-05-12 19:42:06 -0400 |
commit | 2918c35d311263bc313b3da272783860ce573189 (patch) | |
tree | 4f1bf3f0574c11e37e89954f76a5ee8fe298bac6 /drivers | |
parent | 88d7bd8cb9eb8d64bf7997600b0d64f7834047c5 (diff) | |
download | op-kernel-dev-2918c35d311263bc313b3da272783860ce573189.zip op-kernel-dev-2918c35d311263bc313b3da272783860ce573189.tar.gz |
[PATCH] forcedeth: netpoll support
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/forcedeth.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/forcedeth.c b/drivers/net/forcedeth.c index cda48c5..c93f3d0 100644 --- a/drivers/net/forcedeth.c +++ b/drivers/net/forcedeth.c @@ -1480,6 +1480,13 @@ static void nv_do_nic_poll(unsigned long data) enable_irq(dev->irq); } +#ifdef CONFIG_NET_POLL_CONTROLLER +static void nv_poll_controller(struct net_device *dev) +{ + nv_do_nic_poll((unsigned long) dev); +} +#endif + static void nv_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) { struct fe_priv *np = get_nvpriv(dev); @@ -1962,6 +1969,9 @@ static int __devinit nv_probe(struct pci_dev *pci_dev, const struct pci_device_i dev->get_stats = nv_get_stats; dev->change_mtu = nv_change_mtu; dev->set_multicast_list = nv_set_multicast; +#ifdef CONFIG_NET_POLL_CONTROLLER + dev->poll_controller = nv_poll_controller; +#endif SET_ETHTOOL_OPS(dev, &ops); dev->tx_timeout = nv_tx_timeout; dev->watchdog_timeo = NV_WATCHDOG_TIMEO; |