• Ido Schimmel's avatar
    ipv6: Handle route deletion notification · d2f0c9b1
    Ido Schimmel authored
    For the purpose of route offload, when a single route is deleted, it is
    only of interest if it is the first route in the node or if it is
    sibling to such a route.
    
    In the first case, distinguish between several possibilities:
    
    1. Route is the last route in the node. Emit a delete notification
    
    2. Route is followed by a non-multipath route. Emit a replace
    notification for the non-multipath route.
    
    3. Route is followed by a multipath route. Emit a replace notification
    for the multipath route.
    
    In the second case, only emit a delete notification to ensure the route
    is no longer used as a valid nexthop.
    Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
    Reviewed-by: default avatarJiri Pirko <jiri@mellanox.com>
    Reviewed-by: default avatarDavid Ahern <dsahern@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    d2f0c9b1
ip6_fib.c 61.9 KB