aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorAmir Vadai <amir@vadai.me>2016-07-14 10:32:37 +0300
committerDavid S. Miller <davem@davemloft.net>2016-07-14 13:34:28 -0700
commit29cc6679076a00a6ce193004dcf2d14ae7c428a5 (patch)
tree336e833a9fda78c9cd9126b266645595ee92fdb7 /include/linux
parentMerge branch 'nps_ent-coding-style' (diff)
downloadlinux-dev-29cc6679076a00a6ce193004dcf2d14ae7c428a5.tar.xz
linux-dev-29cc6679076a00a6ce193004dcf2d14ae7c428a5.zip
net/mlx5: Store counters in rbtree instead of list
In order to use bulk counters, we need to have counters sorted by id. Signed-off-by: Amir Vadai <amir@vadai.me> Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mlx5/driver.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h
index 81e8396574f4..a041b99fceac 100644
--- a/include/linux/mlx5/driver.h
+++ b/include/linux/mlx5/driver.h
@@ -469,7 +469,7 @@ struct mlx5_irq_info {
};
struct mlx5_fc_stats {
- struct list_head list;
+ struct rb_root counters;
struct list_head addlist;
/* protect addlist add/splice operations */
spinlock_t addlist_lock;