net/mlx5: Correctly initialize last use of flow counters
[cascardo/linux.git] / drivers / net / ethernet / mellanox / mlx5 / core / fs_counters.c
index 3a9195b..3b026c1 100644 (file)
@@ -218,6 +218,7 @@ struct mlx5_fc *mlx5_fc_create(struct mlx5_core_dev *dev, bool aging)
                goto err_out;
 
        if (aging) {
+               counter->cache.lastuse = jiffies;
                counter->aging = true;
 
                spin_lock(&fc_stats->addlist_lock);