Skip to contentSkip to conversation

ibmveth support for netpoll

PATCH New Santiago Leon 1 participant 1 message Apr 28, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ibmveth support for netpoll

This patch adds NETPOLL support for the ibmveth driver. Please apply.

 ibmveth.c |   11 +++++++++++
 1 file changed, 11 insertions(+)
drivers/net/ibmveth.c +11 -0
@@ -918,6 +918,14 @@ static int ibmveth_change_mtu(struct net
 	return 0;	
 }
 
+#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;
@@ -989,6 +997,9 @@ static int __devinit ibmveth_probe(struc
 	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);