]> git.baikalelectronics.ru Git - kernel.git/commit
net/ipv4: Bail early if user only wants prefix entries
authorDavid Ahern <dsahern@gmail.com>
Tue, 16 Oct 2018 01:56:51 +0000 (18:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Oct 2018 07:14:08 +0000 (00:14 -0700)
commit46cde2928ebf139728131dbdac1131c1fce65427
treeeca4db1ca406c8c5d36daebbd92576ababdc4869
parent5780e8e99ca1dfc77eef3cc6a9448eb189e3ec8a
net/ipv4: Bail early if user only wants prefix entries

Unlike IPv6, IPv4 does not have routes marked with RTF_PREFIX_RT. If the
flag is set in the dump request, just return.

In the process of this change, move the CLONE check to use the new
filter flags.

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