Re: [PATCH net] ipv6: set dst.obsolete when a cached route has expired

2017-08-28 Thread David Miller
From: Xin Long Date: Sat, 26 Aug 2017 20:10:10 +0800 > Now it doesn't check for the cached route expiration in ipv6's > dst_ops->check(), because it trusts dst_gc that would clean the > cached route up when it's expired. > > The problem is in dst_gc, it would clean the cached route only > when i

[PATCH net] ipv6: set dst.obsolete when a cached route has expired

2017-08-26 Thread Xin Long
Now it doesn't check for the cached route expiration in ipv6's dst_ops->check(), because it trusts dst_gc that would clean the cached route up when it's expired. The problem is in dst_gc, it would clean the cached route only when it's refcount is 1. If some other module (like xfrm) keeps holding i