net/mlx5: Store counters in rbtree instead of list
authorAmir Vadai <amir@vadai.me>
Thu, 14 Jul 2016 07:32:37 +0000 (10:32 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Jul 2016 20:34:28 +0000 (13:34 -0700)
commit29cc6679076a00a6ce193004dcf2d14ae7c428a5
tree336e833a9fda78c9cd9126b266645595ee92fdb7
parent18017723d686efe73dc457280070d44add4478d6
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>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.h
drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c
include/linux/mlx5/driver.h