Re: [PATCHv3 net] ipv6: do not match device when remove source route

David Ahern
2023-07-23T18:12:02Z

On 7/23/23 2:13 AM, Ido Schimmel wrote:
>
> I don't know, but when I checked the code and tested it I noticed that
> the kernel doesn't care on which interface the address is configured.
> Therefore, in order for deletion to be consistent with addition and with
> IPv4, the preferred source address shouldn't be removed from routes in
> the VRF table as long as the address is configured on one of the
> interfaces in the VRF.
>

Deleting routes associated with device 2 when an address is deleted from
device 1 is going to introduce as many problems as it solves. The VRF
use case is one example.