net/mlx5: optimize shared counter memory
authorSuanming Mou <suanmingm@nvidia.com>
Tue, 20 Oct 2020 03:02:22 +0000 (11:02 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:24:25 +0000 (23:24 +0100)
commitdf051a3e77c3cfa7277a71a6be2e1aa314a51ac3
treea6904649a1cf8e8784d3d8c433c2d35d3dac98c1
parent6b7c717ed1655124106a393dce256b64b3824c31
net/mlx5: optimize shared counter memory

Instead of using special memory to indicate shared counter, this patch
does the optimization to use the counter handler reserved memory to
indicate it.  The counter index with MLX5_CNT_SHARED_OFFSET means the
shared counter.

This patch is also an arrangement for a new adjustment to use batch
counter as shared counter.

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