Skip to contentSkip to conversation

doc: add note for builtin-net-driver option

PATCH Superseded Marvin Liu 4 participants 6 messages Jul 25, 2018 – Aug 9, 2018

lore
Share & tools
lore

Marvin Liu

author
#0 lore raw

PATCH 1/1 doc: add note for builtin-net-driver option

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.

doc/guides/sample_app_ug/vhost.rst +11 -0
index 9112e7897..01adae408 100644
@@ -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.
Signature · 1 line
2.17.0
author
#1 lore raw

PATCH v2 1/1 doc: add note for builtin-net-driver option

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.

---
v2:
* Updated descriptions.
---

doc/guides/sample_app_ug/vhost.rst +10 -0
index 9112e7897..396d83211 100644
@@ -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.
Signature · 1 line
2.17.0
#2 lore raw
Quoted 15 lines · 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.

---
v2:
* Updated descriptions.
---

doc/guides/sample_app_ug/vhost.rst +0 -0
index 9112e7897..396d83211 100644

doc/guides/sample_app_ug/vhost.rst when disabling VLAN strip. Such feature, which heavily depends on hardware, · line 164

Quoted 7 lines
doc/guides/sample_app_ug/vhost.rst +4 -0
@@ -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.

doc/guides/sample_app_ug/vhost.rst Common Issues · line 201

Quoted 10 lines
doc/guides/sample_app_ug/vhost.rst +3 -0
+
 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 '.'

Quoted 6 lines
doc/guides/sample_app_ug/vhost.rst +3 -0
+
+  QEMU vhost net device start will fail if protocol feature is not
+  negotiated. DPDK virtio-user can be the replacement of QEMU.
Signature · 1 line
2.17.0
author
#3 lore raw

PATCH v3 1/1 doc: add note for builtin-net-driver option

In reply to 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.

doc/guides/sample_app_ug/vhost.rst +9 -0
index 9112e7897..fd42cb3f7 100644
@@ -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.
Signature · 1 line
2.17.0
Acked-by on v3 1/1
#4 lore raw
Quoted 10 lines

-----Original Message-----
From: Liu, Yong
Sent: Tuesday, July 31, 2018 5:01 PM
To: Mcnamara, John <[email protected]>; Bie, Tiwei <[email protected]>; [email protected]
Cc: Liu, Yong <[email protected]>
Subject: [PATCH v3] doc: add note for builtin-net-driver option

Quoted 6 lines

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.

#5 lore raw
Quoted 8 lines
Quoted 6 lines

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.

Applied, thanks