aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>2016-02-12 12:09:39 -0500
committerDavid S. Miller <davem@davemloft.net>2016-02-23 14:52:46 -0500
commita6692754d61a6b3735803783f394880805675f99 (patch)
tree5f958180ec0406c7a5616386d36da97eacec5e2d /include/net
parentd715fa6431a794e6a8cdb53d87acd3d03ed8a941 (diff)
net: dsa: pass bridge down to drivers
Some DSA drivers may or may not support multiple software bridges on top of an hardware switch. It is more convenient for them to access the bridge's net_device for finer configuration. Removing the need to craft and access a bitmask also simplifies the code. This patch changes the signature of bridge related functions, update DSA drivers, and removes dsa_slave_br_port_mask. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Tested-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/dsa.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h
index 26a0e86e611e..1c845d7bf0b2 100644
--- a/include/net/dsa.h
+++ b/include/net/dsa.h
@@ -297,9 +297,8 @@ struct dsa_switch_driver {
297 * Bridge integration 297 * Bridge integration
298 */ 298 */
299 int (*port_join_bridge)(struct dsa_switch *ds, int port, 299 int (*port_join_bridge)(struct dsa_switch *ds, int port,
300 u32 br_port_mask); 300 struct net_device *bridge);
301 int (*port_leave_bridge)(struct dsa_switch *ds, int port, 301 int (*port_leave_bridge)(struct dsa_switch *ds, int port);
302 u32 br_port_mask);
303 int (*port_stp_update)(struct dsa_switch *ds, int port, 302 int (*port_stp_update)(struct dsa_switch *ds, int port,
304 u8 state); 303 u8 state);
305 304