• Petr Machata's avatar
    mlxsw: spectrum_router: Add a helper specifically for joining a LAG · 76962b80
    Petr Machata authored
    Currently, joining a LAG very simply means that the LAG RIF should be
    joined by the subport representing untagged traffic. If the RIF does not
    exist, it does not have to be created: if the user wants there to be RIF
    for the LAG device, they are supposed to add an IP address, and they are
    supposed to do it after tha LAG becomes mlxsw upper.
    
    We can also assume that the LAG has no uppers, otherwise the enslavement is
    not allowed.
    
    In the future, these ordering dependencies should be removed. That means
    that joining LAG will be more complex operation, possibly involving a lazy
    RIF creation, and possibly joining / lazily creating RIFs for VLAN uppers
    of the LAG. It will be handy to have a dedicated function that handles all
    this. The new function mlxsw_sp_router_port_join_lag() is that.
    Signed-off-by: default avatarPetr Machata <petrm@nvidia.com>
    Reviewed-by: default avatarAmit Cohen <amcohen@nvidia.com>
    Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
    76962b80
spectrum.c 149 KB