提交 0887a576 编写于 作者: A Amit Uttamchandani 提交者: David S. Miller

net/velocity: add poll controller function for velocity nic

Add poll controller function for velocity nic.
Signed-off-by: NAmit Uttamchandani <auttamchandani@logicube.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 6e3d6774
......@@ -2376,6 +2376,23 @@ static int velocity_change_mtu(struct net_device *dev, int new_mtu)
return ret;
}
#ifdef CONFIG_NET_POLL_CONTROLLER
/**
* velocity_poll_controller - Velocity Poll controller function
* @dev: network device
*
*
* Used by NETCONSOLE and other diagnostic tools to allow network I/P
* with interrupts disabled.
*/
static void velocity_poll_controller(struct net_device *dev)
{
disable_irq(dev->irq);
velocity_intr(dev->irq, dev);
enable_irq(dev->irq);
}
#endif
/**
* velocity_mii_ioctl - MII ioctl handler
* @dev: network device
......@@ -2641,6 +2658,9 @@ static const struct net_device_ops velocity_netdev_ops = {
.ndo_do_ioctl = velocity_ioctl,
.ndo_vlan_rx_add_vid = velocity_vlan_rx_add_vid,
.ndo_vlan_rx_kill_vid = velocity_vlan_rx_kill_vid,
#ifdef CONFIG_NET_POLL_CONTROLLER
.ndo_poll_controller = velocity_poll_controller,
#endif
};
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册