net/mlx5: remove unused reference counter
authorBing Zhao <bingz@nvidia.com>
Wed, 2 Mar 2022 07:57:35 +0000 (09:57 +0200)
committerRaslan Darawsheh <rasland@nvidia.com>
Mon, 7 Mar 2022 10:43:10 +0000 (11:43 +0100)
commitcff6aad7af61da8d31e146610f9b4a4875301ef4
tree580e29606dc4294b4594b51dda4aa46be8d0cdd3
parentea7cc15ab97a3f73ae4f6c0a9d9c89f5ca0374f3
net/mlx5: remove unused reference counter

In the previous implementation, a count was used to record the number
of the references to a table resource, including the creation of the
table, the jumping to the table and the matchers created on the
table. Before releasing the table resource via the driver, it needed
to ensure that there is no reference to this table.

After the optimization of the resources management, the reference
count now is in the hash list entry as a unified solution for all the
resources management.

There is no need to keep the "refcnt" in the table resource
structure. It is removed in case that there is some unnecessary
memory overhead.

Fixes: afd7a62514ad ("net/mlx5: make flow table cache thread safe")
Cc: stable@dpdk.org
Signed-off-by: Bing Zhao <bingz@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5.h