diff options
author | Amir Vadai <amir@vadai.me> | 2016-07-14 10:32:37 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-14 23:34:28 +0300 |
commit | 29cc6679076a00a6ce193004dcf2d14ae7c428a5 (patch) | |
tree | 336e833a9fda78c9cd9126b266645595ee92fdb7 /include/linux/mlx5 | |
parent | 18017723d686efe73dc457280070d44add4478d6 (diff) | |
download | linux-29cc6679076a00a6ce193004dcf2d14ae7c428a5.tar.xz |
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/mlx5')
-rw-r--r-- | include/linux/mlx5/driver.h | 2 |
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; |