OpenCloudOS-Kernel/drivers/net/dsa
Florian Fainelli 12f460f234 net: dsa: bcm_sf2: add HW bridging support
Implement the bridge join, leave and set_stp callbacks by making that
we do the following:

- when a port joins the bridge, all existing ports in the bridge get
  their VLAN control register updated with that joining port
- the joining port is including all existing bridge ports in its own
  VLAN control register

The leave operation is fairly similar, special care must be taken to
make sure that port leaving the bridging is not removing itself from its
own VLAN control register.

Since the various BR_* states apply directly to our HW semantics, we
just need to translate these constants into their corresponding HW
settings, and voila!

We make sure to trigger a fast-ageing process for ports that are
joining/leaving the bridge and transition from incompatible states, this
is equivalent to triggering an ARL flush for that port.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-02-25 17:03:38 -05:00
..
Kconfig net: dsa: bcm_sf2: always select FIXED_PHY 2014-12-16 00:57:07 -05:00
Makefile net: dsa: Add support for Marvell 88E6352 2014-10-30 14:54:10 -04:00
bcm_sf2.c net: dsa: bcm_sf2: add HW bridging support 2015-02-25 17:03:38 -05:00
bcm_sf2.h net: dsa: bcm_sf2: add HW bridging support 2015-02-25 17:03:38 -05:00
bcm_sf2_regs.h net: dsa: bcm_sf2: add HW bridging support 2015-02-25 17:03:38 -05:00
mv88e6xxx.c net: dsa: mv88e6352: Refactor shareable code 2015-02-19 15:52:25 -05:00
mv88e6xxx.h net: dsa: mv88e6352: Refactor shareable code 2015-02-19 15:52:25 -05:00
mv88e6060.c net: dsa: Report known silicon revisions for Marvell 88E6060 2014-10-30 14:54:10 -04:00
mv88e6123_61_65.c net: dsa: Centralise code for reading the temperature sensor 2014-11-16 15:47:26 -05:00
mv88e6131.c dsa: do not dereference non-existing routing table 2015-02-07 22:07:36 -08:00
mv88e6171.c net: dsa: mv88e6171: Enable access to phys via internal mdio bus 2015-02-19 15:52:25 -05:00
mv88e6352.c net: dsa: mv88e6352: Refactor shareable code 2015-02-19 15:52:25 -05:00