]> git.baikalelectronics.ru Git - kernel.git/commit
net/sched: act_mirred: Use passed lastuse argument
authorPaul Blakey <paulb@mellanox.com>
Wed, 19 Oct 2016 14:42:39 +0000 (17:42 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Oct 2016 15:14:24 +0000 (11:14 -0400)
commitf47636c2a6611240b6736a7104e930161d646740
tree914614d0fc2a612104cd30f298d3036a739e6abe
parent355bb866db59f222474bea4b2b79fd38a22e6693
net/sched: act_mirred: Use passed lastuse argument

stats_update callback is called by NIC drivers doing hardware
offloading of the mirred action. Lastuse is passed as argument
to specify when the stats was actually last updated and is not
always the current time.

Fixes: 3ae103f5a819 ('net: act_mirred: allow statistic updates from offloaded actions')
Signed-off-by: Paul Blakey <paulb@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_mirred.c