]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Update last-use statistics for flow rules
authorAmir Vadai <amir@vadai.me>
Thu, 18 Aug 2016 18:09:06 +0000 (21:09 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Aug 2016 23:09:55 +0000 (16:09 -0700)
commit95b21e92aa2ef50e1610abf40003f3844e50b2c4
treea1bdb22fd938edbd0f726b2a284d3087138d17cf
parent8fa37680130fcf7be6662826df9e1ceaf5502171
net/mlx5: Update last-use statistics for flow rules

Set lastuse statistic, when number of packets is changed compared to
last query. This was wrongly dropped when bulk counter reading was added.

Fixes: 802fa6274b54 ('net/mlx5: Introduce bulk reading of flow counters')
Signed-off-by: Amir Vadai <amirva@mellanox.com>
Reported-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