]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipmr/ip6mr: update lastuse on entry change
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Tue, 26 Jul 2016 16:54:52 +0000 (18:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Jul 2016 22:18:31 +0000 (15:18 -0700)
commite375f9740f1ddfd01f60929d49561104aa8d0f51
tree02848b638c0a45588b7867631bd8a1e55f9440dd
parent07b72f5d0f83db6ccd27c7dc5a7ad7a2866606b9
net: ipmr/ip6mr: update lastuse on entry change

Currently lastuse is updated on entry creation and cache hit, but it should
also be updated on entry change. Since both on add and update the ttl array
is updated we can simply update the lastuse in ipmr_update_thresholds.

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
CC: Roopa Prabhu <roopa@cumulusnetworks.com>
CC: Donald Sharp <sharpd@cumulusnetworks.com>
CC: David S. Miller <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipmr.c
net/ipv6/ip6mr.c