diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2016-02-12 12:09:39 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-23 14:52:46 -0500 |
commit | a6692754d61a6b3735803783f394880805675f99 (patch) | |
tree | 5f958180ec0406c7a5616386d36da97eacec5e2d /drivers/net/dsa/bcm_sf2.h | |
parent | d715fa6431a794e6a8cdb53d87acd3d03ed8a941 (diff) | |
download | linux-stable-a6692754d61a6b3735803783f394880805675f99.tar.gz linux-stable-a6692754d61a6b3735803783f394880805675f99.tar.bz2 linux-stable-a6692754d61a6b3735803783f394880805675f99.zip |
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 'drivers/net/dsa/bcm_sf2.h')
-rw-r--r-- | drivers/net/dsa/bcm_sf2.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/dsa/bcm_sf2.h b/drivers/net/dsa/bcm_sf2.h index 6bba1c98d764..200b1f5fdb56 100644 --- a/drivers/net/dsa/bcm_sf2.h +++ b/drivers/net/dsa/bcm_sf2.h @@ -50,6 +50,8 @@ struct bcm_sf2_port_status { struct ethtool_eee eee; u32 vlan_ctl_mask; + + struct net_device *bridge_dev; }; struct bcm_sf2_arl_entry { |