ethdev: add namespace
[dpdk.git] / drivers / net / mlx5 / windows / mlx5_os.c
index 685babe..5e88453 100644 (file)
@@ -433,8 +433,8 @@ mlx5_dev_spawn(struct rte_device *dpdk_dev,
         * Remove this check once DPDK supports larger/variable
         * indirection tables.
         */
-       if (config->ind_table_max_size > (unsigned int)ETH_RSS_RETA_SIZE_512)
-               config->ind_table_max_size = ETH_RSS_RETA_SIZE_512;
+       if (config->ind_table_max_size > (unsigned int)RTE_ETH_RSS_RETA_SIZE_512)
+               config->ind_table_max_size = RTE_ETH_RSS_RETA_SIZE_512;
        DRV_LOG(DEBUG, "maximum Rx indirection table size is %u",
                config->ind_table_max_size);
        if (config->hw_padding) {
@@ -949,4 +949,12 @@ mlx5_os_net_probe(struct mlx5_common_device *cdev)
        return 0;
 }
 
+/**
+ * Cleanup resources when the last device is closed.
+ */
+void
+mlx5_os_net_cleanup(void)
+{
+}
+
 const struct mlx5_flow_driver_ops mlx5_flow_verbs_drv_ops = {0};