net/mlx5: change verbs counter allocator to indexed
authorSuanming Mou <suanmingm@mellanox.com>
Tue, 7 Apr 2020 03:59:42 +0000 (11:59 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:07 +0000 (13:57 +0200)
commitc3d3b14099bc4e422bb6642ddc6fc3b384291e4b
tree481c44674ac478fe40e65eb87b99ad1dea0db20b
parentc989f49a3819fbb9a71ace6235388664a0b8e7b6
net/mlx5: change verbs counter allocator to indexed

This is part of the counter optimize which will save the indexed counter
id instead of the counter pointer in the rte_flow.

Place the verbs counter into the container pool helps the counter to be
indexed correctly independent with the raw counter.

The counter pointer in rte_flow will be changed to indexed value after
the DV counter is also changed to indexed.

Signed-off-by: Suanming Mou <suanmingm@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_flow_dv.c
drivers/net/mlx5/mlx5_flow_verbs.c