DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] doc: add note for builtin-net-driver option
@ 2018-07-25 17:12 Marvin Liu
  2018-07-26 14:27 ` [dpdk-dev] [PATCH v2] " Marvin Liu
  0 siblings, 1 reply; 6+ messages in thread
From: Marvin Liu @ 2018-07-25 17:12 UTC (permalink / raw)
  To: tiwei.bie, dev; +Cc: Marvin Liu

If builtin-net-driver option is enabled, simple vhost device will not
enable protocol feature bit. QEMU vhost net device startup will be
failed without protocol feature. Then QEMU process will be aborted when
reloading virtio net driver due to previous failure.

Signed-off-by: Marvin Liu <yong.liu@intel.com>

diff --git a/doc/guides/sample_app_ug/vhost.rst b/doc/guides/sample_app_ug/vhost.rst
index 9112e7897..01adae408 100644
--- a/doc/guides/sample_app_ug/vhost.rst
+++ b/doc/guides/sample_app_ug/vhost.rst
@@ -158,6 +158,10 @@ when disabling VLAN strip. Such feature, which heavily depends on hardware,
 should be removed from this example to reduce confusion. Now, VLAN strip is
 enabled and cannot be disabled.
 
+**--builtin-net-driver**
+The builtin-net-driver option enabled very simple enqueue and dequeue function.
+This option is disabled by default.
+
 Common Issues
 -------------
 
@@ -192,3 +196,10 @@ Common Issues
   according to the NIC's property. ::
 
       make EXTRA_CFLAGS="-DMAX_QUEUES=320"
+
+* QEMU abort when builtin-net-driver option enabled
+
+  QEMU vhost net device startup will be failed without
+  VHOST_USER_F_PROTOCOL_FEATURES feature bit. Thus will cause QEMU process
+  abort when reloading virtio driver. DPDK vhost-user can be the replacement
+  of QEMU.
-- 
2.17.0

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [dpdk-dev] [PATCH v2] doc: add note for builtin-net-driver option
  2018-07-25 17:12 [dpdk-dev] [PATCH] doc: add note for builtin-net-driver option Marvin Liu
@ 2018-07-26 14:27 ` Marvin Liu
  2018-07-31  7:27   ` Tiwei Bie
  2018-07-31 16:00   ` [dpdk-dev] [PATCH v3] " Marvin Liu
  0 siblings, 2 replies; 6+ messages in thread
From: Marvin Liu @ 2018-07-26 14:27 UTC (permalink / raw)
  To: marko.kovacevic, tiwei.bie, dev; +Cc: Marvin Liu

Option builtin-net-driver is used to demonstrate how to implement
vhost-user driver based on vhost lib APIs. Unfortunately, very simple
vhost driver in vhost sample is incompatible with QEMU as protocol
feature not supported.

Signed-off-by: Marvin Liu <yong.liu@intel.com>
---
v2:
* Updated descriptions.
---
diff --git a/doc/guides/sample_app_ug/vhost.rst b/doc/guides/sample_app_ug/vhost.rst
index 9112e7897..396d83211 100644
--- a/doc/guides/sample_app_ug/vhost.rst
+++ b/doc/guides/sample_app_ug/vhost.rst
@@ -158,6 +158,11 @@ when disabling VLAN strip. Such feature, which heavily depends on hardware,
 should be removed from this example to reduce confusion. Now, VLAN strip is
 enabled and cannot be disabled.
 
+**--builtin-net-driver**
+Very simple enqueue and dequeue function will be used when this option is
+given. It can demonstrate how to construct vhost-user driver with vhost lib
+APIs. It is disabled by default.
+
 Common Issues
 -------------
 
@@ -192,3 +197,8 @@ Common Issues
   according to the NIC's property. ::
 
       make EXTRA_CFLAGS="-DMAX_QUEUES=320"
+
+* Option "builtin-net-driver" is incompatible with QEMU.
+
+  QEMU vhost net device start will fail if protocol feature is not
+  negotiated. DPDK virtio-user can be the replacement of QEMU.
-- 
2.17.0

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [dpdk-dev] [PATCH v2] doc: add note for builtin-net-driver option
  2018-07-26 14:27 ` [dpdk-dev] [PATCH v2] " Marvin Liu
@ 2018-07-31  7:27   ` Tiwei Bie
  2018-07-31 16:00   ` [dpdk-dev] [PATCH v3] " Marvin Liu
  1 sibling, 0 replies; 6+ messages in thread
From: Tiwei Bie @ 2018-07-31  7:27 UTC (permalink / raw)
  To: Marvin Liu; +Cc: marko.kovacevic, dev

On Thu, Jul 26, 2018 at 10:27:38PM +0800, Marvin Liu wrote:
> Option builtin-net-driver is used to demonstrate how to implement
> vhost-user driver based on vhost lib APIs. Unfortunately, very simple
> vhost driver in vhost sample is incompatible with QEMU as protocol
> feature not supported.
> 
> Signed-off-by: Marvin Liu <yong.liu@intel.com>
> ---
> v2:
> * Updated descriptions.
> ---
> diff --git a/doc/guides/sample_app_ug/vhost.rst b/doc/guides/sample_app_ug/vhost.rst
> index 9112e7897..396d83211 100644
> --- a/doc/guides/sample_app_ug/vhost.rst
> +++ b/doc/guides/sample_app_ug/vhost.rst
> @@ -158,6 +158,11 @@ when disabling VLAN strip. Such feature, which heavily depends on hardware,
>  should be removed from this example to reduce confusion. Now, VLAN strip is
>  enabled and cannot be disabled.
>  
> +**--builtin-net-driver**
> +Very simple enqueue and dequeue function will be used when this option is
> +given. It can demonstrate how to construct vhost-user driver with vhost lib
> +APIs. It is disabled by default.

Maybe something like:

A very simple vhost-user net driver which demonstrates how to
use the generic vhost APIs will be used when this option is
given. It is disabled by default.

> +
>  Common Issues
>  -------------
>  
> @@ -192,3 +197,8 @@ Common Issues
>    according to the NIC's property. ::
>  
>        make EXTRA_CFLAGS="-DMAX_QUEUES=320"
> +
> +* Option "builtin-net-driver" is incompatible with QEMU.

Better to remove above '.'

> +
> +  QEMU vhost net device start will fail if protocol feature is not
> +  negotiated. DPDK virtio-user can be the replacement of QEMU.
> -- 
> 2.17.0
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [dpdk-dev] [PATCH v3] doc: add note for builtin-net-driver option
  2018-07-26 14:27 ` [dpdk-dev] [PATCH v2] " Marvin Liu
  2018-07-31  7:27   ` Tiwei Bie
@ 2018-07-31 16:00   ` Marvin Liu
  2018-08-07 13:52     ` Mcnamara, John
  1 sibling, 1 reply; 6+ messages in thread
From: Marvin Liu @ 2018-07-31 16:00 UTC (permalink / raw)
  To: john.mcnamara, tiwei.bie, dev; +Cc: Marvin Liu

Very simple version of vhost-user driver in vhost sample will be used if
builtin-net-driver option is enabled. This driver is based on generic
vhost lib APIs. Unfortunately, the implementation is incompatible with
QEMU as protocol feature is not supported.

Signed-off-by: Marvin Liu <yong.liu@intel.com>

diff --git a/doc/guides/sample_app_ug/vhost.rst b/doc/guides/sample_app_ug/vhost.rst
index 9112e7897..fd42cb3f7 100644
--- a/doc/guides/sample_app_ug/vhost.rst
+++ b/doc/guides/sample_app_ug/vhost.rst
@@ -158,6 +158,10 @@ when disabling VLAN strip. Such feature, which heavily depends on hardware,
 should be removed from this example to reduce confusion. Now, VLAN strip is
 enabled and cannot be disabled.
 
+**--builtin-net-driver**
+A very simple vhost-user net driver which demonstrates how to use the generic
+vhost APIs will be used when this option is given. It is disabled by default.
+
 Common Issues
 -------------
 
@@ -192,3 +196,8 @@ Common Issues
   according to the NIC's property. ::
 
       make EXTRA_CFLAGS="-DMAX_QUEUES=320"
+
+* Option "builtin-net-driver" is incompatible with QEMU
+
+  QEMU vhost net device start will fail if protocol feature is not negotiated.
+  DPDK virtio-user pmd can be the replacement of QEMU.
-- 
2.17.0

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [dpdk-dev] [PATCH v3] doc: add note for builtin-net-driver option
  2018-07-31 16:00   ` [dpdk-dev] [PATCH v3] " Marvin Liu
@ 2018-08-07 13:52     ` Mcnamara, John
  2018-08-09 19:21       ` Thomas Monjalon
  0 siblings, 1 reply; 6+ messages in thread
From: Mcnamara, John @ 2018-08-07 13:52 UTC (permalink / raw)
  To: Liu, Yong, Bie, Tiwei, dev



> -----Original Message-----
> From: Liu, Yong
> Sent: Tuesday, July 31, 2018 5:01 PM
> To: Mcnamara, John <john.mcnamara@intel.com>; Bie, Tiwei
> <tiwei.bie@intel.com>; dev@dpdk.org
> Cc: Liu, Yong <yong.liu@intel.com>
> Subject: [PATCH v3] doc: add note for builtin-net-driver option
> 
> Very simple version of vhost-user driver in vhost sample will be used if
> builtin-net-driver option is enabled. This driver is based on generic vhost
> lib APIs. Unfortunately, the implementation is incompatible with QEMU as
> protocol feature is not supported.
> 
> Signed-off-by: Marvin Liu <yong.liu@intel.com>

Acked-by: John McNamara <john.mcnamara@intel.com>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [dpdk-dev] [PATCH v3] doc: add note for builtin-net-driver option
  2018-08-07 13:52     ` Mcnamara, John
@ 2018-08-09 19:21       ` Thomas Monjalon
  0 siblings, 0 replies; 6+ messages in thread
From: Thomas Monjalon @ 2018-08-09 19:21 UTC (permalink / raw)
  To: Liu, Yong; +Cc: dev, Mcnamara, John, Bie, Tiwei

> > Very simple version of vhost-user driver in vhost sample will be used if
> > builtin-net-driver option is enabled. This driver is based on generic vhost
> > lib APIs. Unfortunately, the implementation is incompatible with QEMU as
> > protocol feature is not supported.
> > 
> > Signed-off-by: Marvin Liu <yong.liu@intel.com>
> 
> Acked-by: John McNamara <john.mcnamara@intel.com>

Applied, thanks

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-08-09 19:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-25 17:12 [dpdk-dev] [PATCH] doc: add note for builtin-net-driver option Marvin Liu
2018-07-26 14:27 ` [dpdk-dev] [PATCH v2] " Marvin Liu
2018-07-31  7:27   ` Tiwei Bie
2018-07-31 16:00   ` [dpdk-dev] [PATCH v3] " Marvin Liu
2018-08-07 13:52     ` Mcnamara, John
2018-08-09 19:21       ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).