diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2015-07-31 21:42:57 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-01 01:45:37 +0300 |
commit | 04ff53f96a931751a70c2bb3926770900b5fbebe (patch) | |
tree | e5fe8108bf859f4f57c66a24eaebd8118dcf2778 /net/dsa/dsa_priv.h | |
parent | 4ed70ce9f01c998999e48642a768d9013bee2c4f (diff) | |
download | linux-04ff53f96a931751a70c2bb3926770900b5fbebe.tar.xz |
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')
-rw-r--r-- | net/dsa/dsa_priv.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/dsa/dsa_priv.h b/net/dsa/dsa_priv.h index eeade901e67a..311796c809af 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; +#ifdef CONFIG_NET_POLL_CONTROLLER + struct netpoll *netpoll; +#endif }; /* dsa.c */ |