[spp] [PATCH 1/6] docs: add setting up PCAP

ogawa.yasufumi at lab.ntt.co.jp ogawa.yasufumi at lab.ntt.co.jp
Tue May 15 03:21:41 CEST 2018


From: Yasufumi Ogawa <ogawa.yasufumi at lab.ntt.co.jp>

Signed-off-by: Yasufumi Ogawa <ogawa.yasufumi at lab.ntt.co.jp>
---
 docs/guides/setup/getting_started.rst | 25 +++++++++++++++++++------
 1 file changed, 19 insertions(+), 6 deletions(-)

diff --git a/docs/guides/setup/getting_started.rst b/docs/guides/setup/getting_started.rst
index 2b55d77..275e12f 100644
--- a/docs/guides/setup/getting_started.rst
+++ b/docs/guides/setup/getting_started.rst
@@ -159,7 +159,7 @@ For Linux, see `Getting Started Guide for Linux
 DPDK
 ~~~~
 
-First, download and compile DPDK in any directory.
+Clone repository and compile DPDK in any directory.
 
 .. code-block:: console
 
@@ -169,22 +169,35 @@ First, download and compile DPDK in any directory.
 
 SPP provides libpcap-based PMD for dumping packet to a file or retrieve
 it from the file.
-You should enable pcap while compiling DPDK because it is disabled as
-default.
-Compiling DPDK takes a few minutes.
+To use PCAP PMD, install ``libpcap-dev`` and enable it.
+
+.. code-block:: console
+
+    $ sudo apt install libpcap-dev
+
+PCAP is disabled by default in DPDK configuration.
+``CONFIG_RTE_LIBRTE_PMD_PCAP`` defines the configuration and enabled
+it to ``y``.
+
+.. code-block:: console
+
+    # dpdk/config/common_base
+    CONFIG_RTE_LIBRTE_PMD_PCAP=y
+
+Compile DPDK with target environment.
 
 .. code-block:: console
 
     $ cd dpdk
     $ export RTE_SDK=$(pwd)
     $ export RTE_TARGET=x86_64-native-linuxapp-gcc  # depends on your env
-    $ make install T=$RTE_TARGET CONFIG_RTE_LIBRTE_PMD_PCAP=y
+    $ make install T=$RTE_TARGET
 
 
 SPP
 ~~~
 
-Then, download and compile SPP in any directory.
+Clone repository and compile SPP in any directory.
 
 .. code-block:: console
 
-- 
2.17.0



More information about the spp mailing list