]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/mlx5/mlx5.c
net/mlx5: add warning message for Direct Verbs flow
[dpdk.git] / drivers / net / mlx5 / mlx5.c
index d29c19534ed8bd18813ccf678656154f4bc9b4e5..410c0c3064479fc186e0d7c41e4eeb6c85c91bf0 100644 (file)
@@ -1009,6 +1009,12 @@ mlx5_dev_spawn(struct rte_device *dpdk_dev,
 #if !defined(HAVE_IBV_DEVICE_COUNTERS_SET_V42) && \
        !defined(HAVE_IBV_DEVICE_COUNTERS_SET_V45)
        DRV_LOG(DEBUG, "counters are not supported");
+#endif
+#ifndef HAVE_IBV_FLOW_DV_SUPPORT
+       if (config.dv_flow_en) {
+               DRV_LOG(WARNING, "DV flow is not supported");
+               config.dv_flow_en = 0;
+       }
 #endif
        config.ind_table_max_size =
                attr.rss_caps.max_rwq_indirection_table_size;