]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Correctly initialize last use of flow counters
authorPaul Blakey <paulb@mellanox.com>
Tue, 25 Oct 2016 15:36:28 +0000 (18:36 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Oct 2016 16:00:39 +0000 (12:00 -0400)
commit7a27892338a46e5fa4d14fe440059a729725ca12
treed3d66d34d087cee89dd29ddddb9f13348024a2ba
parent3a876b5e79741a5c9a27f807d8d4266dae7b2946
net/mlx5: Correctly initialize last use of flow counters

Currently, last use timestamp is initialized to zero.
This is not the expected value by higher layers such as
when we do TC action offloading. To fix that, set it to
the current time, e.g when the counter/rule is offloaded.
This is the same behaviour of non-offloaded TC actions.

Fixes: c40c6615d6b7 ('mlx5_core: Flow counters infrastructure')
Signed-off-by: Paul Blakey <paulb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c