Offending commit used weak symbols to implement stubs for functions for destroying control flow rules for MAC address and VLAN matching.
Since weak symbols are not supported with MinGW and concrete implementations of these functions are required if and only if PMD is compiled on Linux and DV API is available in rdma-core, this patch removes the __rte_weak. mlx5_flow_hw_stubs.c was already included on required platforms by preceding commit. Fixes: 8ed3e0001d0d ("net/mlx5: support destroying unicast flow rules") Signed-off-by: Dariusz Sosnowski <dsosnow...@nvidia.com> --- drivers/net/mlx5/mlx5_flow_hw_stubs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow_hw_stubs.c b/drivers/net/mlx5/mlx5_flow_hw_stubs.c index 1df615d94c..06c096e1bc 100644 --- a/drivers/net/mlx5/mlx5_flow_hw_stubs.c +++ b/drivers/net/mlx5/mlx5_flow_hw_stubs.c @@ -31,7 +31,7 @@ mlx5_flow_hw_ctrl_flow_dmac(struct rte_eth_dev *dev __rte_unused, * - PMD is compiled on Windows or * - available rdma-core does not support HWS. */ -__rte_weak int +int mlx5_flow_hw_ctrl_flow_dmac_destroy(struct rte_eth_dev *dev __rte_unused, const struct rte_ether_addr *addr __rte_unused) { @@ -58,7 +58,7 @@ mlx5_flow_hw_ctrl_flow_dmac_vlan(struct rte_eth_dev *dev __rte_unused, * - PMD is compiled on Windows or * - available rdma-core does not support HWS. */ -__rte_weak int +int mlx5_flow_hw_ctrl_flow_dmac_vlan_destroy(struct rte_eth_dev *dev __rte_unused, const struct rte_ether_addr *addr __rte_unused, const uint16_t vlan __rte_unused) -- 2.39.5