From: ogawa.yasufumi@lab.ntt.co.jp
To: ferruh.yigit@intel.com, spp@dpdk.org, ogawa.yasufumi@lab.ntt.co.jp
Subject: [spp] [PATCH 4/8] docs: add image of spp_nfv threads
Date: Thu, 10 Jan 2019 11:10:12 +0900 [thread overview]
Message-ID: <1547086216-27422-5-git-send-email-ogawa.yasufumi@lab.ntt.co.jp> (raw)
In-Reply-To: <1547086216-27422-1-git-send-email-ogawa.yasufumi@lab.ntt.co.jp>
From: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>
Spp_nfv consists of main thread and worker thread. This update is to
add an image for describing overview of tasks in each of threads.
Signed-off-by: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>
---
.../design/spp_design_spp_sec_nfv_threads.svg | 368 +++++++++++++++++++++
1 file changed, 368 insertions(+)
create mode 100644 docs/guides/images/design/spp_design_spp_sec_nfv_threads.svg
diff --git a/docs/guides/images/design/spp_design_spp_sec_nfv_threads.svg b/docs/guides/images/design/spp_design_spp_sec_nfv_threads.svg
new file mode 100644
index 0000000..fe526bd
--- /dev/null
+++ b/docs/guides/images/design/spp_design_spp_sec_nfv_threads.svg
@@ -0,0 +1,368 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="222mm"
+ height="236mm"
+ viewBox="0 0 786.61416 836.22048"
+ id="svg7032"
+ version="1.1"
+ inkscape:version="0.91 r13725"
+ sodipodi:docname="spp_design_spp_sec_nfv_threads.svg">
+ <defs
+ id="defs7034">
+ <marker
+ inkscape:stockid="Arrow1Lend"
+ orient="auto"
+ refY="0"
+ refX="0"
+ id="Arrow1Lend"
+ style="overflow:visible"
+ inkscape:isstock="true">
+ <path
+ id="path4324"
+ d="M 0,0 5,-5 -12.5,0 5,5 0,0 Z"
+ style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1pt;stroke-opacity:1"
+ transform="matrix(-0.8,0,0,-0.8,-10,0)"
+ inkscape:connector-curvature="0" />
+ </marker>
+ <marker
+ inkscape:stockid="Arrow2Lend"
+ orient="auto"
+ refY="0"
+ refX="0"
+ id="Arrow2Lend"
+ style="overflow:visible"
+ inkscape:isstock="true">
+ <path
+ id="path4342"
+ style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.625;stroke-linejoin:round;stroke-opacity:1"
+ d="M 8.7185878,4.0337352 -2.2072895,0.01601326 8.7185884,-4.0017078 c -1.7454984,2.3720609 -1.7354408,5.6174519 -6e-7,8.035443 z"
+ transform="matrix(-1.1,0,0,-1.1,-1.1,0)"
+ inkscape:connector-curvature="0" />
+ </marker>
+ </defs>
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="0.7"
+ inkscape:cx="11.699697"
+ inkscape:cy="204.47865"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer2"
+ showgrid="false"
+ inkscape:window-width="1855"
+ inkscape:window-height="1056"
+ inkscape:window-x="65"
+ inkscape:window-y="24"
+ inkscape:window-maximized="1" />
+ <metadata
+ id="metadata7037">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:groupmode="layer"
+ id="layer2"
+ inkscape:label="background"
+ transform="translate(0,-216.14172)">
+ <rect
+ style="fill:#d2e0fa;fill-opacity:1;stroke:#000000;stroke-width:0.99999994;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+ id="rect7716"
+ width="342.85712"
+ height="822.1806"
+ x="10.000006"
+ y="224.36221"
+ ry="17.142857" />
+ <rect
+ style="fill:#d2e0fa;fill-opacity:1;stroke:#000000;stroke-width:0.99999994;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+ id="rect7716-1"
+ width="398.57141"
+ height="822.1806"
+ x="381.14288"
+ y="224.36221"
+ ry="20.000004" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 170.85714,361.50506 0,574.28572 0,0"
+ id="path4283"
+ inkscape:connector-curvature="0" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 578,693.82649 0,300.25318 0,0"
+ id="path4283-9"
+ inkscape:connector-curvature="0" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 315.814,616.93363 261.42857,0"
+ id="path4300"
+ inkscape:connector-curvature="0" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#Arrow2Lend)"
+ d="m 577.14718,615.95464 0,32.53363"
+ id="path4831"
+ inkscape:connector-curvature="0" />
+ <text
+ xml:space="preserve"
+ style="font-style:normal;font-weight:normal;font-size:22.5px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ x="948.5943"
+ y="-169.01128"
+ id="text5489"
+ sodipodi:linespacing="125%"
+ transform="matrix(0,1,-1,0,0,0)"><tspan
+ sodipodi:role="line"
+ id="tspan5491"
+ x="948.5943"
+ y="-169.01128">.....</tspan></text>
+ <text
+ xml:space="preserve"
+ style="font-style:normal;font-weight:normal;font-size:22.5px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ x="1003.3666"
+ y="-577.28027"
+ id="text5489-6"
+ sodipodi:linespacing="125%"
+ transform="matrix(0,1,-1,0,0,0)"><tspan
+ sodipodi:role="line"
+ id="tspan5491-0"
+ x="1003.3666"
+ y="-577.28027">.....</tspan></text>
+ </g>
+ <g
+ inkscape:groupmode="layer"
+ id="layer3"
+ inkscape:label="block"
+ transform="translate(0,-216.14172)">
+ <rect
+ style="fill:#f4f4f4;fill-opacity:1;stroke:#000000;stroke-width:1.00000012;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+ id="rect4165"
+ width="190.00002"
+ height="44"
+ x="76.714287"
+ y="317.21936"
+ ry="15.906564" />
+ <rect
+ style="fill:#f4f4f4;fill-opacity:1;stroke:#000000;stroke-width:1;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+ id="rect4165-3"
+ width="244.28572"
+ height="44"
+ x="51.857147"
+ y="392.7908"
+ ry="15.647516" />
+ <rect
+ style="fill:#f4f4f4;fill-opacity:1;stroke:#000000;stroke-width:1;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+ id="rect4165-6"
+ width="254.28572"
+ height="84"
+ x="46.857147"
+ y="470.50507"
+ ry="21.67742" />
+ <rect
+ style="fill:#f4f4f4;fill-opacity:1;stroke:#000000;stroke-width:0.99999988;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+ id="rect4165-7"
+ width="284.28574"
+ height="84"
+ x="31.85714"
+ y="589.93359"
+ ry="21.677422" />
+ <rect
+ style="fill:#f4f4f4;fill-opacity:1;stroke:#000000;stroke-width:1;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+ id="rect4165-5"
+ width="275.71429"
+ height="168.57143"
+ x="36.14286"
+ y="713.64795"
+ ry="30.645176" />
+ <rect
+ style="fill:#f4f4f4;fill-opacity:1;stroke:#000000;stroke-width:1;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+ id="rect4165-5-3"
+ width="355.71429"
+ height="245.71428"
+ x="402.57144"
+ y="718.64789"
+ ry="30.01655" />
+ <rect
+ style="fill:#f4f4f4;fill-opacity:1;stroke:#000000;stroke-width:1.00000012;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+ id="rect4165-70"
+ width="179"
+ height="44"
+ x="490.92859"
+ y="649.07648"
+ ry="15.906564" />
+ </g>
+ <g
+ inkscape:label="label"
+ inkscape:groupmode="layer"
+ id="layer1"
+ style="display:inline"
+ transform="translate(0,-216.14172)">
+ <text
+ xml:space="preserve"
+ style="font-style:normal;font-weight:normal;font-size:22.5px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ x="520.85712"
+ y="678.07642"
+ id="text7580"
+ sodipodi:linespacing="125%"><tspan
+ sodipodi:role="line"
+ id="tspan7582"
+ x="520.85712"
+ y="678.07642">main_loop()</tspan></text>
+ <text
+ xml:space="preserve"
+ style="font-style:normal;font-weight:normal;font-size:22.5px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ x="50.442268"
+ y="622.65027"
+ id="text7580-9"
+ sodipodi:linespacing="125%"><tspan
+ sodipodi:role="line"
+ id="tspan7582-4"
+ x="50.442268"
+ y="622.65027">rte_eal_remote_launch(</tspan><tspan
+ sodipodi:role="line"
+ x="50.442268"
+ y="650.77527"
+ id="tspan7710"> main_loop)</tspan></text>
+ <text
+ xml:space="preserve"
+ style="font-style:normal;font-weight:normal;font-size:22.5px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ x="72.601692"
+ y="423.22638"
+ id="text7580-9-1"
+ sodipodi:linespacing="125%"><tspan
+ sodipodi:role="line"
+ id="tspan7582-4-9"
+ x="72.601692"
+ y="423.22638">forward_array_init()</tspan></text>
+ <text
+ xml:space="preserve"
+ style="font-style:normal;font-weight:normal;font-size:22.5px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ x="108.30177"
+ y="345.2287"
+ id="text7580-9-1-5"
+ sodipodi:linespacing="125%"><tspan
+ sodipodi:role="line"
+ id="tspan7582-4-9-7"
+ x="108.30177"
+ y="345.2287">rte_eal_init()</tspan></text>
+ <text
+ xml:space="preserve"
+ style="font-style:normal;font-weight:normal;font-size:22.5px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ x="57.4076"
+ y="503.22406"
+ id="text7580-9-1-4"
+ sodipodi:linespacing="125%"><tspan
+ sodipodi:role="line"
+ id="tspan7582-4-9-1"
+ x="57.4076"
+ y="503.22406">rte_memzone_lookup(</tspan><tspan
+ sodipodi:role="line"
+ x="57.4076"
+ y="531.34906"
+ id="tspan7708"> MZ_PORT_INFO)</tspan></text>
+ <text
+ xml:space="preserve"
+ style="font-style:normal;font-weight:normal;font-size:22.5px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ x="54.067757"
+ y="746.64795"
+ id="text7666"
+ sodipodi:linespacing="125%"><tspan
+ sodipodi:role="line"
+ id="tspan7668"
+ x="54.067757"
+ y="746.64795">while(on) {</tspan><tspan
+ sodipodi:role="line"
+ x="54.067757"
+ y="774.77295"
+ id="tspan7670"> // wait for command</tspan><tspan
+ sodipodi:role="line"
+ x="54.067757"
+ y="802.89795"
+ id="tspan7672"> parse_command();</tspan><tspan
+ sodipodi:role="line"
+ x="54.067757"
+ y="831.02295"
+ id="tspan7714"> ....</tspan><tspan
+ sodipodi:role="line"
+ x="54.067757"
+ y="859.14795"
+ id="tspan7712">}</tspan></text>
+ <text
+ xml:space="preserve"
+ style="font-style:normal;font-weight:normal;font-size:22.5px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ x="415.07175"
+ y="747.99805"
+ id="text7580-2"
+ sodipodi:linespacing="125%"><tspan
+ sodipodi:role="line"
+ x="415.07175"
+ y="747.99805"
+ id="tspan7692">while(1) { </tspan><tspan
+ sodipodi:role="line"
+ x="415.07175"
+ y="776.12305"
+ id="tspan7694"> if (cmd == STOP) {</tspan><tspan
+ sodipodi:role="line"
+ x="415.07175"
+ y="804.24805"
+ id="tspan7696"> // do nothing</tspan><tspan
+ sodipodi:role="line"
+ x="415.07175"
+ y="832.37305"
+ id="tspan7698"> sleep(1);</tspan><tspan
+ sodipodi:role="line"
+ x="415.07175"
+ y="860.49805"
+ id="tspan7700"> else if (cmd == FORWARD) {</tspan><tspan
+ sodipodi:role="line"
+ x="415.07175"
+ y="888.62305"
+ id="tspan7702"> forward();</tspan><tspan
+ sodipodi:role="line"
+ x="415.07175"
+ y="916.74805"
+ id="tspan7704"> }</tspan><tspan
+ sodipodi:role="line"
+ x="415.07175"
+ y="944.87305"
+ id="tspan7706">}</tspan></text>
+ <text
+ xml:space="preserve"
+ style="font-style:normal;font-weight:normal;font-size:22.5px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ x="109.44462"
+ y="265.80017"
+ id="text7580-9-1-5-2"
+ sodipodi:linespacing="125%"><tspan
+ sodipodi:role="line"
+ id="tspan7582-4-9-7-9"
+ x="109.44462"
+ y="265.80017">Master lcore</tspan></text>
+ <text
+ xml:space="preserve"
+ style="font-style:normal;font-weight:normal;font-size:22.5px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ x="547.63153"
+ y="259.87665"
+ id="text7580-9-1-5-2-1"
+ sodipodi:linespacing="125%"><tspan
+ sodipodi:role="line"
+ id="tspan7582-4-9-7-9-2"
+ x="547.63153"
+ y="259.87665">lcore#1</tspan></text>
+ </g>
+</svg>
--
2.7.4
next prev parent reply other threads:[~2019-01-10 2:12 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-10 2:10 [spp] [PATCH 0/8] Revise documentation ogawa.yasufumi
2019-01-10 2:10 ` [spp] [PATCH 1/8] docs: add desc of overview of SPP secondary ogawa.yasufumi
2019-01-10 2:10 ` [spp] [PATCH 2/8] docs: add desc of design of spp_nfv ogawa.yasufumi
2019-01-10 2:10 ` [spp] [PATCH 3/8] docs: add image of ports_fwd_array ogawa.yasufumi
2019-01-10 2:10 ` ogawa.yasufumi [this message]
2019-01-10 2:10 ` [spp] [PATCH 5/8] docs: adjust size of images ogawa.yasufumi
2019-01-10 2:10 ` [spp] [PATCH 6/8] docs: resize font size in multi nodes example ogawa.yasufumi
2019-01-10 2:10 ` [spp] [PATCH 7/8] docs: resize font size in performance test ogawa.yasufumi
2019-01-10 2:10 ` [spp] [PATCH 8/8] docs: resize image of lb in sppc ogawa.yasufumi
2019-01-10 10:25 ` [spp] [PATCH v2 0/8] Revise documentation ogawa.yasufumi
2019-01-10 10:25 ` [spp] [PATCH v2 1/8] docs: add desc of overview of SPP secondary ogawa.yasufumi
2019-01-10 10:25 ` [spp] [PATCH v2 2/8] docs: add desc of design of spp_nfv ogawa.yasufumi
2019-01-10 10:25 ` [spp] [PATCH v2 3/8] docs: add image of ports_fwd_array ogawa.yasufumi
2019-01-10 10:25 ` [spp] [PATCH v2 4/8] docs: add image of spp_nfv threads ogawa.yasufumi
2019-01-10 10:25 ` [spp] [PATCH v2 5/8] docs: adjust size of images ogawa.yasufumi
2019-01-10 10:25 ` [spp] [PATCH v2 6/8] docs: resize font size in multi nodes example ogawa.yasufumi
2019-01-10 10:25 ` [spp] [PATCH v2 7/8] docs: resize font size in performance test ogawa.yasufumi
2019-01-10 10:25 ` [spp] [PATCH v2 8/8] docs: resize image of lb in sppc ogawa.yasufumi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1547086216-27422-5-git-send-email-ogawa.yasufumi@lab.ntt.co.jp \
--to=ogawa.yasufumi@lab.ntt.co.jp \
--cc=ferruh.yigit@intel.com \
--cc=spp@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).