diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2015-07-31 20:42:57 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-01 00:45:37 +0200 |
commit | 04ff53f96a931751a70c2bb3926770900b5fbebe (patch) | |
tree | e5fe8108bf859f4f57c66a24eaebd8118dcf2778 /net/dsa/dsa_priv.h | |
parent | net: dsa: Refactor transmit path to eliminate duplication (diff) | |
download | linux-04ff53f96a931751a70c2bb3926770900b5fbebe.tar.xz linux-04ff53f96a931751a70c2bb3926770900b5fbebe.zip |
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 */ |