Skip to contentSkip to conversation

doc: fix vhost setup in tep-termination app guide

PATCH Superseded Mark Kavanagh 3 participants 4 messages Jul 19, 2016 – Jul 20, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: fix vhost setup in tep-termination app guide

- Fix vhost setup flags
- Add minor edits to improve readability and consistency

---
 doc/guides/sample_app_ug/tep_termination.rst | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
 mode change 100644 => 100755 doc/guides/sample_app_ug/tep_termination.rst
doc/guides/sample_app_ug/tep_termination.rst +4 -4
old mode 100644
new mode 100755
index 2d86a03..c3d1e97
@@ -59,8 +59,8 @@ This allows network isolation, QOS, etc to be provided on a per client basis.
 In a typical setup, the network overlay tunnel is terminated at the Virtual/Tunnel End Point (VEP/TEP).
 The TEP is normally located at the physical host level ideally in the software switch.
 Due to processing constraints and the inevitable bottleneck that the switch
-becomes the ability to offload overlay support features becomes an important requirement.
-Intel® XL710 10/40 G Ethernet network card provides hardware filtering
+becomes, the ability to offload overlay support features becomes an important requirement.
+Intel® XL710 10/40 Gigabit Ethernet network card provides hardware filtering
 and offload capabilities to support overlay networks implementations such as MAC in UDP and MAC in GRE.
 
 Sample Code Overview
@@ -131,14 +131,14 @@ Compiling the Sample Code
 
     .. code-block:: console
 
-        CONFIG_RTE_LIBRTE_VHOST=n
+        CONFIG_RTE_LIBRTE_VHOST=y
 
     vhost user is turned on by default in the configure file config/common_linuxapp.
     To enable vhost cuse, disable vhost user.
 
     .. code-block:: console
 
-        CONFIG_RTE_LIBRTE_VHOST_USER=y
+        CONFIG_RTE_LIBRTE_VHOST_USER=n
 
      After vhost is enabled and the implementation is selected, build the vhost library.
 
Signature · 1 line
1.9.3
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Mark Kavanagh
Sent: Tuesday, July 19, 2016 4:32 PM
To: [email protected]
Subject: [dpdk-dev] [PATCH] doc: fix vhost setup in tep-termination app guide

Quoted 4 lines

- Fix vhost setup flags
- Add minor edits to improve readability and consistency

Good catch. Thanks.

#2 lore raw
In reply to Mark Kavanagh

Hi Mark,

Quoted 55 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Mark Kavanagh
Sent: Tuesday, July 19, 2016 11:32 PM
To: [email protected]
Subject: [dpdk-dev] [PATCH] doc: fix vhost setup in tep-termination app guide

- Fix vhost setup flags
- Add minor edits to improve readability and consistency

---
 doc/guides/sample_app_ug/tep_termination.rst | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
 mode change 100644 => 100755

doc/guides/sample_app_ug/tep_termination.rst

doc/guides/sample_app_ug/tep_termination.rst +0 -0
old mode 100644
new mode 100755
index 2d86a03..c3d1e97
@@ -59,8 +59,8 @@ This allows network isolation, QOS, etc to be provided

on a per client basis.
In a typical setup, the network overlay tunnel is terminated at the
Virtual/Tunnel End Point (VEP/TEP).
The TEP is normally located at the physical host level ideally in the software
switch.
Due to processing constraints and the inevitable bottleneck that the switch
-becomes the ability to offload overlay support features becomes an important requirement.

doc/guides/sample_app_ug/tep_termination.rst +1 -1
-Intel® XL710 10/40 G Ethernet network card provides hardware filtering
+becomes, the ability to offload overlay support features becomes an

important requirement.
+Intel® XL710 10/40 Gigabit Ethernet network card provides hardware filtering
and offload capabilities to support overlay networks implementations such
as MAC in UDP and MAC in GRE.

Sample Code Overview

doc/guides/sample_app_ug/tep_termination.rst +1 -1
@@ -131,14 +131,14 @@ Compiling the Sample Code
 
     .. code-block:: console
 
-        CONFIG_RTE_LIBRTE_VHOST=n
+        CONFIG_RTE_LIBRTE_VHOST=y
 
     vhost user is turned on by default in the configure file

config/common_linuxapp.
To enable vhost cuse, disable vhost user.

.. code-block:: console

doc/guides/sample_app_ug/tep_termination.rst Compiling the Sample Code · line 141

Quoted 2 lines
doc/guides/sample_app_ug/tep_termination.rst +1 -1
-        CONFIG_RTE_LIBRTE_VHOST_USER=y
+        CONFIG_RTE_LIBRTE_VHOST_USER=n

Actually, this example does not necessarily disable vhost-user. It can work with vhost-user. I also notice that there are many comments inside this example to indicate it works with vhost-cuse. I think we need to correct this. By the way, vhost-cuse could be deprecated in the future, please refer here, http://dpdk.org/ml/archives/dev/2016-July/044080.html

Thanks,
Jianfeng

Quoted 6 lines

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

--
1.9.3

#3 lore raw
Quoted 2 lines

Hi Mark,

Hi Jianfeng,

Thanks for your comments - I've responded inline.

Cheers,
Mark

Quoted 54 lines
Quoted 54 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Mark Kavanagh
Sent: Tuesday, July 19, 2016 11:32 PM
To: [email protected]
Subject: [dpdk-dev] [PATCH] doc: fix vhost setup in tep-termination app guide

- Fix vhost setup flags
- Add minor edits to improve readability and consistency

---
 doc/guides/sample_app_ug/tep_termination.rst | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
 mode change 100644 => 100755

doc/guides/sample_app_ug/tep_termination.rst

doc/guides/sample_app_ug/tep_termination.rst +0 -0
old mode 100644
new mode 100755
index 2d86a03..c3d1e97
@@ -59,8 +59,8 @@ This allows network isolation, QOS, etc to be provided

on a per client basis.
In a typical setup, the network overlay tunnel is terminated at the
Virtual/Tunnel End Point (VEP/TEP).
The TEP is normally located at the physical host level ideally in the software
switch.
Due to processing constraints and the inevitable bottleneck that the switch
-becomes the ability to offload overlay support features becomes an important requirement.

doc/guides/sample_app_ug/tep_termination.rst +1 -1
-Intel® XL710 10/40 G Ethernet network card provides hardware filtering
+becomes, the ability to offload overlay support features becomes an

important requirement.
+Intel® XL710 10/40 Gigabit Ethernet network card provides hardware filtering
and offload capabilities to support overlay networks implementations such
as MAC in UDP and MAC in GRE.

Sample Code Overview

doc/guides/sample_app_ug/tep_termination.rst +1 -1
@@ -131,14 +131,14 @@ Compiling the Sample Code
 
     .. code-block:: console
 
-        CONFIG_RTE_LIBRTE_VHOST=n
+        CONFIG_RTE_LIBRTE_VHOST=y
 
     vhost user is turned on by default in the configure file

config/common_linuxapp.
To enable vhost cuse, disable vhost user.

Quoted 6 lines

doc/guides/sample_app_ug/tep_termination.rst Compiling the Sample Code · line 141

Quoted 4 lines

.. code-block:: console

doc/guides/sample_app_ug/tep_termination.rst +1 -1
-        CONFIG_RTE_LIBRTE_VHOST_USER=y
+        CONFIG_RTE_LIBRTE_VHOST_USER=n

Actually, this example does not necessarily disable vhost-user. It can work with vhost-user.

Okay; however, the instruction that I modified relates to the case where vhost cuse is the preferred option (or at least that's how it comes across upon reading). With that in mind, CONFIG_RTE_LIBRTE_VHOST_USER should be set to 'n', and not 'y', as previously described.

Quoted 2 lines

I also notice that there are many comments inside this example to indicate it works with vhost-cuse. I think we need to correct this.

Do you mean to say that the example app does not work with vhost cuse? What should be corrected?

Quoted 2 lines

By the way, vhost-cuse could be deprecated in
the future, please refer here, http://dpdk.org/ml/archives/dev/2016-July/044080.html

Thanks Jianfeng, I'm aware of this; however, as that will not be the case in the v16.07 release, I think that the cuse instructions should still be updated.

Quoted 10 lines

Thanks,
Jianfeng

Quoted 6 lines

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

--
1.9.3