• David Ahern's avatar
    net: ipv6: Change notifications for multipath delete to RTA_MULTIPATH · 16a16cd3
    David Ahern authored
    If an entire multipath route is deleted using prefix and len (without any
    nexthops), send a single RTM_DELROUTE notification with the full route
    using RTA_MULTIPATH. This is done by generating the skb before the route
    delete when all of the sibling routes are still present but sending it
    after the route has been removed from the FIB. The skip_notify flag
    is used to tell the lower fib code not to send notifications for the
    individual nexthop routes.
    
    If a route is deleted using RTA_MULTIPATH for any nexthops or a single
    nexthop entry is deleted, then the nexthops are deleted one at a time with
    notifications sent as each hop is deleted. This is necessary given that
    IPv6 allows individual hops within a route to be deleted.
    Signed-off-by: default avatarDavid Ahern <dsa@cumulusnetworks.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    16a16cd3
route.c 98.3 KB