• Amit Cohen's avatar
    mlxsw: spectrum_switchdev: Simplify mlxsw_sp_port_mc_disabled_set() · a6f43b1d
    Amit Cohen authored
    The above mentioned function is called for each port in bridge when the
    multicast behavior is changed. Currently, it updates all the relevant
    MID entries only for the first call, but the update of flooding per port
    is done only for the port that it was called for it.
    
    To simplify this behavior, it is possible to handle flooding for all the
    ports in the first call, then, the other calls will do nothing. For
    that, new functions are required to set flooding for all ports, no
    'struct mlxsw_sp_port' is required.
    
    This issue was found while extending this function for unified bridge
    model, the above mentioned change will ease the extending later.
    Signed-off-by: default avatarAmit Cohen <amcohen@nvidia.com>
    Signed-off-by: default avatarIdo Schimmel <idosch@nvidia.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    a6f43b1d
spectrum_switchdev.c 102 KB