From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mogw1040.ocn.ad.jp (mogw1040.ocn.ad.jp [153.149.231.46]) by dpdk.org (Postfix) with ESMTP id A029B8DA9 for ; Tue, 15 May 2018 03:21:52 +0200 (CEST) Received: from mf-smf-ucb021c3 (mf-smf-ucb021c3.ocn.ad.jp [153.153.66.138]) by mogw1040.ocn.ad.jp (Postfix) with ESMTP id 1DFE1120046E; Tue, 15 May 2018 10:21:51 +0900 (JST) Received: from ntt.pod01.mv-mta-ucb024 ([153.149.142.98]) by mf-smf-ucb021c3 with ESMTP id IOezf8mRTN8XpIOf1fdXMs; Tue, 15 May 2018 10:21:51 +0900 Received: from smtp.ocn.ne.jp ([153.149.227.167]) by ntt.pod01.mv-mta-ucb024 with id mRMr1x0013dLKTM01RMra0; Tue, 15 May 2018 01:21:51 +0000 Received: from localhost.localdomain (p5164-ipngn8501marunouchi.tokyo.ocn.ne.jp [153.214.228.164]) by smtp.ocn.ne.jp (Postfix) with ESMTPA; Tue, 15 May 2018 10:21:51 +0900 (JST) From: ogawa.yasufumi@lab.ntt.co.jp To: ferruh.yigit@intel.com, spp@dpdk.org Cc: Yasufumi Ogawa Date: Tue, 15 May 2018 10:21:41 +0900 Message-Id: <20180515012146.8899-2-ogawa.yasufumi@lab.ntt.co.jp> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180515012146.8899-1-ogawa.yasufumi@lab.ntt.co.jp> References: <20180515012146.8899-1-ogawa.yasufumi@lab.ntt.co.jp> Subject: [spp] [PATCH 1/6] docs: add setting up PCAP X-BeenThere: spp@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Soft Patch Panel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2018 01:21:53 -0000 From: Yasufumi Ogawa Signed-off-by: Yasufumi Ogawa --- 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