Re: [PATCH] ip route: timeout for routes has to be set in seconds

2016-06-30 Thread Stephen Hemminger
On Tue, 28 Jun 2016 23:27:14 + Andrey Vagin wrote: > From: Andrew Vagin > > Currently a timeout is multiplied by HZ in user-space and > then it multiplied by HZ in kernel-space. > > $ ./ip/ip r add 2002::0/64 dev veth1 expires 10 > $ ./ip/ip -6 r > 2002::/64 dev veth1 metric 1024 linkdown

Re: [PATCH] ip route: timeout for routes has to be set in seconds

2016-06-29 Thread Stephen Hemminger
> There's another issue. > now the expires transition with HZ happens in kernel when we add > route with expire, but when we dump, the expires transition is in the > user-space: > if (ci->rta_expires != 0) > fprintf(fp, " expires %dsec", >

Re: [PATCH] ip route: timeout for routes has to be set in seconds

2016-06-29 Thread Xin Long
Hi, On Wed, Jun 29, 2016 at 7:27 AM, Andrey Vagin wrote: > From: Andrew Vagin > > Currently a timeout is multiplied by HZ in user-space and > then it multiplied by HZ in kernel-space. > > $ ./ip/ip r add 2002::0/64 dev veth1 expires 10 > $ ./ip/ip -6 r > 2002::/64 dev veth1 metric 1024 linkdown

[PATCH] ip route: timeout for routes has to be set in seconds

2016-06-28 Thread Andrey Vagin
From: Andrew Vagin Currently a timeout is multiplied by HZ in user-space and then it multiplied by HZ in kernel-space. $ ./ip/ip r add 2002::0/64 dev veth1 expires 10 $ ./ip/ip -6 r 2002::/64 dev veth1 metric 1024 linkdown expires 996sec pref medium Cc: Xin Long Cc: Hangbin Liu Cc: Stephen