]> git.baikalelectronics.ru Git - kernel.git/commit
net/sched: Fix update of lastuse in act modules implementing stats_update
authorRoi Dayan <roid@mellanox.com>
Tue, 26 Dec 2017 05:48:51 +0000 (07:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jan 2018 18:27:52 +0000 (13:27 -0500)
commit2a0ea8a5b9d11d7c9c196c73a492fdb63f734168
treebbc7599fe5e42c5f0717e752a024259c7bd464f6
parent9a6dc69cb7f3716a5ad4279d499c858cd692ea23
net/sched: Fix update of lastuse in act modules implementing stats_update

We need to update lastuse to to the most updated value between what
is already set and the new value.
If HW matching fails, i.e. because of an issue, the stats are not updated
but it could be that software did match and updated lastuse.

Fixes: 5f1f5666ac03 ("net/sched: act_mirred: Use passed lastuse argument")
Fixes: 1a7422d9577e ("net/sched: act_gact: Update statistics when offloaded to hardware")
Signed-off-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Paul Blakey <paulb@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_gact.c
net/sched/act_mirred.c