From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from tama500.ecl.ntt.co.jp (tama500.ecl.ntt.co.jp [129.60.39.148]) by dpdk.org (Postfix) with ESMTP id 4AB3B5F24 for ; Mon, 18 Feb 2019 12:50:51 +0100 (CET) Received: from vc1.ecl.ntt.co.jp (vc1.ecl.ntt.co.jp [129.60.86.153]) by tama500.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id x1IBoo2F011835; Mon, 18 Feb 2019 20:50:50 +0900 Received: from vc1.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id 319A6EA815C; Mon, 18 Feb 2019 20:50:50 +0900 (JST) Received: from localhost.localdomain (lobster.nslab.ecl.ntt.co.jp [129.60.13.95]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id 0E3FCEA818D; Mon, 18 Feb 2019 20:50:50 +0900 (JST) From: ogawa.yasufumi@lab.ntt.co.jp To: spp@dpdk.org, ferruh.yigit@intel.com, ogawa.yasufumi@lab.ntt.co.jp Date: Mon, 18 Feb 2019 20:48:31 +0900 Message-Id: <1550490511-31683-21-git-send-email-ogawa.yasufumi@lab.ntt.co.jp> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1550490511-31683-1-git-send-email-ogawa.yasufumi@lab.ntt.co.jp> References: <1550490511-31683-1-git-send-email-ogawa.yasufumi@lab.ntt.co.jp> X-TM-AS-MML: disable Subject: [spp] [PATCH 20/20] docs: fix in image of spp_mirror monitor 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: , X-List-Received-Date: Mon, 18 Feb 2019 11:50:53 -0000 From: Yasufumi Ogawa This update is to fix wrong descs in image of spp_mirror monitor usecase and desc of usecase itself. Signed-off-by: Yasufumi Ogawa --- .../images/spp_vf/spp_mirror_usecase_nwconfig.svg | 1434 ------------------- docs/guides/images/usecases/mirror_dup_nwconf.svg | 78 +- .../images/usecases/mirror_monitor_nwconf.svg | 1442 ++++++++++++++++++++ docs/guides/use_cases/spp_mirror.rst | 62 +- 4 files changed, 1524 insertions(+), 1492 deletions(-) delete mode 100644 docs/guides/images/spp_vf/spp_mirror_usecase_nwconfig.svg create mode 100644 docs/guides/images/usecases/mirror_monitor_nwconf.svg diff --git a/docs/guides/images/spp_vf/spp_mirror_usecase_nwconfig.svg b/docs/guides/images/spp_vf/spp_mirror_usecase_nwconfig.svg deleted file mode 100644 index 94f91fb..0000000 --- a/docs/guides/images/spp_vf/spp_mirror_usecase_nwconfig.svg +++ /dev/null @@ -1,1434 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - host - NIC - - - NIC - NIC - VM2 - VM1 - - - NIC - VM3 - - - spp_vf - App1 - App2 - Monitor - spp_mirror - - - forwarder1 - forwarder2 - forwarder3 - forwarde4 - merger1 - classifier - mirror1 - merger3 - - - ring:2 - ring:1 - ring:3 - ring:0 - vhost:0 - vhost:2 - vhost:4 - ring:8 - ring:9 - vhost:1 - vhost:3 - - diff --git a/docs/guides/images/usecases/mirror_dup_nwconf.svg b/docs/guides/images/usecases/mirror_dup_nwconf.svg index 424983e..d6c4461 100644 --- a/docs/guides/images/usecases/mirror_dup_nwconf.svg +++ b/docs/guides/images/usecases/mirror_dup_nwconf.svg @@ -185,10 +185,10 @@ inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:zoom="1" - inkscape:cx="458.31394" + inkscape:cx="260.59053" inkscape:cy="201.90648" inkscape:document-units="px" - inkscape:current-layer="layer2" + inkscape:current-layer="layer6" showgrid="false" inkscape:window-width="1539" inkscape:window-height="960" @@ -208,7 +208,7 @@ image/svg+xml - + @@ -221,6 +221,11 @@ sodipodi:insensitive="true" /> + @@ -276,38 +281,21 @@ height="61.144356" x="272.69714" y="546.86853" /> - - - + width="138.58026" + height="125.18685" + x="409.10144" + y="317.60028" + ry="20.999994" + rx="0" /> + @@ -352,6 +349,19 @@ id="path17255-35" inkscape:connector-curvature="0" sodipodi:nodetypes="cc" /> + + mir1 + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:17.49999809px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';text-align:center;writing-mode:lr-tb;text-anchor:middle;stroke-width:0.93749988;stroke-miterlimit:4;stroke-dasharray:none">mir ping + spp_mirror diff --git a/docs/guides/images/usecases/mirror_monitor_nwconf.svg b/docs/guides/images/usecases/mirror_monitor_nwconf.svg new file mode 100644 index 0000000..fecc626 --- /dev/null +++ b/docs/guides/images/usecases/mirror_monitor_nwconf.svg @@ -0,0 +1,1442 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + host + NIC(phy:0) + + + NIC + NIC + VM2 + VM1 + + + NIC + VM3 + + + spp_vf + App1 + App2 + Monitor + spp_mirror + + + fwd1 + fwd2 + fwd3 + fwd4 + mgr + cls + mir + fwd5 + + + ring:2 + ring:1 + ring:3 + ring:0 + vhost:0 + vhost:2 + vhost:4 + ring:5 + ring:4 + vhost:1 + vhost:3 + + diff --git a/docs/guides/use_cases/spp_mirror.rst b/docs/guides/use_cases/spp_mirror.rst index 036f930..dcb8e4d 100644 --- a/docs/guides/use_cases/spp_mirror.rst +++ b/docs/guides/use_cases/spp_mirror.rst @@ -22,15 +22,15 @@ Network Configuration Detailed configuration is described in :numref:`figure_spp_mirror_use_cases_nw_config`. In this diagram, incoming packets from ``phy:0`` are mirrored. -In ``spp_mirror`` process, worker thread ``mir1`` copies incoming packets and +In ``spp_mirror`` process, worker thread ``mir`` copies incoming packets and sends to two destinations ``phy:1`` and ``phy:2``. .. _figure_spp_mirror_use_cases_nw_config: .. figure:: ../images/usecases/mirror_dup_nwconf.* - :width: 80% + :width: 75% - Network configuration of mirroring + Duplicate packets with spp_mirror Setup SPP @@ -237,13 +237,13 @@ Netowrk Configuration Detailed configuration of :numref:`figure_usecase_monitor_overview` is described in :numref:`figure_usecase_monitor_nwconfig`. -In this senario, worker thread ``mir1`` copies incoming packets +In this senario, worker thread ``mir`` copies incoming packets from though ``ring:0``. Then, sends to orignal destination ``VM1`` and anohter one ``VM3``. .. _figure_usecase_monitor_nwconfig: -.. figure:: ../images/spp_vf/spp_mirror_usecase_nwconfig.* +.. figure:: ../images/usecases/mirror_monitor_nwconf.* :width: 80% Network configuration of monitoring packets @@ -268,12 +268,12 @@ Start components in ``spp_vf``. # terminal 2 spp > vf 1; component start cls 2 classifier_mac - spp > vf 1; component start mgr1 3 merge - spp > vf 1; component start mgr2 4 merge - spp > vf 1; component start fwd1 5 forward - spp > vf 1; component start fwd2 6 forward - spp > vf 1; component start fwd3 7 forward - spp > vf 1; component start fwd4 8 forward + spp > vf 1; component start mgr 3 merge + spp > vf 1; component start fwd1 4 forward + spp > vf 1; component start fwd2 5 forward + spp > vf 1; component start fwd3 6 forward + spp > vf 1; component start fwd4 7 forward + spp > vf 1; component start fwd5 8 forward Add ports for components. @@ -284,6 +284,10 @@ Add ports for components. spp > vf 1; port add ring:0 tx cls spp > vf 1; port add ring:1 tx cls + spp > vf 1; port add ring:2 rx mgr + spp > vf 1; port add ring:3 rx mgr + spp > vf 1; port add phy:0 tx mgr + spp > vf 1; port add ring:5 rx fwd1 spp > vf 1; port add vhost:0 tx fwd1 @@ -296,12 +300,9 @@ Add ports for components. spp > vf 1; port add vhost:3 rx fwd4 spp > vf 1; port add ring:3 tx fwd4 - spp > vf 1; port add ring:2 rx mgr1 - spp > vf 1; port add ring:3 rx mgr1 - spp > vf 1; port add phy:0 tx mgr1 + spp > vf 1; port add ring:4 rx fwd5 + spp > vf 1; port add vhost:4 tx fwd5 - spp > vf 1; port add ring:4 rx mgr2 - spp > vf 1; port add vhost:4 tx mgr2 Add classifier table entries. @@ -337,36 +338,37 @@ Run ``spp_mirror``. .. code-block:: console - $ sudo ./src/mirror/x86_64-native-linuxapp-gcc/app/spp_mirror \ - -l 0,9 \ - -n 4 --proc-type secondary \ - -- \ - --client-id 2 \ - -s 192.168.1.100:6666 \ - --vhost-client + # terminal 6 + $ sudo ./src/mirror/x86_64-native-linuxapp-gcc/app/spp_mirror \ + -l 0,9 \ + -n 4 --proc-type secondary \ + -- \ + --client-id 2 \ + -s 192.168.1.100:6666 \ + --vhost-client Start mirror component with lcore ID 9. .. code-block:: console - # Start component on lcore 9 - spp > mirror 2; component start mir1 9 mirror + # terminal 2 + spp > mirror 2; component start mir 9 mirror Add ``ring:0`` as rx port, ``ring:4`` and ``ring:5`` as tx ports. .. code-block:: none # terminal 2 - spp > mirror 2; port add ring:0 rx mir1 - spp > mirror 2; port add ring:4 tx mir1 - spp > mirror 2; port add ring:5 tx mir1 + spp > mirror 2; port add ring:0 rx mir + spp > mirror 2; port add ring:4 tx mir + spp > mirror 2; port add ring:5 tx mir 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``. +If you capture packet on ``VM1``, the same packet would be captured. .. code-block:: console -- 2.7.4