Soft Patch Panel
 help / color / mirror / Atom feed
From: ogawa.yasufumi@lab.ntt.co.jp
To: ferruh.yigit@intel.com, spp@dpdk.org
Cc: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>
Subject: [spp] [PATCH 2/3] recipes: update SPP usecases
Date: Wed, 13 Jun 2018 11:44:58 +0900	[thread overview]
Message-ID: <20180613024459.31031-3-ogawa.yasufumi@lab.ntt.co.jp> (raw)
In-Reply-To: <20180613024459.31031-1-ogawa.yasufumi@lab.ntt.co.jp>

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

Description of resource ID has changed from earlier version. However,
recipes for SPP usecases are still remained old.

This patch is to correct invalid command of old version. It also
updates to revise directory and name of the recipes. File extension is
changed from 'config' to 'rcps' for SPP recipe script.

Signed-off-by: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>
---
 recipes/spp/1nfv_1vm_bi.config             | 28 --------------------
 recipes/spp/1nfv_1vm_uni.config            | 21 ---------------
 recipes/spp/1nfv_bi.config                 | 10 --------
 recipes/spp/2nfv_1ring_uni.config          | 18 -------------
 recipes/spp/2nfv_1vm_bi.config             | 30 ----------------------
 recipes/spp/2nfv_bi.config                 | 12 ---------
 recipes/spp/usecases/dual_bidir.rcps       |  5 ++++
 recipes/spp/usecases/dual_loopback.rcps    |  4 +++
 recipes/spp/usecases/ring_dual_bidir.rcps  | 14 ++++++++++
 recipes/spp/usecases/ring_dual_unidir.rcps |  9 +++++++
 recipes/spp/usecases/single_bidir.rcps     |  4 +++
 recipes/spp/usecases/vhost_unidir.rcps     |  6 +++++
 12 files changed, 42 insertions(+), 119 deletions(-)
 delete mode 100644 recipes/spp/1nfv_1vm_bi.config
 delete mode 100644 recipes/spp/1nfv_1vm_uni.config
 delete mode 100644 recipes/spp/1nfv_bi.config
 delete mode 100644 recipes/spp/2nfv_1ring_uni.config
 delete mode 100644 recipes/spp/2nfv_1vm_bi.config
 delete mode 100644 recipes/spp/2nfv_bi.config
 create mode 100644 recipes/spp/usecases/dual_bidir.rcps
 create mode 100644 recipes/spp/usecases/dual_loopback.rcps
 create mode 100644 recipes/spp/usecases/ring_dual_bidir.rcps
 create mode 100644 recipes/spp/usecases/ring_dual_unidir.rcps
 create mode 100644 recipes/spp/usecases/single_bidir.rcps
 create mode 100644 recipes/spp/usecases/vhost_unidir.rcps

diff --git a/recipes/spp/1nfv_1vm_bi.config b/recipes/spp/1nfv_1vm_bi.config
deleted file mode 100644
index ae6104b..0000000
--- a/recipes/spp/1nfv_1vm_bi.config
+++ /dev/null
@@ -1,28 +0,0 @@
-# Show status
-status
-
-# Show status of secondaries
-sec 1;status
-sec 2;status
-
-# Add rings to secondaries
-sec 1;add ring 0
-sec 1;add ring 1
-sec 1;add ring 2
-sec 1;add ring 3
-sec 2;add ring 0
-sec 2;add ring 1
-sec 2;add ring 2
-sec 2;add ring 3
-
-# Patch all of ports as bi-directional
-sec 1;patch 0 2
-sec 1;patch 3 0
-sec 1;patch 1 4
-sec 1;patch 5 1
-sec 2;patch 0 3
-sec 2;patch 2 1
-
-# Start forwarding
-sec 1;forward
-sec 2;forward
diff --git a/recipes/spp/1nfv_1vm_uni.config b/recipes/spp/1nfv_1vm_uni.config
deleted file mode 100644
index 74aff3d..0000000
--- a/recipes/spp/1nfv_1vm_uni.config
+++ /dev/null
@@ -1,21 +0,0 @@
-# Show status
-status
-
-# Show status of secondaries
-sec 1;status
-sec 2;status
-
-# Add rings to secondaries
-sec 1;add ring 0
-sec 1;add ring 1
-sec 2;add ring 0
-sec 2;add ring 1
-
-# Patch all of ports as uni-directional
-sec 1;patch 0 2
-sec 1;patch 3 1
-sec 2;patch 0 1
-
-# Start forwarding
-sec 1;forward
-sec 2;forward
diff --git a/recipes/spp/1nfv_bi.config b/recipes/spp/1nfv_bi.config
deleted file mode 100644
index 0142988..0000000
--- a/recipes/spp/1nfv_bi.config
+++ /dev/null
@@ -1,10 +0,0 @@
-# Show status
-status
-sec 1;status
-
-# Patch ports as bi-directional
-sec 1;patch 0 1
-sec 1;patch 1 0
-
-# Start forwarding
-sec 1;forward
diff --git a/recipes/spp/2nfv_1ring_uni.config b/recipes/spp/2nfv_1ring_uni.config
deleted file mode 100644
index c3e391c..0000000
--- a/recipes/spp/2nfv_1ring_uni.config
+++ /dev/null
@@ -1,18 +0,0 @@
-# Show status
-status
-
-# Show status of secondaries
-sec 1;status
-sec 2;status
-
-# Add a ring to secondaries
-sec 1;add ring 0
-sec 2;add ring 0
-
-# Patch all of ports as uni-directional
-sec 1;patch 0 2
-sec 2;patch 2 1
-
-# Start forwarding
-sec 1;forward
-sec 2;forward
diff --git a/recipes/spp/2nfv_1vm_bi.config b/recipes/spp/2nfv_1vm_bi.config
deleted file mode 100644
index 3537c91..0000000
--- a/recipes/spp/2nfv_1vm_bi.config
+++ /dev/null
@@ -1,30 +0,0 @@
-# Show status
-status
-
-# Show status of secondaries
-sec 1;status
-sec 2;status
-sec 3;status
-
-# Add rings to secondaries
-sec 1;add ring 0
-sec 1;add ring 1
-sec 2;add ring 2
-sec 2;add ring 3
-sec 3;add ring 0
-sec 3;add ring 1
-sec 3;add ring 2
-sec 3;add ring 3
-
-# Patch all of ports as bi-directional
-sec 1;patch 0 2
-sec 1;patch 3 0
-sec 2;patch 3 1
-sec 2;patch 1 2
-sec 3;patch 0 3
-sec 3;patch 2 1
-
-# Start forwarding
-sec 2;forward
-sec 2;forward
-sec 3;forward
diff --git a/recipes/spp/2nfv_bi.config b/recipes/spp/2nfv_bi.config
deleted file mode 100644
index 4c4768c..0000000
--- a/recipes/spp/2nfv_bi.config
+++ /dev/null
@@ -1,12 +0,0 @@
-# Show status
-status
-
-# Patch port 0 and 1 as bi-directioonal
-sec 1;status
-sec 2;status
-sec 1;patch 0 1
-sec 2;patch 1 0
-
-# Start forwarding
-sec 1;forward
-sec 2;forward
diff --git a/recipes/spp/usecases/dual_bidir.rcps b/recipes/spp/usecases/dual_bidir.rcps
new file mode 100644
index 0000000..f3d186b
--- /dev/null
+++ b/recipes/spp/usecases/dual_bidir.rcps
@@ -0,0 +1,5 @@
+# Patch port 0 and 1 as bi-directioonal
+sec 1;patch phy:0 phy:1
+sec 2;patch phy:1 phy:0
+sec 1;forward
+sec 2;forward
diff --git a/recipes/spp/usecases/dual_loopback.rcps b/recipes/spp/usecases/dual_loopback.rcps
new file mode 100644
index 0000000..8d3350d
--- /dev/null
+++ b/recipes/spp/usecases/dual_loopback.rcps
@@ -0,0 +1,4 @@
+sec 1;patch phy:0 phy:0
+sec 2;patch phy:1 phy:1
+sec 1;forward
+sec 2;forward
diff --git a/recipes/spp/usecases/ring_dual_bidir.rcps b/recipes/spp/usecases/ring_dual_bidir.rcps
new file mode 100644
index 0000000..167c90f
--- /dev/null
+++ b/recipes/spp/usecases/ring_dual_bidir.rcps
@@ -0,0 +1,14 @@
+# Bi-directional with two rings
+
+sec 1;add ring 0
+sec 1;add ring 1
+sec 2;add ring 0
+sec 2;add ring 1
+
+sec 1;patch phy:0 ring:0
+sec 1;patch ring:1 phy:0
+sec 2;patch phy:1 ring:1
+sec 2;patch ring:0 phy:1
+
+sec 1;forward
+sec 2;forward
diff --git a/recipes/spp/usecases/ring_dual_unidir.rcps b/recipes/spp/usecases/ring_dual_unidir.rcps
new file mode 100644
index 0000000..eb6377e
--- /dev/null
+++ b/recipes/spp/usecases/ring_dual_unidir.rcps
@@ -0,0 +1,9 @@
+# Uni-directional with ring
+sec 1;add ring 0
+sec 2;add ring 0
+
+sec 1;patch phy:0 ring:0
+sec 2;patch ring:0 phy:1
+
+sec 1;forward
+sec 2;forward
diff --git a/recipes/spp/usecases/single_bidir.rcps b/recipes/spp/usecases/single_bidir.rcps
new file mode 100644
index 0000000..e56e29e
--- /dev/null
+++ b/recipes/spp/usecases/single_bidir.rcps
@@ -0,0 +1,4 @@
+# Patch ports as bi-directional
+sec 1;patch phy:0 phy:1
+sec 1;patch phy:1 phy:0
+sec 1;forward
diff --git a/recipes/spp/usecases/vhost_unidir.rcps b/recipes/spp/usecases/vhost_unidir.rcps
new file mode 100644
index 0000000..d835719
--- /dev/null
+++ b/recipes/spp/usecases/vhost_unidir.rcps
@@ -0,0 +1,6 @@
+# Uni-directional with vhost
+sec 1;patch phy:0 vhost:0
+sec 1;patch vhost:0 phy:1
+sec 2;patch phy:0 phy:0
+sec 1;forward
+sec 2;forward
-- 
2.17.1

  parent reply	other threads:[~2018-06-13  2:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-13  2:44 [spp] [PATCH 0/3] Introduce recipes as config ogawa.yasufumi
2018-06-13  2:44 ` [spp] [PATCH 1/3] recipes: add recipes directory ogawa.yasufumi
2018-06-13  2:44 ` ogawa.yasufumi [this message]
2018-06-13  2:44 ` [spp] [PATCH 3/3] recipes: update SPP_VF usecases ogawa.yasufumi
2018-08-15 15:19 ` [spp] [PATCH 0/3] Introduce recipes as config Ferruh Yigit

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=20180613024459.31031-3-ogawa.yasufumi@lab.ntt.co.jp \
    --to=ogawa.yasufumi@lab.ntt.co.jp \
    --cc=ferruh.yigit@intel.com \
    --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).