path: root/net/dsa/dsa_priv.h
diff options
authorFlorian Fainelli <f.fainelli@gmail.com>2015-07-31 18:42:57 (GMT)
committerDavid S. Miller <davem@davemloft.net>2015-07-31 22:45:37 (GMT)
commit04ff53f96a931751a70c2bb3926770900b5fbebe (patch)
treee5fe8108bf859f4f57c66a24eaebd8118dcf2778 /net/dsa/dsa_priv.h
parent4ed70ce9f01c998999e48642a768d9013bee2c4f (diff)
net: dsa: Add netconsole support
Add support for using DSA slave network devices with netconsole, which requires us to allocate and free custom netpoll instances and invoke the parent network device poll controller callback. In order for netconsole to work, we need to construct the DSA tag, but not queue the skb for transmission on the master network device xmit function. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/dsa_priv.h')
1 files changed, 4 insertions, 0 deletions
diff --git a/net/dsa/dsa_priv.h b/net/dsa/dsa_priv.h
index eeade90..311796c8 100644
--- a/net/dsa/dsa_priv.h
+++ b/net/dsa/dsa_priv.h
@@ -13,6 +13,7 @@
#include <linux/phy.h>
#include <linux/netdevice.h>
+#include <linux/netpoll.h>
struct dsa_device_ops {
struct sk_buff *(*xmit)(struct sk_buff *skb, struct net_device *dev);
@@ -47,6 +48,9 @@ struct dsa_slave_priv {
int old_duplex;
struct net_device *bridge_dev;
+ struct netpoll *netpoll;
/* dsa.c */

Privacy Policy