net/mlx5: Add flow counters idr
[sfrench/cifs-2.6.git] / include / linux / mlx5 / driver.h
index 61bed33e6675155b728c935b3f97d8eb951355e4..2a0c845f6bdb261fcb4cf9064ff5089f1f86beae 100644 (file)
@@ -583,6 +583,8 @@ struct mlx5_irq_info {
 };
 
 struct mlx5_fc_stats {
+       spinlock_t counters_idr_lock; /* protects counters_idr */
+       struct idr counters_idr;
        struct list_head counters;
        struct llist_head addlist;
        struct llist_head dellist;