Re: [PATCH v2] net: route: Fix vrf dst_entry ref count false increasing

From: linmiaohe
Date: Sat May 04 2019 - 22:12:01 EST




On 2019/5/4 22:59, David Ahern wrote:
> On 5/4/19 7:13 AM, linmiaohe wrote:
>> From: Suanming.Mou <mousuanming@xxxxxxxxxx>
>>
>> When config ip in default vrf same as the ip in specified
>> vrf, fib_lookup will return the route from table local
>> even if the in device is an enslaved l3mdev. Then the
>
> you need to move the local rule with a preference of 0 after the l3mdev
> rule.
>
>

Move the local rule after l3mdev rule can get rid of this problem. And
even if this happend, we can delete the same ip address in default vrf
to fix it.
But I think maybe it's still a problem because other rule with default
vrf out device holds the specified vrf device. It looks unreasonable.

Many Thanks.