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)
commit5712bf9c5c30ade3204016147d7b04bece6952d9
tree914614d0fc2a612104cd30f298d3036a739e6abe
parent164c971d1cc365dc85e5cf9a9302a91c0cf7f126
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: 9798e6fe4f9b ('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