Change function flow_dv_tbl_resource_release() from static to external. Prestep for next commit.
Signed-off-by: Michael Savisko <michael...@nvidia.com> --- drivers/net/mlx5/mlx5_flow.h | 2 ++ drivers/net/mlx5/mlx5_flow_dv.c | 6 +----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow.h b/drivers/net/mlx5/mlx5_flow.h index f4228a5549..dac65a640c 100644 --- a/drivers/net/mlx5/mlx5_flow.h +++ b/drivers/net/mlx5/mlx5_flow.h @@ -1916,6 +1916,8 @@ struct mlx5_flow_tbl_resource *flow_dv_tbl_resource_get(struct rte_eth_dev *dev, bool external, const struct mlx5_flow_tunnel *tunnel, uint32_t group_id, uint8_t dummy, uint32_t table_id, struct rte_flow_error *error); +int flow_dv_tbl_resource_release(struct mlx5_dev_ctx_shared *sh, + struct mlx5_flow_tbl_resource *tbl); struct mlx5_list_entry *flow_dv_tag_create_cb(void *tool_ctx, void *cb_ctx); int flow_dv_tag_match_cb(void *tool_ctx, struct mlx5_list_entry *entry, diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c index 8f8a1208e9..01bdd34d1d 100644 --- a/drivers/net/mlx5/mlx5_flow_dv.c +++ b/drivers/net/mlx5/mlx5_flow_dv.c @@ -75,10 +75,6 @@ union flow_dv_attr { uint32_t attr; }; -static int -flow_dv_tbl_resource_release(struct mlx5_dev_ctx_shared *sh, - struct mlx5_flow_tbl_resource *tbl); - static int flow_dv_encap_decap_resource_release(struct rte_eth_dev *dev, uint32_t encap_decap_idx); @@ -10911,7 +10907,7 @@ flow_dv_tbl_remove_cb(void *tool_ctx, struct mlx5_list_entry *entry) * @return * Returns 0 if table was released, else return 1; */ -static int +int flow_dv_tbl_resource_release(struct mlx5_dev_ctx_shared *sh, struct mlx5_flow_tbl_resource *tbl) { -- 2.27.0