Soft Patch Panel
 help / color / mirror / Atom feed
From: ogawa.yasufumi@lab.ntt.co.jp
To: ferruh.yigit@intel.com, spp@dpdk.org, nakamura.hiroyuki@po.ntt-tx.co.jp
Cc: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>
Subject: [spp] [PATCH 26/28] docs/samples: add configs for spp_vf command
Date: Mon,  5 Feb 2018 11:47:04 +0900	[thread overview]
Message-ID: <20180205024704.8273-1-ogawa.yasufumi@lab.ntt.co.jp> (raw)

From: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>

Add samples for SPP VF to configure network of 'usecase1' explained in
'Use Case' section in the documentation.

Signed-off-by: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>
---
 .../usecase1/1-start_components_path1.config       |  7 ++++++
 .../spp_vf/usecase1/2-add_ports_path1.config       | 25 ++++++++++++++++++++++
 .../command/spp_vf/usecase1/3-reg_mac_path1.config |  3 +++
 .../usecase1/4-start_components_path2.config       |  7 ++++++
 .../spp_vf/usecase1/5-add_ports_path2.config       | 25 ++++++++++++++++++++++
 .../command/spp_vf/usecase1/6-reg_mac_path2.config |  3 +++
 6 files changed, 70 insertions(+)
 create mode 100644 docs/samples/command/spp_vf/usecase1/1-start_components_path1.config
 create mode 100644 docs/samples/command/spp_vf/usecase1/2-add_ports_path1.config
 create mode 100644 docs/samples/command/spp_vf/usecase1/3-reg_mac_path1.config
 create mode 100644 docs/samples/command/spp_vf/usecase1/4-start_components_path2.config
 create mode 100644 docs/samples/command/spp_vf/usecase1/5-add_ports_path2.config
 create mode 100644 docs/samples/command/spp_vf/usecase1/6-reg_mac_path2.config

diff --git a/docs/samples/command/spp_vf/usecase1/1-start_components_path1.config b/docs/samples/command/spp_vf/usecase1/1-start_components_path1.config
new file mode 100644
index 0000000..52e2bba
--- /dev/null
+++ b/docs/samples/command/spp_vf/usecase1/1-start_components_path1.config
@@ -0,0 +1,7 @@
+# Start component for path1
+sec 1;component start classifier1 2 classifier_mac
+sec 1;component start forwarder1 3 forward
+sec 1;component start forwarder2 4 forward
+sec 1;component start forwarder3 5 forward
+sec 1;component start forwarder4 6 forward
+sec 1;component start merger1 7 merge
diff --git a/docs/samples/command/spp_vf/usecase1/2-add_ports_path1.config b/docs/samples/command/spp_vf/usecase1/2-add_ports_path1.config
new file mode 100644
index 0000000..e7c1924
--- /dev/null
+++ b/docs/samples/command/spp_vf/usecase1/2-add_ports_path1.config
@@ -0,0 +1,25 @@
+# Add ports to classifier1
+sec 1;port add phy:0 rx classifier1
+sec 1;port add ring:0 tx classifier1
+sec 1;port add ring:1 tx classifier1
+
+# Add ports to forwarder1
+sec 1;port add ring:0 rx forwarder1
+sec 1;port add vhost:0 tx forwarder1
+
+# Add ports to forwarder2
+sec 1;port add vhost:0 rx forwarder2
+sec 1;port add ring:2 tx forwarder2
+
+# Add ports to forwarder3
+sec 1;port add ring:1 rx forwarder3
+sec 1;port add vhost:2 rx forwarder3
+
+# Add ports to forwarder4
+sec 1;port add vhost:2 tx forwarder4
+sec 1;port add ring:3 rx forwarder4
+
+# Add ports to merger1
+sec 1;port add ring:2 rx merger1
+sec 1;port add ring:3 rx merger1
+sec 1;port add phy:0 tx merger1
diff --git a/docs/samples/command/spp_vf/usecase1/3-reg_mac_path1.config b/docs/samples/command/spp_vf/usecase1/3-reg_mac_path1.config
new file mode 100644
index 0000000..3365291
--- /dev/null
+++ b/docs/samples/command/spp_vf/usecase1/3-reg_mac_path1.config
@@ -0,0 +1,3 @@
+# Register MAC address to classifier
+sec 1;classifier_table add mac 52:54:00:12:34:56 ring:0
+sec 1;classifier_table add mac 52:54:00:12:34:58 ring:1
diff --git a/docs/samples/command/spp_vf/usecase1/4-start_components_path2.config b/docs/samples/command/spp_vf/usecase1/4-start_components_path2.config
new file mode 100644
index 0000000..2adc721
--- /dev/null
+++ b/docs/samples/command/spp_vf/usecase1/4-start_components_path2.config
@@ -0,0 +1,7 @@
+# Start component for path2
+sec 1;component start classifier2 8 classifier_mac
+sec 1;component start forwarder5 9 forward
+sec 1;component start forwarder6 10 forward
+sec 1;component start forwarder7 11 forward
+sec 1;component start forwarder8 12 forward
+sec 1;component start merger2 13 merge
diff --git a/docs/samples/command/spp_vf/usecase1/5-add_ports_path2.config b/docs/samples/command/spp_vf/usecase1/5-add_ports_path2.config
new file mode 100644
index 0000000..6e7bec2
--- /dev/null
+++ b/docs/samples/command/spp_vf/usecase1/5-add_ports_path2.config
@@ -0,0 +1,25 @@
+# Add ports to classifier2
+sec 1;port add phy:1 rx classifier2
+sec 1;port add ring:4 tx classifier2
+sec 1;port add ring:5 tx classifier2
+
+# Add ports to forwarder5
+sec 1;port add ring:4 rx forwarder5
+sec 1;port add vhost:1 tx forwarder5
+
+# Add ports to forwarder6
+sec 1;port add vhost:1 rx forwarder6
+sec 1;port add ring:6 tx forwarder6
+
+# Add ports to forwarder7
+sec 1;port add ring:5 rx forwarder7
+sec 1;port add vhost:3 rx forwarder7
+
+# Add ports to forwarder8
+sec 1;port add vhost:3 tx forwarder8
+sec 1;port add ring:7 rx forwarder8
+
+# Add ports to merger2
+sec 1;port add ring:6 rx merger2
+sec 1;port add ring:7 rx merger2
+sec 1;port add phy:1 tx merger2
diff --git a/docs/samples/command/spp_vf/usecase1/6-reg_mac_path2.config b/docs/samples/command/spp_vf/usecase1/6-reg_mac_path2.config
new file mode 100644
index 0000000..9cab6b4
--- /dev/null
+++ b/docs/samples/command/spp_vf/usecase1/6-reg_mac_path2.config
@@ -0,0 +1,3 @@
+# Register MAC address to classifier
+sec 1;classifier_table add mac 52:54:00:12:34:57 ring:4
+sec 1;classifier_table add mac 52:54:00:12:34:59 ring:5
-- 
2.13.1

                 reply	other threads:[~2018-02-05  2:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20180205024704.8273-1-ogawa.yasufumi@lab.ntt.co.jp \
    --to=ogawa.yasufumi@lab.ntt.co.jp \
    --cc=ferruh.yigit@intel.com \
    --cc=nakamura.hiroyuki@po.ntt-tx.co.jp \
    --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).