net/mlx5: fix shared flow counter lookup
authorSuanming Mou <suanmingm@mellanox.com>
Fri, 15 May 2020 08:36:03 +0000 (16:36 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 18 May 2020 18:35:57 +0000 (20:35 +0200)
commita95decbc9da8b18c252239aa6accde4573a8d08c
tree89d88b6d32c52660c27320a6e24a053cd6c56a41
parent25a59a3076461b269b0f489a9f6865042092d1ee
net/mlx5: fix shared flow counter lookup

Currently, the shared counter search uses the wrong nested index which
is used by the pool index. The incorrect nested index using causes the
search go to incorrect counter pool is not existed.

Add the counter index to fix the incorrect nested use case.

Fixes: 4001d7ad26d4 ("net/mlx5: change Direct Verbs counter to indexed")

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