net/ipv6: Bail early if user only wants cloned entries
authorDavid Ahern <dsahern@gmail.com>
Tue, 16 Oct 2018 01:56:50 +0000 (18:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Oct 2018 07:14:07 +0000 (00:14 -0700)
commit08e814c9e8eb5a982cbd1e8f6bd255d97c51026f
treeb1791a1aca4521df03d0d0824195b288c6e01319
parent196cfebf897266c3450519e916bab9daff74e52c
net/ipv6: Bail early if user only wants cloned entries

Similar to IPv4, IPv6 fib no longer contains cloned routes. If a user
requests a route dump for only cloned entries, no sense walking the FIB
and returning everything.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_fib.c