• Ido Schimmel's avatar
    mlxsw: spectrum_span: Use new analyzed ports list during speed / MTU change · 835d6b8c
    Ido Schimmel authored
    As previously explained, each port whose outgoing traffic is analyzed
    needs to have an egress mirror buffer.
    
    The size of the egress mirror buffer is calculated based on various
    parameters, two of which are the speed and the MTU of the port.
    
    Therefore, when the MTU or the speed of a port change, the SPAN code is
    called to see if the egress mirror buffer of the port needs to be
    adjusted.
    
    Currently, this is done by traversing all the SPAN agents and for each
    SPAN agent the list of bound ports is traversed.
    
    Instead of the above, traverse the recently added list of analyzed
    ports.
    
    This will later allow us to remove the old SPAN API.
    Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
    Reviewed-by: default avatarJiri Pirko <jiri@mellanox.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    835d6b8c
spectrum_span.c 37.1 KB