aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ibmveth.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ibmveth.c')
-rw-r--r--drivers/net/ibmveth.c11
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)
925 return -EINVAL; 925 return -EINVAL;
926} 926}
927 927
928#ifdef CONFIG_NET_POLL_CONTROLLER
929static void ibmveth_poll_controller(struct net_device *dev)
930{
931 ibmveth_replenish_task(dev->priv);
932 ibmveth_interrupt(dev->irq, dev, NULL);
933}
934#endif
935
928static int __devinit ibmveth_probe(struct vio_dev *dev, const struct vio_device_id *id) 936static int __devinit ibmveth_probe(struct vio_dev *dev, const struct vio_device_id *id)
929{ 937{
930 int rc, i; 938 int rc, i;
@@ -997,6 +1005,9 @@ static int __devinit ibmveth_probe(struct vio_dev *dev, const struct vio_device_
997 netdev->ethtool_ops = &netdev_ethtool_ops; 1005 netdev->ethtool_ops = &netdev_ethtool_ops;
998 netdev->change_mtu = ibmveth_change_mtu; 1006 netdev->change_mtu = ibmveth_change_mtu;
999 SET_NETDEV_DEV(netdev, &dev->dev); 1007 SET_NETDEV_DEV(netdev, &dev->dev);
1008#ifdef CONFIG_NET_POLL_CONTROLLER
1009 netdev->poll_controller = ibmveth_poll_controller;
1010#endif
1000 netdev->features |= NETIF_F_LLTX; 1011 netdev->features |= NETIF_F_LLTX;
1001 spin_lock_init(&adapter->stats_lock); 1012 spin_lock_init(&adapter->stats_lock);
1002 1013