Soft Patch Panel
 help / color / Atom feed
* [spp] [PATCH] recipes: add rcps for spp_mirror
@ 2019-09-05  2:14 x-fn-spp
  2019-09-05  3:12 ` Yasufumi Ogawa
  2019-09-10  1:38 ` [spp] [PATCH v2] " x-fn-spp
  0 siblings, 2 replies; 4+ messages in thread
From: x-fn-spp @ 2019-09-05  2:14 UTC (permalink / raw)
  To: ferruh.yigit, ogawa.yasufumi; +Cc: spp

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

This patch is to provide rcps for specific usecase "Duplicate Packets"
of spp_mirror.

Signed-off-by: Hideyuki Yamashita <yamashita.hideyuki@po.ntt-tx.co.jp>
Signed-off-by: Naoki Takada <ntakada14@gmail.com>
Change-Id: I4d20465f2818ea962835c172795a8d1eb8bed877
---
 recipes/usecases/spp_mirror/duplicate/1_start_dup.rcps |  7 +++++++
 recipes/usecases/spp_mirror/duplicate/2_stop_dup.rcps  | 10 ++++++++++
 2 files changed, 17 insertions(+)
 create mode 100644 recipes/usecases/spp_mirror/duplicate/1_start_dup.rcps
 create mode 100644 recipes/usecases/spp_mirror/duplicate/2_stop_dup.rcps

diff --git a/recipes/usecases/spp_mirror/duplicate/1_start_dup.rcps b/recipes/usecases/spp_mirror/duplicate/1_start_dup.rcps
new file mode 100644
index 0000000..5549dd3
--- /dev/null
+++ b/recipes/usecases/spp_mirror/duplicate/1_start_dup.rcps
@@ -0,0 +1,7 @@
+# Start component
+mirror 1; component start mir 2 mirror
+
+# Add ports
+mirror 1; port add phy:0 rx mir
+mirror 1; port add phy:1 tx mir
+mirror 1; port add phy:2 tx mir
diff --git a/recipes/usecases/spp_mirror/duplicate/2_stop_dup.rcps b/recipes/usecases/spp_mirror/duplicate/2_stop_dup.rcps
new file mode 100644
index 0000000..d13085c
--- /dev/null
+++ b/recipes/usecases/spp_mirror/duplicate/2_stop_dup.rcps
@@ -0,0 +1,10 @@
+# Delete ports
+mirror 1; port del phy:0 rx mir
+mirror 1; port del phy:1 tx mir
+mirror 1; port del phy:2 tx mir
+
+# Stop component
+mirror 1; component stop mir
+
+# Exit spp_mirror
+mirror 1; exit
-- 
2.17.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, back to index

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-05  2:14 [spp] [PATCH] recipes: add rcps for spp_mirror x-fn-spp
2019-09-05  3:12 ` Yasufumi Ogawa
2019-09-10  1:38 ` [spp] [PATCH v2] " x-fn-spp
2019-09-10  5:46   ` Yasufumi Ogawa

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