diff options
author | Nikolay Aleksandrov <nikolay@cumulusnetworks.com> | 2016-09-20 16:17:22 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-21 00:58:23 -0400 |
commit | b5036cd4ed3173ab8cdbc85e2ba74acf46bafb51 (patch) | |
tree | d56ab33c889d5c3276af636ae6c6c4c8031fc526 /drivers | |
parent | 493d5f6db0ab12a9fcac587ae223f3e4e48dba6f (diff) |
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 'drivers')
0 files changed, 0 insertions, 0 deletions