summaryrefslogtreecommitdiff
path: root/include/net/dsa.h
diff options
context:
space:
mode:
authorVladimir Oltean <olteanv@gmail.com>2019-06-08 15:04:28 +0300
committerDavid S. Miller <davem@davemloft.net>2019-06-08 15:20:39 -0700
commit5e3f847a02aabfecea519d7b2fd48f4d6f551be6 (patch)
treeb32622186195aa67532df4663bb1f4584a83a616 /include/net/dsa.h
parent146d442c2357539589da14d374a25c9a82eb7f1e (diff)
downloadlinux-5e3f847a02aabfecea519d7b2fd48f4d6f551be6.tar.gz
net: dsa: Add teardown callback for drivers
This is helpful for e.g. draining per-driver (not per-port) tagger queues. Signed-off-by: Vladimir Oltean <olteanv@gmail.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/dsa.h')
-rw-r--r--include/net/dsa.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h
index 1131d9fac20b..82a2baa2dc48 100644
--- a/include/net/dsa.h
+++ b/include/net/dsa.h
@@ -357,6 +357,7 @@ struct dsa_switch_ops {
int port);
int (*setup)(struct dsa_switch *ds);
+ void (*teardown)(struct dsa_switch *ds);
u32 (*get_phy_flags)(struct dsa_switch *ds, int port);
/*