From: x-fn-spp@sl.ntt-tx.co.jp
To: ferruh.yigit@intel.com, yasufum.o@gmail.com
Cc: spp@dpdk.org
Subject: [spp] [PATCH 5/7] rcps: add rcps for spp_mirror
Date: Thu, 9 Jan 2020 11:51:11 +0900 [thread overview]
Message-ID: <202001090251.0092pDrG027716@imss04.silk.ntt-tx.co.jp> (raw)
In-Reply-To: <20200109025113.22689-1-x-fn-spp@sl.ntt-tx.co.jp>
From: Hideyuki Yamashita <yamashita.hideyuki@po.ntt-tx.co.jp>
This patch set provides rcps for spp_mirror usecase.
Signed-off-by: Hideyuki Yamashita <yamashita.hideyuki@po.ntt-tx.co.jp>
Signed-off-by: Yasufumi Ogawa <yasufum.o@gmail.com>
---
.../monitoring/1_vf_start_comp.rcps | 8 +++++++
.../spp_mirror/monitoring/2_vf_add_ports.rcps | 21 +++++++++++++++++++
.../spp_mirror/monitoring/3_vf_reg_mac.rcps | 6 ++++++
.../monitoring/4_mir_start_monitoring.rcps | 10 +++++++++
.../monitoring/5_mir_stop_monitoring.rcps | 13 ++++++++++++
.../spp_mirror/monitoring/6_vf_del_mac.rcps | 3 +++
.../spp_mirror/monitoring/7_vf_del_ports.rcps | 21 +++++++++++++++++++
.../spp_mirror/monitoring/8_vf_stop_comp.rcps | 14 +++++++++++++
8 files changed, 96 insertions(+)
create mode 100644 recipes/usecases/spp_mirror/monitoring/1_vf_start_comp.rcps
create mode 100644 recipes/usecases/spp_mirror/monitoring/2_vf_add_ports.rcps
create mode 100644 recipes/usecases/spp_mirror/monitoring/3_vf_reg_mac.rcps
create mode 100644 recipes/usecases/spp_mirror/monitoring/4_mir_start_monitoring.rcps
create mode 100644 recipes/usecases/spp_mirror/monitoring/5_mir_stop_monitoring.rcps
create mode 100644 recipes/usecases/spp_mirror/monitoring/6_vf_del_mac.rcps
create mode 100644 recipes/usecases/spp_mirror/monitoring/7_vf_del_ports.rcps
create mode 100644 recipes/usecases/spp_mirror/monitoring/8_vf_stop_comp.rcps
diff --git a/recipes/usecases/spp_mirror/monitoring/1_vf_start_comp.rcps b/recipes/usecases/spp_mirror/monitoring/1_vf_start_comp.rcps
new file mode 100644
index 0000000..045391c
--- /dev/null
+++ b/recipes/usecases/spp_mirror/monitoring/1_vf_start_comp.rcps
@@ -0,0 +1,8 @@
+# Start component
+vf 1; component start cls 2 classifier
+vf 1; component start mgr 3 merge
+vf 1; component start fwd1 4 forward
+vf 1; component start fwd2 5 forward
+vf 1; component start fwd3 6 forward
+vf 1; component start fwd4 7 forward
+vf 1; component start fwd5 8 forward
diff --git a/recipes/usecases/spp_mirror/monitoring/2_vf_add_ports.rcps b/recipes/usecases/spp_mirror/monitoring/2_vf_add_ports.rcps
new file mode 100644
index 0000000..2156ecb
--- /dev/null
+++ b/recipes/usecases/spp_mirror/monitoring/2_vf_add_ports.rcps
@@ -0,0 +1,21 @@
+# Configure classifier
+vf 1; port add phy:0 rx cls
+vf 1; port add ring:0 tx cls
+vf 1; port add ring:1 tx cls
+
+# Configure merger
+vf 1; port add ring:2 rx mgr
+vf 1; port add ring:3 rx mgr
+vf 1; port add phy:0 tx mgr
+
+# Configure forwarders
+vf 1; port add ring:5 rx fwd1
+vf 1; port add vhost:0 tx fwd1
+vf 1; port add ring:1 rx fwd2
+vf 1; port add vhost:2 tx fwd2
+vf 1; port add vhost:1 rx fwd3
+vf 1; port add ring:2 tx fwd3
+vf 1; port add vhost:3 rx fwd4
+vf 1; port add ring:3 tx fwd4
+vf 1; port add ring:4 rx fwd5
+vf 1; port add vhost:4 tx fwd5
diff --git a/recipes/usecases/spp_mirror/monitoring/3_vf_reg_mac.rcps b/recipes/usecases/spp_mirror/monitoring/3_vf_reg_mac.rcps
new file mode 100644
index 0000000..8108ab7
--- /dev/null
+++ b/recipes/usecases/spp_mirror/monitoring/3_vf_reg_mac.rcps
@@ -0,0 +1,6 @@
+# Register MAC address for classifier
+vf 1; classifier_table add mac 52:54:00:12:34:56 ring:0
+vf 1; classifier_table add mac 52:54:00:12:34:58 ring:1
+
+# Post status check
+vf 1; status
diff --git a/recipes/usecases/spp_mirror/monitoring/4_mir_start_monitoring.rcps b/recipes/usecases/spp_mirror/monitoring/4_mir_start_monitoring.rcps
new file mode 100644
index 0000000..670d897
--- /dev/null
+++ b/recipes/usecases/spp_mirror/monitoring/4_mir_start_monitoring.rcps
@@ -0,0 +1,10 @@
+# Start component
+mirror 2; component start mir 9 mirror
+
+# Add port for mirror
+mirror 2; port add ring:0 rx mir
+mirror 2; port add ring:4 tx mir
+mirror 2; port add ring:5 tx mir
+
+# Post status check
+mirror 2; status
diff --git a/recipes/usecases/spp_mirror/monitoring/5_mir_stop_monitoring.rcps b/recipes/usecases/spp_mirror/monitoring/5_mir_stop_monitoring.rcps
new file mode 100644
index 0000000..a4ec04d
--- /dev/null
+++ b/recipes/usecases/spp_mirror/monitoring/5_mir_stop_monitoring.rcps
@@ -0,0 +1,13 @@
+# Delete port for mirror
+mirror 2; port del ring:0 rx mir
+mirror 2; port del ring:4 tx mir
+mirror 2; port del ring:5 tx mir
+
+# Stop component
+mirror 2; component stop mir 9 mirror
+
+# Post status check
+mirror 2; status
+
+# Exit spp_mirror
+mirror 2; exit
diff --git a/recipes/usecases/spp_mirror/monitoring/6_vf_del_mac.rcps b/recipes/usecases/spp_mirror/monitoring/6_vf_del_mac.rcps
new file mode 100644
index 0000000..d042e7c
--- /dev/null
+++ b/recipes/usecases/spp_mirror/monitoring/6_vf_del_mac.rcps
@@ -0,0 +1,3 @@
+# Delete MAC address for classifier
+vf 1; classifier_table del mac 52:54:00:12:34:56 ring:0
+vf 1; classifier_table del mac 52:54:00:12:34:58 ring:1
diff --git a/recipes/usecases/spp_mirror/monitoring/7_vf_del_ports.rcps b/recipes/usecases/spp_mirror/monitoring/7_vf_del_ports.rcps
new file mode 100644
index 0000000..e9e6d44
--- /dev/null
+++ b/recipes/usecases/spp_mirror/monitoring/7_vf_del_ports.rcps
@@ -0,0 +1,21 @@
+# Unset classifier
+vf 1; port del phy:0 rx cls
+vf 1; port del ring:0 tx cls
+vf 1; port del ring:1 tx cls
+
+# Unset forwarders
+vf 1; port del ring:5 rx fwd1
+vf 1; port del vhost:0 tx fwd1
+vf 1; port del ring:1 rx fwd2
+vf 1; port del vhost:2 tx fwd2
+vf 1; port del vhost:1 rx fwd3
+vf 1; port del ring:2 tx fwd3
+vf 1; port del vhost:3 rx fwd4
+vf 1; port del ring:3 tx fwd4
+vf 1; port del ring:4 rx fwd5
+vf 1; port del vhost:4 tx fwd5
+
+# Unset merger
+vf 1; port del ring:2 rx mgr
+vf 1; port del ring:3 rx mgr
+vf 1; port del phy:0 tx mgr
diff --git a/recipes/usecases/spp_mirror/monitoring/8_vf_stop_comp.rcps b/recipes/usecases/spp_mirror/monitoring/8_vf_stop_comp.rcps
new file mode 100644
index 0000000..8bf1cd0
--- /dev/null
+++ b/recipes/usecases/spp_mirror/monitoring/8_vf_stop_comp.rcps
@@ -0,0 +1,14 @@
+# Stop component
+vf 1; component stop cls
+vf 1; component stop mgr
+vf 1; component stop fwd1
+vf 1; component stop fwd2
+vf 1; component stop fwd3
+vf 1; component stop fwd4
+vf 1; component stop fwd5
+
+# Post status check
+vf 1; status
+
+# Exit spp_vf
+vf 1; exit
--
2.17.1
next prev parent reply other threads:[~2020-01-09 2:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20200109025113.22689-1-x-fn-spp@sl.ntt-tx.co.jp>
2020-01-09 2:51 ` [spp] [PATCH 1/7] rcps: add vhost related rcps for spp_nfv x-fn-spp
2020-01-09 2:51 ` [spp] [PATCH 2/7] rcps: fix rcps for setting up spp_vf x-fn-spp
2020-01-09 2:51 ` [spp] [PATCH 3/7] rcps: fix typos " x-fn-spp
2020-01-09 2:51 ` [spp] [PATCH 4/7] rcps: fix rcps for shutting down spp_vf x-fn-spp
2020-01-09 2:51 ` x-fn-spp [this message]
2020-01-09 2:51 ` [spp] [PATCH 6/7] docs: adds spp-vm1.xml x-fn-spp
2020-01-09 2:51 ` [spp] [PATCH 7/7] docs: fix incorrect commands in usecases x-fn-spp
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=202001090251.0092pDrG027716@imss04.silk.ntt-tx.co.jp \
--to=x-fn-spp@sl.ntt-tx.co.jp \
--cc=ferruh.yigit@intel.com \
--cc=spp@dpdk.org \
--cc=yasufum.o@gmail.com \
/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).