Re: [PATCH net] net: don't return invalid table id error when we fall back to PF_UNSPEC

2020-05-21 Thread David Miller
From: Sabrina Dubroca Date: Wed, 20 May 2020 11:15:46 +0200 > In case we can't find a ->dumpit callback for the requested > (family,type) pair, we fall back to (PF_UNSPEC,type). In effect, we're > in the same situation as if userspace had requested a PF_UNSPEC > dump. For RTM_GETROUTE, that handl

Re: [PATCH net] net: don't return invalid table id error when we fall back to PF_UNSPEC

2020-05-20 Thread David Ahern
On 5/20/20 3:15 AM, Sabrina Dubroca wrote: > In case we can't find a ->dumpit callback for the requested > (family,type) pair, we fall back to (PF_UNSPEC,type). In effect, we're > in the same situation as if userspace had requested a PF_UNSPEC > dump. For RTM_GETROUTE, that handler is rtnl_dump_all

[PATCH net] net: don't return invalid table id error when we fall back to PF_UNSPEC

2020-05-20 Thread Sabrina Dubroca
In case we can't find a ->dumpit callback for the requested (family,type) pair, we fall back to (PF_UNSPEC,type). In effect, we're in the same situation as if userspace had requested a PF_UNSPEC dump. For RTM_GETROUTE, that handler is rtnl_dump_all, which calls all the registered RTM_GETROUTE handl