From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mogw0122.ocn.ad.jp (mogw0122.ocn.ad.jp [118.23.109.96]) by dpdk.org (Postfix) with ESMTP id 89C911E9A4 for ; Tue, 12 Jun 2018 13:16:24 +0200 (CEST) Received: from mf-smf-ucb021c1 (mf-smf-ucb021c1.ocn.ad.jp [153.153.66.136]) by mogw0122.ocn.ad.jp (Postfix) with ESMTP id C3F0420829F; Tue, 12 Jun 2018 20:16:22 +0900 (JST) Received: from ntt.pod01.mv-mta-ucb021 ([153.149.142.84]) by mf-smf-ucb021c1 with ESMTP id ShHif5iDGrgBOShHif7cYF; Tue, 12 Jun 2018 20:16:22 +0900 Received: from smtp.ocn.ne.jp ([153.149.227.134]) by ntt.pod01.mv-mta-ucb021 with id xnGN1x00S2ud8JZ01nGNVx; Tue, 12 Jun 2018 11:16:22 +0000 Received: from localhost.localdomain (p5164-ipngn8501marunouchi.tokyo.ocn.ne.jp [153.214.228.164]) by smtp.ocn.ne.jp (Postfix) with ESMTPA; Tue, 12 Jun 2018 20:16:22 +0900 (JST) From: ogawa.yasufumi@lab.ntt.co.jp To: ferruh.yigit@intel.com, spp@dpdk.org Cc: Yasufumi Ogawa Date: Tue, 12 Jun 2018 20:16:17 +0900 Message-Id: <20180612111617.18743-1-ogawa.yasufumi@lab.ntt.co.jp> X-Mailer: git-send-email 2.17.1 Subject: [spp] [PATCH] docs: fix typos of command example 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, 12 Jun 2018 11:16:25 -0000 From: Yasufumi Ogawa Signed-off-by: Yasufumi Ogawa --- docs/guides/setup/howto_use.rst | 5 +++-- docs/guides/setup/use_cases.rst | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/guides/setup/howto_use.rst b/docs/guides/setup/howto_use.rst index dc014aa..19f7074 100644 --- a/docs/guides/setup/howto_use.rst +++ b/docs/guides/setup/howto_use.rst @@ -53,7 +53,8 @@ SPP controller is implemented as a python script ``spp.py``. .. code-block:: console - $ python spp.py + $ cd /path/to/spp + $ python src/spp.py primary port : 5555 secondary port : 6666 Welcome to the spp. Type help or ? to list commands. @@ -67,7 +68,7 @@ Please refer help message for options. .. code-block:: console - $ ./src/spp.py -h + $ python src/spp.py -h usage: spp.py [-h] [-p PRI_PORT] [-s SEC_PORT] [-m MNG_PORT] [-ip IPADDR] SPP Controller diff --git a/docs/guides/setup/use_cases.rst b/docs/guides/setup/use_cases.rst index 1cd30a6..2c83fe0 100644 --- a/docs/guides/setup/use_cases.rst +++ b/docs/guides/setup/use_cases.rst @@ -260,6 +260,7 @@ First, add ``ring 0`` and ``ring 1`` to ``sec 1``. spp > sec 1;add ring 0 spp > sec 1;add ring 1 + spp > sec 1;status status: idling ports: - 'phy:0' @@ -274,6 +275,7 @@ Then, add ``ring 0`` and ``ring 1`` to ``sec 2``. spp > sec 2;add ring 0 spp > sec 2;add ring 1 + spp > sec 2;status status: idling ports: - 'phy:0' @@ -326,7 +328,7 @@ creation. sock0 ... # remove it if exist - $ rm /tmp/sock0 + $ sudo rm /tmp/sock0 Create ``/tmp/sock0`` from ``sec 1``. @@ -480,7 +482,7 @@ and watch received packets on pktgen. .. code-block:: console - spp > sec 2;patch phy:1 pcap:2 + spp > sec 2;patch pcap:2 phy:1 spp > sec 2;forward After started forwarding, you can see that packet count is increased. -- 2.17.1