]> git.proxmox.com Git - pve-kernel-3.10.0.git/blame - add-empty-ndo_poll_controller-to-veth.patch
update to kernel-3.10.0-327.3.1.el7.src.rpm
[pve-kernel-3.10.0.git] / add-empty-ndo_poll_controller-to-veth.patch
CommitLineData
debbaada
DM
1From: Stefan Priebe <s.priebe@profihost.ag>
2To: <pve-devel@pve.proxmox.com>
3Date: Sat, 21 Jun 2014 19:46:19 +0200
4
5This patch adds netpoll "support" to veth. As veth is a virtual device there is no need to support netpoll. We just need
6to tell the kernel veth supports it to have netpoll support on bridging while veth devices are assigned.
7
8An example is the netconsole driver on a bridge.
9
10Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
11---
12 drivers/net/veth.c | 9 +++++++++
13 1 file changed, 9 insertions(+)
14
15diff --git a/drivers/net/veth.c b/drivers/net/veth.c
16index 177f911..5de0771 100644
17--- a/drivers/net/veth.c
18+++ b/drivers/net/veth.c
19@@ -188,6 +188,12 @@ static struct rtnl_link_stats64 *veth_get_stats64(struct net_device *dev,
20 return tot;
21 }
22
23+#ifdef CONFIG_NET_POLL_CONTROLLER
24+static void veth_poll_controller(struct net_device *dev)
25+{
26+}
27+#endif
28+
29 static int veth_open(struct net_device *dev)
30 {
31 struct veth_priv *priv = netdev_priv(dev);
32@@ -251,6 +257,9 @@ static const struct net_device_ops veth_netdev_ops = {
debbaada
DM
33 .ndo_get_stats64 = veth_get_stats64,
34 .ndo_set_mac_address = eth_mac_addr,
dedb7fd5 35 .ndo_get_iflink = veth_get_iflink,
debbaada
DM
36+#ifdef CONFIG_NET_POLL_CONTROLLER
37+ .ndo_poll_controller = veth_poll_controller,
38+#endif
39 };
40
41 #define VETH_FEATURES (NETIF_F_SG | NETIF_F_FRAGLIST | NETIF_F_ALL_TSO | \
42--
431.7.10.4