]> git.baikalelectronics.ru Git - kernel.git/commit
net: Don't return invalid table id error when dumping all families
authorDavid Ahern <dsahern@gmail.com>
Wed, 24 Oct 2018 19:59:01 +0000 (12:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Oct 2018 21:06:25 +0000 (14:06 -0700)
commit55ec762c7707d153be07299542bad305c040c61a
tree098cb71d5990c8b8677194a3091a48a95437bcc4
parent2c17a811e1cc4df11e6d3bc6efcfa37be8219f56
net: Don't return invalid table id error when dumping all families

When doing a route dump across all address families, do not error out
if the table does not exist. This allows a route dump for AF_UNSPEC
with a table id that may only exist for some of the families.

Do return the table does not exist error if dumping routes for a
specific family and the table does not exist.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_fib.h
net/ipv4/fib_frontend.c
net/ipv4/ipmr.c
net/ipv6/ip6_fib.c
net/ipv6/ip6mr.c