]>
Commit | Line | Data |
---|---|---|
debbaada DM |
1 | From: Stefan Priebe <s.priebe@profihost.ag> |
2 | To: <pve-devel@pve.proxmox.com> | |
3 | Date: Sat, 21 Jun 2014 19:46:19 +0200 | |
4 | ||
5 | This patch adds netpoll "support" to veth. As veth is a virtual device there is no need to support netpoll. We just need | |
6 | to tell the kernel veth supports it to have netpoll support on bridging while veth devices are assigned. | |
7 | ||
8 | An example is the netconsole driver on a bridge. | |
9 | ||
10 | Signed-off-by: Stefan Priebe <s.priebe@profihost.ag> | |
11 | --- | |
12 | drivers/net/veth.c | 9 +++++++++ | |
13 | 1 file changed, 9 insertions(+) | |
14 | ||
15 | diff --git a/drivers/net/veth.c b/drivers/net/veth.c | |
16 | index 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 = { | |
33 | .ndo_change_mtu = veth_change_mtu, | |
34 | .ndo_get_stats64 = veth_get_stats64, | |
35 | .ndo_set_mac_address = eth_mac_addr, | |
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 | -- | |
43 | 1.7.10.4 |