summaryrefslogtreecommitdiffstats
path: root/net/8021q/vlan.h
diff options
context:
space:
mode:
authorBenjamin LaHaise <bcrl@kvack.org>2011-12-08 06:20:49 +0000
committerDavid S. Miller <davem@davemloft.net>2011-12-08 19:58:30 -0500
commit6d4cdf47d2cc9d40227c67c79a4942e36ed1b0ba (patch)
tree5c31e3f1be3ba098f57ae33796e50ea50dcee1e9 /net/8021q/vlan.h
parent8af2a218de38f51ea4b4fa48cac1273319ae260c (diff)
downloadop-kernel-dev-6d4cdf47d2cc9d40227c67c79a4942e36ed1b0ba.zip
op-kernel-dev-6d4cdf47d2cc9d40227c67c79a4942e36ed1b0ba.tar.gz
vlan: add 802.1q netpoll support
Add netpoll support to 802.1q vlan devices. Based on the netpoll support in the bridging code. Tested on a forced_eth device with netconsole. Signed-off-by: Benjamin LaHaise <bcrl@kvack.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/8021q/vlan.h')
-rw-r--r--net/8021q/vlan.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/8021q/vlan.h b/net/8021q/vlan.h
index 28d8dc2..a4886d9 100644
--- a/net/8021q/vlan.h
+++ b/net/8021q/vlan.h
@@ -41,6 +41,8 @@ struct vlan_pcpu_stats {
u32 tx_dropped;
};
+struct netpoll;
+
/**
* struct vlan_dev_priv - VLAN private device data
* @nr_ingress_mappings: number of ingress priority mappings
@@ -68,6 +70,9 @@ struct vlan_dev_priv {
struct proc_dir_entry *dent;
struct vlan_pcpu_stats __percpu *vlan_pcpu_stats;
+#ifdef CONFIG_NET_POLL_CONTROLLER
+ struct netpoll *netpoll;
+#endif
};
static inline struct vlan_dev_priv *vlan_dev_priv(const struct net_device *dev)
OpenPOWER on IntegriCloud