Skip to contentSkip to conversation

doc: fix vhost guide

PATCH Applied Igor Ryzhov 5 participants 7 messages Apr 8, 2015 – Apr 16, 2015 5 messages not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: fix vhost guide

Guide says that a configure parameter to choose between vhost cuse and vhost user will be introduced in the future, but it’s already added by commit 28a1ccca41bf.

---
 doc/guides/sample_app_ug/vhost.rst | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
doc/guides/sample_app_ug/vhost.rst +3 -4
index 8a7eb3b..df8cd8c 100644
@@ -309,13 +309,12 @@ Compiling the Sample Code
 
         CONFIG_RTE_LIBRTE_VHOST=n
 
-    vhost user is turned on by default in the lib/librte_vhost/Makefile.
-    To enable vhost cuse, uncomment vhost cuse and comment vhost user manually. In future, a configure will be created for switch between two implementations.
+    vhost user is turned on by default in the configure file config/common_linuxapp.
+    To enable vhost cuse, disable vhost user.
 
     .. code-block:: console
 
-        SRCS-$(CONFIG_RTE_LIBRTE_VHOST) += vhost_cuse/vhost-net-cdev.c vhost_cuse/virtio-net-cdev.c vhost_cuse/eventfd_copy.c
-        #SRCS-$(CONFIG_RTE_LIBRTE_VHOST) += vhost_user/vhost-net-user.c vhost_user/virtio-net-user.c vhost_user/fd_man.c
+        CONFIG_RTE_LIBRTE_VHOST_USER=y
 
      After vhost is enabled and the implementation is selected, build the vhost library.
 
Signature · 1 line
1.9.5 (Apple Git-50.3)
#2 lore raw
In reply to a message not in the archive
Quoted 9 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Igor Ryzhov
Sent: Wednesday, April 8, 2015 5:31 PM
To: [email protected]
Cc: Igor Ryzhov
Subject: [dpdk-dev] [PATCH] doc: fix vhost guide

Quoted 3 lines

Guide says that a configure parameter to choose between vhost cuse and vhost user will be introduced in the future, but it’s already added by commit 28a1ccca41bf.

Good point Igor- thanks for the spot.
Siobhan

Quoted 36 lines
---
 doc/guides/sample_app_ug/vhost.rst | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
doc/guides/sample_app_ug/vhost.rst +0 -2
index 8a7eb3b..df8cd8c 100644
@@ -309,13 +309,12 @@ Compiling the Sample Code
 
         CONFIG_RTE_LIBRTE_VHOST=n
 
-    vhost user is turned on by default in the lib/librte_vhost/Makefile.
-    To enable vhost cuse, uncomment vhost cuse and comment vhost user

manually. In future, a configure will be created for switch between two implementations.
+ vhost user is turned on by default in the configure file
config/common_linuxapp.

doc/guides/sample_app_ug/vhost.rst +1 -1
+    To enable vhost cuse, disable vhost user.
 
     .. code-block:: console
 
-        SRCS-$(CONFIG_RTE_LIBRTE_VHOST) += vhost_cuse/vhost-net-cdev.c

vhost_cuse/virtio-net-cdev.c vhost_cuse/eventfd_copy.c
- #SRCS-$(CONFIG_RTE_LIBRTE_VHOST) += vhost_user/vhost-net-user.c
vhost_user/virtio-net-user.c vhost_user/fd_man.c
+ CONFIG_RTE_LIBRTE_VHOST_USER=y

After vhost is enabled and the implementation is selected, build the vhost
library.

--
1.9.5 (Apple Git-50.3)

#3 lore raw
In reply to a message not in the archive

Hi Igor,

Good catch, comments as below.

Quoted 36 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Igor Ryzhov
Sent: Thursday, April 9, 2015 12:31 AM
To: [email protected]
Cc: Igor Ryzhov
Subject: [dpdk-dev] [PATCH] doc: fix vhost guide

Guide says that a configure parameter to choose between vhost cuse and vhost user will be introduced in the future, but it’s already added by commit 28a1ccca41bf.

---
 doc/guides/sample_app_ug/vhost.rst | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
doc/guides/sample_app_ug/vhost.rst +0 -2
index 8a7eb3b..df8cd8c 100644
@@ -309,13 +309,12 @@ Compiling the Sample Code
 
         CONFIG_RTE_LIBRTE_VHOST=n
 
-    vhost user is turned on by default in the lib/librte_vhost/Makefile.
-    To enable vhost cuse, uncomment vhost cuse and comment vhost user

manually. In future, a configure will be created for switch between two implementations.
+ vhost user is turned on by default in the configure file
config/common_linuxapp.

doc/guides/sample_app_ug/vhost.rst +1 -1
+    To enable vhost cuse, disable vhost user.
 
     .. code-block:: console
 
-        SRCS-$(CONFIG_RTE_LIBRTE_VHOST) += vhost_cuse/vhost-net-cdev.c
Quoted 4 lines

vhost_cuse/virtio-net-cdev.c vhost_cuse/eventfd_copy.c
- #SRCS-$(CONFIG_RTE_LIBRTE_VHOST) += vhost_user/vhost-net-user.c
vhost_user/virtio-net-user.c vhost_user/fd_man.c
+ CONFIG_RTE_LIBRTE_VHOST_USER=y

If it wants to guide user how to enable vhost cuse, then I think It makes sense to change it into: CONFIG_RTE_LIBRTE_VHOST_USER=n

Thanks
Changchun

#5 lore raw
In reply to a message not in the archive

Hello, Changchun.

Previous paragraph says «To enable vhost, turn on vhost library in the configure file config/common_linuxapp», but string in a code-block is «CONFIG_RTE_LIBRTE_VHOST=n». I thought that idea is to use the default string from the config file that user have to change, not already changed string. So I used the same style.

Regards,
Igor

Quoted 52 lines

13 апр. 2015 г., в 7:52, Ouyang, Changchun <[email protected]> написал(а):

Hi Igor,

Good catch, comments as below.

Quoted 36 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Igor Ryzhov
Sent: Thursday, April 9, 2015 12:31 AM
To: [email protected]
Cc: Igor Ryzhov
Subject: [dpdk-dev] [PATCH] doc: fix vhost guide

Guide says that a configure parameter to choose between vhost cuse and vhost user will be introduced in the future, but it’s already added by commit 28a1ccca41bf.

---
doc/guides/sample_app_ug/vhost.rst | 7 +++----

1 file changed, 3 insertions(+), 4 deletions(-)
doc/guides/sample_app_ug/vhost.rst +0 -2
index 8a7eb3b..df8cd8c 100644
@@ -309,13 +309,12 @@ Compiling the Sample Code
 
        CONFIG_RTE_LIBRTE_VHOST=n
 
-    vhost user is turned on by default in the lib/librte_vhost/Makefile.
-    To enable vhost cuse, uncomment vhost cuse and comment vhost user

manually. In future, a configure will be created for switch between two implementations.
+ vhost user is turned on by default in the configure file
config/common_linuxapp.

doc/guides/sample_app_ug/vhost.rst +1 -1
+    To enable vhost cuse, disable vhost user.
 
    .. code-block:: console
 
-        SRCS-$(CONFIG_RTE_LIBRTE_VHOST) += vhost_cuse/vhost-net-cdev.c
Quoted 4 lines

vhost_cuse/virtio-net-cdev.c vhost_cuse/eventfd_copy.c
- #SRCS-$(CONFIG_RTE_LIBRTE_VHOST) += vhost_user/vhost-net-user.c
vhost_user/virtio-net-user.c vhost_user/fd_man.c
+ CONFIG_RTE_LIBRTE_VHOST_USER=y

If it wants to guide user how to enable vhost cuse, then I think It makes sense to change it into: CONFIG_RTE_LIBRTE_VHOST_USER=n

Thanks
Changchun

#7 lore raw
In reply to a message not in the archive

Sorry, I used wrong email address to reply from. This one is correct.

Quoted 70 lines · Igor Ryzhov

Hello, Changchun.

Previous paragraph says «To enable vhost, turn on vhost library in the configure file config/common_linuxapp», but string in a code-block is «CONFIG_RTE_LIBRTE_VHOST=n». I thought that idea is to use the default string from the config file that user have to change, not already changed string. So I used the same style.

Regards,
Igor

13 апр. 2015 г., в 7:52, Ouyang, Changchun <[email protected]> написал(а):

Hi Igor,

Good catch, comments as below.

-----Original Message-----
From: dev [mailto:[email protected] <[email protected]>] On Behalf Of Igor Ryzhov
Sent: Thursday, April 9, 2015 12:31 AM
To: [email protected]
Cc: Igor Ryzhov
Subject: [dpdk-dev] [PATCH] doc: fix vhost guide

Guide says that a configure parameter to choose between vhost cuse and vhost user will be introduced in the future, but it’s already added by commit
28a1ccca41bf.

---
doc/guides/sample_app_ug/vhost.rst | 7 +++----

1 file changed, 3 insertions(+), 4 deletions(-)
doc/guides/sample_app_ug/vhost.rst +0 -2
index 8a7eb3b..df8cd8c 100644
@@ -309,13 +309,12 @@ Compiling the Sample Code
 
        CONFIG_RTE_LIBRTE_VHOST=n
 
-    vhost user is turned on by default in the lib/librte_vhost/Makefile.
-    To enable vhost cuse, uncomment vhost cuse and comment vhost user

manually. In future, a configure will be created for switch between two implementations.
+ vhost user is turned on by default in the configure file
config/common_linuxapp.

doc/guides/sample_app_ug/vhost.rst +1 -1
+    To enable vhost cuse, disable vhost user.
 
    .. code-block:: console
 
-        SRCS-$(CONFIG_RTE_LIBRTE_VHOST) += vhost_cuse/vhost-net-cdev.c

vhost_cuse/virtio-net-cdev.c vhost_cuse/eventfd_copy.c
- #SRCS-$(CONFIG_RTE_LIBRTE_VHOST) += vhost_user/vhost-net-user.c
vhost_user/virtio-net-user.c vhost_user/fd_man.c
+ CONFIG_RTE_LIBRTE_VHOST_USER=y

If it wants to guide user how to enable vhost cuse, then I think It makes sense to change it into: CONFIG_RTE_LIBRTE_VHOST_USER=n

Thanks
Changchun

Acked-by Changchun Ouyang
#9 lore raw
In reply to a message not in the archive

From: Igor Ryzhov [mailto:[email protected]]
Sent: Monday, April 13, 2015 3:14 PM
To: Ouyang, Changchun
Cc: [email protected]
Subject: Re: [dpdk-dev] [PATCH] doc: fix vhost guide

Sorry, I used wrong email address to reply from. This one is correct.

On Mon, Apr 13, 2015 at 10:11 AM, Igor Ryzhov <[email protected]<mailto:[email protected]>> wrote:
Hello, Changchun.

Previous paragraph says «To enable vhost, turn on vhost library in the configure file config/common_linuxapp», but string in a code-block is «CONFIG_RTE_LIBRTE_VHOST=n». I thought that idea is to use the default string from the config file that user have to change, not already changed string. So I used the same style.

Regards,
Igor

13 апр. 2015 г., в 7:52, Ouyang, Changchun <[email protected]<mailto:[email protected]>> написал(а):

Hi Igor,

Good catch, comments as below.

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Igor Ryzhov
Sent: Thursday, April 9, 2015 12:31 AM
To: [email protected]<mailto:[email protected]>
Cc: Igor Ryzhov
Subject: [dpdk-dev] [PATCH] doc: fix vhost guide

Guide says that a configure parameter to choose between vhost cuse and vhost user will be introduced in the future, but it’s already added by commit 28a1ccca41bf.