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
> 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",
>
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
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