net/mlx5: reorganize fallback counter management
authorSuanming Mou <suanmingm@mellanox.com>
Tue, 7 Apr 2020 03:59:47 +0000 (11:59 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:07 +0000 (13:57 +0200)
commit261bb99a21b77b184d4908cb5b454090acd4a8d0
treedbc5bc82969ef0f9dd90ade2c9fa2f1a7989f091
parent826b8a87325bfc8bd475dc16403939ac68cfad80
net/mlx5: reorganize fallback counter management

Currently, the fallback counter is also allocated from the pool, the
specify fallback function code becomes a bit duplicate.

Reorganize the fallback counter code to make it reuse from the normal
counter code.

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