Skip to content
  • Ido Schimmel's avatar
    mlxsw: spectrum_router: Correctly remove nexthop groups · 58312125
    Ido Schimmel authored
    At the end of the nexthop initialization process we determine whether
    the nexthop should be offloaded or not based on the NUD state of the
    neighbour representing it. After all the nexthops were initialized we
    refresh the nexthop group and potentially offload it to the device, in
    case some of the nexthops were resolved.
    
    Make the destruction of a nexthop group symmetric with its creation by
    marking all nexthops as invalid and then refresh the nexthop group to
    make sure it was removed from the device's tables.
    
    Fixes: b2157149
    
     ("mlxsw: spectrum_router: Add the nexthop neigh activity update")
    Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
    Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    58312125