From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6AC87A0487 for ; Wed, 3 Jul 2019 08:09:51 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 50DF3326D; Wed, 3 Jul 2019 08:09:51 +0200 (CEST) Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by dpdk.org (Postfix) with ESMTP id D018C326D for ; Wed, 3 Jul 2019 08:09:49 +0200 (CEST) Received: by mail-pg1-f196.google.com with SMTP id z75so634551pgz.5 for ; Tue, 02 Jul 2019 23:09:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=REAfJ8WtApn80dYktokRQ1abSxTn1ZbibPX24H4W9aQ=; b=bEfXDgeDSHViGl2CuqF1UcwpVCz0jVJk58qExDOHlCI0kQk26TGfVbpD703CQfL7b9 tsCyoV0rEyMiNU0VksrQ0aXpu9X/t9SMX5ZOt+UnfygxowrWQ3G6aRCCbm7gjIa/jhra YA3ddBUh+e00g7tDaqZkXsRg0oaqdtsSTgnoANBbWVMGG1EegviM+fGGOcgaLugQKgIi fzUffNwFMb9CjaQ++n/2bZQy7VBT4ogja8ECu20ka1T2wLav9D1w5o9l5QT9BttSJp86 /OQh24se6LS0SHZxMhdjyU2aNNYA4RSZWrNyKaG42Kwv3iPLTTc38fENv3hYfMcqK1Wa bDqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=REAfJ8WtApn80dYktokRQ1abSxTn1ZbibPX24H4W9aQ=; b=KyfkAoIXLjIrKlzJiYISEWmci6+iBEA1X+CR3rnGrjT/IeU22sx4Jy+D+QU2zcz+eB IihticZnKsMKbDUTZmrF2AmiZLi2rjY0lej0c13sYXeHqAJY8PPLn0Gtzuid18gWXaZ4 2xCu139hPsEkwJuoEXn/10JfvSrYjO9AAsFH/0PxRnP2G6mArK5H8pD1LW2axA7WKx8V Y5BNZkFzjOef8H2MBje3l6ygmP8EDaqVu+ZzppXXUhtvjrXHZrWG2/Bz9WHVVpcWWTWp fY1DhSmqD1i9T98aeLDhpmwmhOTYxKYPdlXxTx2imCzsqIH5g+AqazC/uRfORTsGS3+7 vaOQ== X-Gm-Message-State: APjAAAWbQiFURUP9Uu9HlKDvT5oolIh5dmU4KiuaL0BMhZC8tnWw5J3J hgZa0SuvaBwUG3wwJoJjj0UKL3Ks X-Google-Smtp-Source: APXvYqz1H+3THL86htuHAX8kv6m2yO8hAyayD4euAVolfmXB6+ntUmROMdn+W9V1Wye4Tv0MoJ90zQ== X-Received: by 2002:a63:1a5c:: with SMTP id a28mr35047702pgm.418.1562134188541; Tue, 02 Jul 2019 23:09:48 -0700 (PDT) Received: from localhost.localdomain ([192.47.164.146]) by smtp.gmail.com with ESMTPSA id g9sm878094pgs.78.2019.07.02.23.09.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Jul 2019 23:09:48 -0700 (PDT) From: yasufum.o@gmail.com To: spp@dpdk.org, ferruh.yigit@intel.com, yasufum.o@gmail.com Date: Wed, 3 Jul 2019 15:09:40 +0900 Message-Id: <20190703060940.35517-1-yasufum.o@gmail.com> X-Mailer: git-send-email 2.17.1 Subject: [spp] [PATCH] docs: fix incorrect setup in spp_mirror usecase 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: , Errors-To: spp-bounces@dpdk.org Sender: "spp" From: Yasufumi Ogawa This update is to move a step of capturing with tcpdump to after the end of network configuration. Signed-off-by: Yasufumi Ogawa --- docs/guides/usecases/spp_mirror.rst | 42 ++++++++++++----------------- 1 file changed, 17 insertions(+), 25 deletions(-) diff --git a/docs/guides/usecases/spp_mirror.rst b/docs/guides/usecases/spp_mirror.rst index 1fcd8b0..b867adf 100644 --- a/docs/guides/usecases/spp_mirror.rst +++ b/docs/guides/usecases/spp_mirror.rst @@ -316,24 +316,6 @@ Add classifier table entries. spp > vf 1; classifier_table add mac 52:54:00:12:34:58 ring:1 -To capture incoming packets on ``VM1``, use tcpdump for the interface, -``ens4`` in this case. - -.. code-block:: console - - # terminal 5 - # capture on ens4 of VM1 - $ tcpdump -i ens4 - -You send packets from the remote ``host1`` and confirm packets are received. -IP address is the same as :ref:`Usecase of spp_vf`. - -.. code-block:: console - - # Send packets from host1 - $ ping 192.168.140.21 - - Launch spp_mirror ~~~~~~~~~~~~~~~~~ @@ -370,20 +352,30 @@ Add ``ring:0`` as rx port, ``ring:4`` and ``ring:5`` as tx ports. Receive Packet on VM3 ~~~~~~~~~~~~~~~~~~~~~ -You can capture incoming packets on ``VM3``. -If you capture packet on ``VM1``, the same packet would be captured. +You can capture incoming packets on ``VM3`` and compare it with on ``VM1``. +To capture incoming packets , use tcpdump for the interface, +``ens4`` in this case. .. code-block:: console - # capture on ens4 fo VM1 and VM3 - $ tcpdump -i ens4 + # terminal 5 + # capture on ens4 of VM1 + $ tcpdump -i ens4 -Now, you can send packet from the remote host1. +.. code-block:: console + + # terminal 7 + # capture on ens4 of VM3 + $ tcpdump -i ens4 + +You send packets from the remote ``host1`` and confirm packets are received. +IP address is the same as :ref:`Usecase of spp_vf`. .. code-block:: console - # spp-vm1 via NIC0 from host1 - $ ping 192.168.140.21 + # Send packets from host1 + $ ping 192.168.140.21 + Stop Mirroring -- 2.17.1