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

Started by Stephen Hemminger on Jul 1, 2016

open the first message on its own page

On Tue, 28 Jun 2016 23:27:14 +0000
Andrey Vagin [off-list ref] wrote:
From: Andrew Vagin <redacted>

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 <lucien.xin@gmail.com>
Cc: Hangbin Liu <redacted>
Cc: Stephen Hemminger <redacted>
Fixes: 68eede250500 ("route: allow routes to be configured with expire values")
Signed-off-by: Andrew Vagin <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help