Merge branch 'bridge-replay-helpers'
authorDavid S. Miller <davem@davemloft.net>
Mon, 28 Jun 2021 21:09:04 +0000 (14:09 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jun 2021 21:09:04 +0000 (14:09 -0700)
commit3095f512e317730c08fdc1fcaa93dde90d798793
tree9ba8efa46dfb690c3076eb2d2c810484ba88cc03
parenta1b05634e1f0ab11a37906557c8e8eb2aeece222
parent7491894532341cff11babd1fe3bd68537166bcc4
Merge branch 'bridge-replay-helpers'

Vladimir Oltean says:

====================
Cleanup for the bridge replay helpers

This patch series brings some improvements to the logic added to the
bridge and DSA to handle LAG interfaces sandwiched between a bridge and
a DSA switch port.

        br0
        /  \
       /    \
     bond0  swp2
     /  \
    /    \
  swp0  swp1

In particular, it ensures that the switchdev object additions and
deletions are well balanced per physical port. This is important for
future work in the area of offloading local bridge FDB entries to
hardware in the context of DSA requesting a replay of those entries at
bridge join time (this will be submitted in a future patch series).
Due to some difficulty ensuring that the deletion of local FDB entries
pointing towards the bridge device itself is notified to switchdev in
time (before the switchdev port disconnects from the bridge), this is
potentially still not the final form in which the replay helpers will
exist. I'm thinking about moving from the pull mode (in which DSA
requests the replay) to a push mode (in which the bridge initiates the
replay). Nonetheless, these preliminary changes are needed either way.

The patch series also addresses some feedback from Nikolai which is long
overdue by now (sorry).

Switchdev driver maintainers were deliberately omitted due to the
trivial nature of the driver changes (just a function prototype).

Changes in v2:
- fix build issue in patch 4 (function prototype mismatch)
- move switchdev object unsync to the NETDEV_PRECHANGEUPPER code path
====================

Signed-off-by: David S. Miller <davem@davemloft.net>