Re: [Patch net] ipv6: ignore null_entry in inet6_rtm_getroute() too

2017-03-01 Thread Cong Wang
On Tue, Feb 28, 2017 at 2:35 PM, David Ahern wrote: > On 2/28/17 11:48 AM, Cong Wang wrote: >> On Tue, Feb 28, 2017 at 11:01 AM, David Ahern >> wrote: >>> On 2/28/17 10:44 AM, Cong Wang wrote: Like commit 1f17e2f2c8a8 ("net: ipv6: ignore

Re: [Patch net] ipv6: ignore null_entry in inet6_rtm_getroute() too

2017-02-28 Thread David Ahern
On 2/28/17 11:48 AM, Cong Wang wrote: > On Tue, Feb 28, 2017 at 11:01 AM, David Ahern > wrote: >> On 2/28/17 10:44 AM, Cong Wang wrote: >>> Like commit 1f17e2f2c8a8 ("net: ipv6: ignore null_entry on route dumps"), >>> we need to ignore null entry in inet6_rtm_getroute()

Re: [Patch net] ipv6: ignore null_entry in inet6_rtm_getroute() too

2017-02-28 Thread Cong Wang
On Tue, Feb 28, 2017 at 11:01 AM, David Ahern wrote: > On 2/28/17 10:44 AM, Cong Wang wrote: >> Like commit 1f17e2f2c8a8 ("net: ipv6: ignore null_entry on route dumps"), >> we need to ignore null entry in inet6_rtm_getroute() too. >> >> Return -ENOENT here because we

Re: [Patch net] ipv6: ignore null_entry in inet6_rtm_getroute() too

2017-02-28 Thread David Ahern
On 2/28/17 10:44 AM, Cong Wang wrote: > Like commit 1f17e2f2c8a8 ("net: ipv6: ignore null_entry on route dumps"), > we need to ignore null entry in inet6_rtm_getroute() too. > > Return -ENOENT here because we return the same errno when deleting > the null entry. > > Fixes: a1a22c1206 ("net:

[Patch net] ipv6: ignore null_entry in inet6_rtm_getroute() too

2017-02-28 Thread Cong Wang
Like commit 1f17e2f2c8a8 ("net: ipv6: ignore null_entry on route dumps"), we need to ignore null entry in inet6_rtm_getroute() too. Return -ENOENT here because we return the same errno when deleting the null entry. Fixes: a1a22c1206 ("net: ipv6: Keep nexthop of multipath route on admin down")