net/mlx5: fix shared counter allocation logic
authorMoti Haimovsky <motih@mellanox.com>
Thu, 3 Jan 2019 15:06:36 +0000 (15:06 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 Jan 2019 16:44:29 +0000 (17:44 +0100)
commit5f09e80cf8b248348cc635e518dfcab3126f1ca1
tree7687badfbca00e021e366941db84d0e981c53ca7
parentdc205cc57c336756d1b8d8ab50130eb2367d8973
net/mlx5: fix shared counter allocation logic

This commit fixes the logic for searching and allocating a shared
counter in mlx5_flow_verbs.
Now only the shared counters in the counters list are checked for
a match and not all the counters as before.

Fixes: 84c406e74524 ("net/mlx5: add flow translate function")
Cc: stable@dpdk.org
Signed-off-by: Moti Haimovsky <motih@mellanox.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
drivers/net/mlx5/mlx5_flow_verbs.c