• Petr Machata's avatar
    mlxsw: spectrum_router: Allow address handlers to run on bridge ports · 6bbc9ca6
    Petr Machata authored
    
    
    Currently the IP address event handlers bail out when the event is related
    to a netdevice that is a bridge port or a member of a LAG. In order to
    create a RIF when a bridged or LAG'd port is unenslaved, these event
    handlers will be replayed. However, at the point in time when the
    NETDEV_CHANGEUPPER event is delivered, informing of the loss of
    enslavement, the port is still formally enslaved.
    
    In order for the operation to have any effect, these handlers need an extra
    parameter to indicate that the check for bridge or LAG membership should
    not be done. In this patch, add an argument "nomaster" to several event
    handlers.
    Signed-off-by: default avatarPetr Machata <petrm@nvidia.com>
    Reviewed-by: default avatarDanielle Ratson <danieller@nvidia.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    6bbc9ca6
spectrum_router.c 300 KB