• Petr Machata's avatar
    mlxsw: Respin SPAN on switchdev events · c520bc69
    Petr Machata authored
    Changes to switchdev artifact can make a SPAN entry offloadable or
    unoffloadable. To that end:
    
    - Listen to SWITCHDEV_FDB_*_TO_BRIDGE notifications in addition to
      the *_TO_DEVICE ones, to catch whatever activity is sent to the
      bridge (likely by mlxsw itself).
    
      On each FDB notification, respin SPAN to reconcile it with the FDB
      changes.
    
    - Also respin on switchdev port attribute changes (which currently
      covers changes to STP state of ports) and port object additions and
      removals.
    Signed-off-by: default avatarPetr Machata <petrm@mellanox.com>
    Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    c520bc69
spectrum_switchdev.c 66.2 KB