diff options
author | Nikolay Aleksandrov <nikolay@cumulusnetworks.com> | 2016-09-20 14:17:22 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-21 04:58:23 (GMT) |
commit | b5036cd4ed3173ab8cdbc85e2ba74acf46bafb51 (patch) | |
tree | d56ab33c889d5c3276af636ae6c6c4c8031fc526 /net/core | |
parent | 493d5f6db0ab12a9fcac587ae223f3e4e48dba6f (diff) | |
download | linux-b5036cd4ed3173ab8cdbc85e2ba74acf46bafb51.tar.xz |
ipmr, ip6mr: return lastuse relative to now
When I introduced the lastuse member I made a subtle error because it was
returned as an absolute value but that is meaningless to user-space as it
doesn't allow to see how old exactly an entry is. Let's make it similar to
how the bridge returns such values and make it relative to "now" (jiffies).
This allows us to show the actual age of the entries and is much more
useful (e.g. user-space daemons can age out entries, iproute2 can display
the lastuse properly).
Fixes: 43b9e1274060 ("net: ipmr/ip6mr: add support for keeping an entry age")
Reported-by: Satish Ashok <sashok@cumulusnetworks.com>
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
0 files changed, 0 insertions, 0 deletions