net/mlx5: fix Direct Rules build
[dpdk.git] / drivers / net / vhost / rte_eth_vhost.c
index 0ad9248..b2cda04 100644 (file)
@@ -1000,7 +1000,6 @@ eth_dev_close(struct rte_eth_dev *dev)
                for (i = 0; i < dev->data->nb_tx_queues; i++)
                        rte_free(dev->data->tx_queues[i]);
 
-       rte_free(dev->data->mac_addrs);
        free(internal->dev_name);
        free(internal->iface_name);
        rte_free(internal);
@@ -1446,7 +1445,7 @@ rte_pmd_vhost_remove(struct rte_vdev_device *dev)
                return -ENODEV;
 
        if (rte_eal_process_type() != RTE_PROC_PRIMARY)
-               return rte_eth_dev_release_port_secondary(eth_dev);
+               return rte_eth_dev_release_port(eth_dev);
 
        eth_dev_close(eth_dev);
 
@@ -1467,7 +1466,11 @@ RTE_PMD_REGISTER_VDEV(net_vhost, pmd_vhost_drv);
 RTE_PMD_REGISTER_ALIAS(net_vhost, eth_vhost);
 RTE_PMD_REGISTER_PARAM_STRING(net_vhost,
        "iface=<ifc> "
-       "queues=<int>");
+       "queues=<int> "
+       "client=<0|1> "
+       "dequeue-zero-copy=<0|1> "
+       "iommu-support=<0|1> "
+       "postcopy-support=<0|1>");
 
 RTE_INIT(vhost_init_log)
 {