diff options
author | Santiago Leon <santil@us.ibm.com> | 2006-10-03 19:24:28 +0200 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-10-05 12:43:23 +0200 |
commit | 6b4223748895ed5b200c8049231567ea399fc0c2 (patch) | |
tree | 451cfcc084a6529c4ffbe57be9ed89e8186c7219 /drivers | |
parent | [PATCH] ibmveth: Harden driver initilisation (diff) | |
download | linux-6b4223748895ed5b200c8049231567ea399fc0c2.tar.xz linux-6b4223748895ed5b200c8049231567ea399fc0c2.zip |
[PATCH] ibmveth: Add netpoll function
This patch adds the net poll controller function to ibmveth to support
netconsole and netdump.
Signed-off-by: Santiago Leon <santil@us.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ibmveth.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/ibmveth.c b/drivers/net/ibmveth.c index df3a59efa7a8..bd79d67c0e97 100644 --- a/drivers/net/ibmveth.c +++ b/drivers/net/ibmveth.c @@ -925,6 +925,14 @@ static int ibmveth_change_mtu(struct net_device *dev, int new_mtu) return -EINVAL; } +#ifdef CONFIG_NET_POLL_CONTROLLER +static void ibmveth_poll_controller(struct net_device *dev) +{ + ibmveth_replenish_task(dev->priv); + ibmveth_interrupt(dev->irq, dev, NULL); +} +#endif + static int __devinit ibmveth_probe(struct vio_dev *dev, const struct vio_device_id *id) { int rc, i; @@ -997,6 +1005,9 @@ static int __devinit ibmveth_probe(struct vio_dev *dev, const struct vio_device_ netdev->ethtool_ops = &netdev_ethtool_ops; netdev->change_mtu = ibmveth_change_mtu; SET_NETDEV_DEV(netdev, &dev->dev); +#ifdef CONFIG_NET_POLL_CONTROLLER + netdev->poll_controller = ibmveth_poll_controller; +#endif netdev->features |= NETIF_F_LLTX; spin_lock_init(&adapter->stats_lock); |