[PATCH net-next 0/9] Cleanup in brport flags switchdev offload for DSA

From: Vladimir Oltean
Date: Sun Feb 07 2021 - 18:24:33 EST


From: Vladimir Oltean <vladimir.oltean@xxxxxxx>

The initial goal of this series was to have better support for
standalone ports mode and multiple bridges on the Ocelot/Felix DSA
driver. Proper support for standalone mode requires disabling address
learning, which in turn requires interaction with the switchdev notifier,
which is actually where most of the patches are.

Vladimir Oltean (9):
net: bridge: don't print in br_switchdev_set_port_flag
net: bridge: offload initial and final port flags through switchdev
net: dsa: stop setting initial and final brport flags
net: dsa: kill .port_egress_floods overengineering
net: squash switchdev attributes PRE_BRIDGE_FLAGS and BRIDGE_FLAGS
net: bridge: stop treating EOPNOTSUPP as special in
br_switchdev_set_port_flag
net: mscc: ocelot: use separate flooding PGID for broadcast
net: mscc: ocelot: offload bridge port flags to device
net: mscc: ocelot: support multiple bridges

drivers/net/dsa/b53/b53_common.c | 18 ++-
drivers/net/dsa/mv88e6xxx/chip.c | 19 ++-
drivers/net/dsa/ocelot/felix.c | 9 ++
.../marvell/prestera/prestera_switchdev.c | 16 +--
.../mellanox/mlxsw/spectrum_switchdev.c | 28 ++--
drivers/net/ethernet/mscc/ocelot.c | 135 +++++++++++++-----
drivers/net/ethernet/mscc/ocelot_net.c | 4 +
drivers/net/ethernet/mscc/ocelot_vsc7514.c | 2 +-
drivers/net/ethernet/rocker/rocker_main.c | 24 +---
drivers/net/ethernet/ti/cpsw_switchdev.c | 20 +--
drivers/staging/fsl-dpaa2/ethsw/ethsw.c | 22 +--
include/net/dsa.h | 6 +-
include/net/switchdev.h | 8 +-
include/soc/mscc/ocelot.h | 26 ++--
net/bridge/br_if.c | 24 +++-
net/bridge/br_netlink.c | 67 +++++----
net/bridge/br_private.h | 8 +-
net/bridge/br_switchdev.c | 35 ++---
net/dsa/dsa_priv.h | 4 +-
net/dsa/port.c | 40 ++----
net/dsa/slave.c | 3 -
21 files changed, 285 insertions(+), 233 deletions(-)

--
2.25.1