net/mlx5: Add flow counters idr
[sfrench/cifs-2.6.git] / include / linux / mlx5 / driver.h
index 7a452716de4be0a7902f26ccc97ce124c6b168ff..2a0c845f6bdb261fcb4cf9064ff5089f1f86beae 100644 (file)
@@ -583,10 +583,11 @@ struct mlx5_irq_info {
 };
 
 struct mlx5_fc_stats {
-       struct rb_root counters;
-       struct list_head addlist;
-       /* protect addlist add/splice operations */
-       spinlock_t addlist_lock;
+       spinlock_t counters_idr_lock; /* protects counters_idr */
+       struct idr counters_idr;
+       struct list_head counters;
+       struct llist_head addlist;
+       struct llist_head dellist;
 
        struct workqueue_struct *wq;
        struct delayed_work work;