• Ido Schimmel's avatar
    ipv6: Only Replay routes of interest to new listeners · 9c6ecd3c
    Ido Schimmel authored
    When a new listener is registered to the FIB notification chain it
    receives a dump of all the available routes in the system. Instead, make
    sure to only replay the IPv6 routes that are actually used in the data
    path and are of any interest to the new listener.
    
    This is done by iterating over all the routing tables in the given
    namespace, but from each traversed node only the first route ('leaf') is
    notified. Multipath routes are notified in a single notification instead
    of one for each nexthop.
    
    Add fib6_rt_dump_tmp() to do that. Later on in the patch set it will be
    renamed to fib6_rt_dump() instead of the existing one.
    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>
    9c6ecd3c
ip6_fib.c 60.6 KB