summaryrefslogtreecommitdiffstats
path: root/include/net/dsa.h
diff options
context:
space:
mode:
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>2017-01-27 15:29:40 -0500
committerDavid S. Miller <davem@davemloft.net>2017-01-29 18:42:46 -0500
commita5e9a02e1f182237ef44eb3919cf4dd45ed4db9b (patch)
tree5787999ff8ca60139e33b7da23ade7a13a63f3d3 /include/net/dsa.h
parentafdcf151c1f7346207dcee3f8d6d82991dbbb7e5 (diff)
downloadlinux-stable-a5e9a02e1f182237ef44eb3919cf4dd45ed4db9b.tar.gz
linux-stable-a5e9a02e1f182237ef44eb3919cf4dd45ed4db9b.tar.bz2
linux-stable-a5e9a02e1f182237ef44eb3919cf4dd45ed4db9b.zip
net: dsa: move bridge device in dsa_port
Move the bridge_dev pointer from dsa_slave_priv to dsa_port so that DSA drivers can access this information and remove the need to cache it. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.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 6bd1f8b05dbd..924533fd4425 100644
--- a/include/net/dsa.h
+++ b/include/net/dsa.h
@@ -146,6 +146,7 @@ struct dsa_port {
struct device_node *dn;
unsigned int ageing_time;
u8 stp_state;
+ struct net_device *bridge_dev;
};
struct dsa_switch {