Soft Patch Panel
 help / color / Atom feed
From: x-fn-spp-ml@ntt-tx.co.jp
To: spp@dpdk.org, ferruh.yigit@intel.com, yasufum.o@gmail.com
Subject: [spp] [PATCH v2 5/8] recipes: add rcps for spp_mirror
Date: Tue, 03 Mar 2020 18:25:18 +0900
Message-ID: <20200303092521.22882-6-x-fn-spp-ml@ntt-tx.co.jp> (raw)
In-Reply-To: <20200227094422.7429-1-x-fn-spp-ml@ntt-tx.co.jp>

From: Hideyuki Yamashita <yamashita.hideyuki@ntt-tx.co.jp>

This patch provides rcps for spp_mirror usecase.

Signed-off-by: Hideyuki Yamashita <yamashita.hideyuki@ntt-tx.co.jp>
Signed-off-by: Naoki Takada <ntakada14@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   |  3 +++
 .../monitoring/4_mir_start_monitoring.rcps    |  7 +++++++
 .../monitoring/5_mir_stop_monitoring.rcps     | 10 +++++++++
 .../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 | 11 ++++++++++
 8 files changed, 84 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..4852398
--- /dev/null
+++ b/recipes/usecases/spp_mirror/monitoring/1_vf_start_comp.rcps
@@ -0,0 +1,8 @@
+# Start components
+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..4731f91
--- /dev/null
+++ b/recipes/usecases/spp_mirror/monitoring/3_vf_reg_mac.rcps
@@ -0,0 +1,3 @@
+# 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
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..20fe64b
--- /dev/null
+++ b/recipes/usecases/spp_mirror/monitoring/4_mir_start_monitoring.rcps
@@ -0,0 +1,7 @@
+# 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
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..a13004f
--- /dev/null
+++ b/recipes/usecases/spp_mirror/monitoring/5_mir_stop_monitoring.rcps
@@ -0,0 +1,10 @@
+# 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
+
+# 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..e1bdbd3
--- /dev/null
+++ b/recipes/usecases/spp_mirror/monitoring/7_vf_del_ports.rcps
@@ -0,0 +1,21 @@
+# Delete ports on 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
+
+# Delete ports on 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
+
+# Delete ports on 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..739e7e6
--- /dev/null
+++ b/recipes/usecases/spp_mirror/monitoring/8_vf_stop_comp.rcps
@@ -0,0 +1,11 @@
+# Stop components
+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
+
+# Exit spp_vf
+vf 1; exit
-- 
2.17.1


  parent reply index

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-27  9:44 [spp] [PATCH 0/8] Update docs and rcps x-fn-spp-ml
2020-02-27  9:44 ` [spp] [PATCH 1/8] recipes: add vhost related rcps for spp_nfv x-fn-spp-ml
2020-02-27  9:44 ` [spp] [PATCH 2/8] recipes: fix rcps for setting up spp_vf x-fn-spp-ml
2020-02-27  9:44 ` [spp] [PATCH 3/8] recipes: fix typos " x-fn-spp-ml
2020-02-27  9:44 ` [spp] [PATCH 4/8] recipes: fix rcps for shutting down spp_vf x-fn-spp-ml
2020-02-27  9:44 ` [spp] [PATCH 5/8] recipes: add rcps for spp_mirror x-fn-spp-ml
2020-02-27  9:44 ` [spp] [PATCH 6/8] recipes: add rcps for multiple_nodes x-fn-spp-ml
2020-02-27  9:44 ` [spp] [PATCH 7/8] docs: adds sample Domain XML file for vhost x-fn-spp-ml
2020-02-27  9:44 ` [spp] [PATCH 8/8] docs: fix incorrect commands in usecases x-fn-spp-ml
2020-02-28  8:49 ` [spp] [PATCH 0/8] Update docs and rcps Yasufumi Ogawa
2020-03-03  9:25 ` [spp] [PATCH v2 " x-fn-spp-ml
2020-03-05  1:26   ` Yasufumi Ogawa
2020-03-03  9:25 ` [spp] [PATCH v2 1/8] recipes: add vhost related rcps for spp_nfv x-fn-spp-ml
2020-03-03  9:25 ` [spp] [PATCH v2 2/8] recipes: fix rcps for setting up spp_vf x-fn-spp-ml
2020-03-03  9:25 ` [spp] [PATCH v2 3/8] recipes: fix typos " x-fn-spp-ml
2020-03-03  9:25 ` [spp] [PATCH v2 4/8] recipes: fix rcps for shutting down spp_vf x-fn-spp-ml
2020-03-03  9:25 ` x-fn-spp-ml [this message]
2020-03-03  9:25 ` [spp] [PATCH v2 6/8] recipes: add rcps for multiple_nodes x-fn-spp-ml
2020-03-03  9:25 ` [spp] [PATCH v2 7/8] docs: adds sample Domain XML file for vhost x-fn-spp-ml
2020-03-03  9:25 ` [spp] [PATCH v2 8/8] docs: fix incorrect commands in usecases x-fn-spp-ml

Reply instructions:

You may reply publically 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=20200303092521.22882-6-x-fn-spp-ml@ntt-tx.co.jp \
    --to=x-fn-spp-ml@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

Soft Patch Panel

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/spp/0 spp/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 spp spp/ http://inbox.dpdk.org/spp \
		spp@dpdk.org
	public-inbox-index spp


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.spp


AGPL code for this site: git clone https://public-inbox.org/ public-inbox