[2/2] net/vhost: fix parameters string

Message ID 20181025094659.25492-3-tiwei.bie@intel.com (mailing list archive)
State Accepted, archived
Delegated to: Maxime Coquelin
Headers
Series Some fixes for virtio and vhost |

Checks

Context Check Description
ci/Intel-compilation success Compilation OK
ci/checkpatch success coding style OK

Commit Message

Tiwei Bie Oct. 25, 2018, 9:46 a.m. UTC
  Add the missing params to the param string.

Fixes: 39cac2adcad0 ("net/vhost: add client option")
Fixes: 4ce97c6f6b4f ("net/vhost: add an option to enable dequeue zero copy")
Fixes: 447e0d379756 ("net/vhost: add parameter to enable IOMMU feature")
Fixes: 6d6e95cec455 ("net/vhost: add parameter to enable postcopy")
Cc: stable@dpdk.org

Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
---
 drivers/net/vhost/rte_eth_vhost.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
  

Comments

Maxime Coquelin Oct. 30, 2018, 9:10 a.m. UTC | #1
On 10/25/18 11:46 AM, Tiwei Bie wrote:
> Add the missing params to the param string.
> 
> Fixes: 39cac2adcad0 ("net/vhost: add client option")
> Fixes: 4ce97c6f6b4f ("net/vhost: add an option to enable dequeue zero copy")
> Fixes: 447e0d379756 ("net/vhost: add parameter to enable IOMMU feature")
> Fixes: 6d6e95cec455 ("net/vhost: add parameter to enable postcopy")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
> ---
>   drivers/net/vhost/rte_eth_vhost.c | 6 +++++-
>   1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/net/vhost/rte_eth_vhost.c b/drivers/net/vhost/rte_eth_vhost.c
> index 55e51c89a..07a9c2598 100644
> --- a/drivers/net/vhost/rte_eth_vhost.c
> +++ b/drivers/net/vhost/rte_eth_vhost.c
> @@ -1470,7 +1470,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)
>   {
> 

Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>

Thanks,
Maxime
  

Patch

diff --git a/drivers/net/vhost/rte_eth_vhost.c b/drivers/net/vhost/rte_eth_vhost.c
index 55e51c89a..07a9c2598 100644
--- a/drivers/net/vhost/rte_eth_vhost.c
+++ b/drivers/net/vhost/rte_eth_vhost.c
@@ -1470,7 +1470,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)
 {