• Vladimir Oltean's avatar
    net: switchdev: remove lag_mod_cb from switchdev_handle_fdb_event_to_device · ec638740
    Vladimir Oltean authored
    When the switchdev_handle_fdb_event_to_device() event replication helper
    was created, my original thought was that FDB events on LAG interfaces
    should most likely be special-cased, not just replicated towards all
    switchdev ports beneath that LAG. So this replication helper currently
    does not recurse through switchdev lower interfaces of LAG bridge ports,
    but rather calls the lag_mod_cb() if that was provided.
    
    No switchdev driver uses this helper for FDB events on LAG interfaces
    yet, so that was an assumption which was yet to be tested. It is
    certainly usable for that purpose, as my RFC series shows:
    
    https://patchwork.kernel.org/project/netdevbpf/cover/20220210125201.2859463-1-vladimir.oltean@nxp.com/
    
    however this approach is slightly convoluted because:
    
    - the switchdev driver gets a "dev" that isn't its own net device, but
      rather the LAG net device. It must call switchdev_lower_dev_find(dev)
      in order to get a handle of any...
    ec638740
lan966x_switchdev.c 15 KB