]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/mlx5/mlx5_flow.h
net/mlx5: fix build with Direct Verbs disabled
[dpdk.git] / drivers / net / mlx5 / mlx5_flow.h
index 5fac8672fc53af7f2dbd39945f201ff528ac1276..fbc6173fcbe342e4fb1dfa14bce0ae415e10d6be 100644 (file)
@@ -991,8 +991,13 @@ mlx5_tunnel_hub(struct rte_eth_dev *dev)
 static inline bool
 is_tunnel_offload_active(struct rte_eth_dev *dev)
 {
+#ifdef HAVE_IBV_FLOW_DV_SUPPORT
        struct mlx5_priv *priv = dev->data->dev_private;
        return !!priv->config.dv_miss_info;
+#else
+       RTE_SET_USED(dev);
+       return false;
+#endif
 }
 
 static inline bool