Soft Patch Panel
 help / color / mirror / Atom feed
From: x-fn-spp@sl.ntt-tx.co.jp
To: ferruh.yigit@intel.com, ogawa.yasufumi@lab.ntt.co.jp
Cc: spp@dpdk.org
Subject: [spp] [PATCH] recipes: add rcps for spp_mirror
Date: Thu,  5 Sep 2019 11:14:34 +0900	[thread overview]
Message-ID: <201909050214.x852EY8j009881@imss04.silk.ntt-tx.co.jp> (raw)

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


             reply	other threads:[~2019-09-05  2:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-05  2:14 x-fn-spp [this message]
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

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=201909050214.x852EY8j009881@imss04.silk.ntt-tx.co.jp \
    --to=x-fn-spp@sl.ntt-tx.co.jp \
    --cc=ferruh.yigit@intel.com \
    --cc=ogawa.yasufumi@lab.ntt.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).