net: dsa: pass bridge down to drivers
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Fri, 12 Feb 2016 17:09:39 +0000 (12:09 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Feb 2016 19:52:46 +0000 (14:52 -0500)
commita6692754d61a6b3735803783f394880805675f99
tree5f958180ec0406c7a5616386d36da97eacec5e2d
parentd715fa6431a794e6a8cdb53d87acd3d03ed8a941
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>
Documentation/networking/dsa/dsa.txt
drivers/net/dsa/bcm_sf2.c
drivers/net/dsa/bcm_sf2.h
drivers/net/dsa/mv88e6xxx.c
drivers/net/dsa/mv88e6xxx.h
include/net/dsa.h
net/dsa/slave.c