net/mlx5: Add new list to store deleted flow counters
[sfrench/cifs-2.6.git] / drivers / net / ethernet / mellanox / mlx5 / core / fs_core.h
index 32070e5d993d856d0c560e9adde78b3e86d928bf..617d6239c5f343d4499704401669879b163d30ce 100644 (file)
@@ -36,6 +36,7 @@
 #include <linux/refcount.h>
 #include <linux/mlx5/fs.h>
 #include <linux/rhashtable.h>
+#include <linux/llist.h>
 
 enum fs_node_type {
        FS_TYPE_NAMESPACE,
@@ -139,7 +140,8 @@ struct mlx5_fc_cache {
 
 struct mlx5_fc {
        struct rb_node node;
-       struct list_head list;
+       struct llist_node addlist;
+       struct llist_node dellist;
 
        /* last{packets,bytes} members are used when calculating the delta since
         * last reading
@@ -148,7 +150,6 @@ struct mlx5_fc {
        u64 lastbytes;
 
        u32 id;
-       bool deleted;
        bool aging;
 
        struct mlx5_fc_cache cache ____cacheline_aligned_in_smp;