Soft Patch Panel
 help / color / mirror / Atom feed
From: yasufum.o@gmail.com
To: spp@dpdk.org, ferruh.yigit@intel.com, yasufum.o@gmail.com
Subject: [spp] [PATCH 1/2] recipes: update old rcps for spp_nfv
Date: Mon,  1 Jul 2019 13:12:43 +0900	[thread overview]
Message-ID: <20190701041244.34176-2-yasufum.o@gmail.com> (raw)
In-Reply-To: <20190701041244.34176-1-yasufum.o@gmail.com>

From: Yasufumi Ogawa <yasufum.o@gmail.com>

Recipe scripts for spp_nfv are not maintained and failed to run because
command syntax is too old. This patch is to update them to the latest
syntax as described in documents.

Signed-off-by: Yasufumi Ogawa <yasufum.o@gmail.com>
---
 recipes/usecases/spp_nfv/dual_bidir.rcps      | 10 ++++-----
 recipes/usecases/spp_nfv/dual_loopback.rcps   |  9 ++++----
 recipes/usecases/spp_nfv/ring_dual_bidir.rcps | 22 +++++++++----------
 .../usecases/spp_nfv/ring_dual_unidir.rcps    | 16 ++++++--------
 recipes/usecases/spp_nfv/single_bidir.rcps    |  8 +++----
 recipes/usecases/spp_nfv/single_loopback.rcps |  4 ++++
 recipes/usecases/spp_nfv/vhost_unidir.rcps    | 11 +++++-----
 7 files changed, 40 insertions(+), 40 deletions(-)
 create mode 100644 recipes/usecases/spp_nfv/single_loopback.rcps

diff --git a/recipes/usecases/spp_nfv/dual_bidir.rcps b/recipes/usecases/spp_nfv/dual_bidir.rcps
index f3d186b..ae60beb 100644
--- a/recipes/usecases/spp_nfv/dual_bidir.rcps
+++ b/recipes/usecases/spp_nfv/dual_bidir.rcps
@@ -1,5 +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
+# Configure Two spp_nfv as L2fwd
+nfv 1; patch phy:0 phy:1
+nfv 2; patch phy:1 phy:0
+nfv 1; forward
+nfv 2; forward
diff --git a/recipes/usecases/spp_nfv/dual_loopback.rcps b/recipes/usecases/spp_nfv/dual_loopback.rcps
index 8d3350d..5b00de7 100644
--- a/recipes/usecases/spp_nfv/dual_loopback.rcps
+++ b/recipes/usecases/spp_nfv/dual_loopback.rcps
@@ -1,4 +1,5 @@
-sec 1;patch phy:0 phy:0
-sec 2;patch phy:1 phy:1
-sec 1;forward
-sec 2;forward
+#Configure two spp_nfv for Loopback
+nfv 1; patch phy:0 phy:0
+nfv 2; patch phy:1 phy:1
+nfv 1; forward
+nfv 2; forward
diff --git a/recipes/usecases/spp_nfv/ring_dual_bidir.rcps b/recipes/usecases/spp_nfv/ring_dual_bidir.rcps
index 167c90f..2fff7b3 100644
--- a/recipes/usecases/spp_nfv/ring_dual_bidir.rcps
+++ b/recipes/usecases/spp_nfv/ring_dual_bidir.rcps
@@ -1,14 +1,12 @@
 # Bi-directional with two rings
+nfv 1; add ring:0
+nfv 1; add ring:1
+nfv 2; add ring:0
+nfv 2; add ring:1
 
-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
+nfv 1; patch phy:0 ring:0
+nfv 1; patch ring:1 phy:0
+nfv 2; patch phy:1 ring:1
+nfv 2; patch ring:0 phy:1
+nfv 1; forward
+nfv 2; forward
diff --git a/recipes/usecases/spp_nfv/ring_dual_unidir.rcps b/recipes/usecases/spp_nfv/ring_dual_unidir.rcps
index eb6377e..a9fd883 100644
--- a/recipes/usecases/spp_nfv/ring_dual_unidir.rcps
+++ b/recipes/usecases/spp_nfv/ring_dual_unidir.rcps
@@ -1,9 +1,7 @@
-# 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
+# Uni-Directional L2fwd with ring
+nfv 1; add ring:0
+nfv 2; add ring:0
+nfv 1; patch phy:0 ring:0
+nfv 2; patch ring:0 phy:1
+nfv 1; forward
+nfv 2; forward
diff --git a/recipes/usecases/spp_nfv/single_bidir.rcps b/recipes/usecases/spp_nfv/single_bidir.rcps
index e56e29e..22905a7 100644
--- a/recipes/usecases/spp_nfv/single_bidir.rcps
+++ b/recipes/usecases/spp_nfv/single_bidir.rcps
@@ -1,4 +1,4 @@
-# Patch ports as bi-directional
-sec 1;patch phy:0 phy:1
-sec 1;patch phy:1 phy:0
-sec 1;forward
+# Configure spp_nfv as L2fwd
+nfv 1; patch phy:0 phy:1
+nfv 1; patch phy:1 phy:0
+nfv 1; forward
diff --git a/recipes/usecases/spp_nfv/single_loopback.rcps b/recipes/usecases/spp_nfv/single_loopback.rcps
new file mode 100644
index 0000000..7c70b23
--- /dev/null
+++ b/recipes/usecases/spp_nfv/single_loopback.rcps
@@ -0,0 +1,4 @@
+# Configure spp_nfv for Loopback
+nfv 1; patch phy:0 phy:0
+nfv 1; patch phy:1 phy:1
+nfv 1; forward
diff --git a/recipes/usecases/spp_nfv/vhost_unidir.rcps b/recipes/usecases/spp_nfv/vhost_unidir.rcps
index d835719..eaca4e9 100644
--- a/recipes/usecases/spp_nfv/vhost_unidir.rcps
+++ b/recipes/usecases/spp_nfv/vhost_unidir.rcps
@@ -1,6 +1,5 @@
-# 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
+# Single spp_nfv with Vhost PMD
+nfv 1; add vhost:0
+nfv 1; patch phy:0 vhost:0
+nfv 1; patch vhost:1 phy:1
+nfv 1; forward
-- 
2.17.1


  reply	other threads:[~2019-07-01  4:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-01  4:12 [spp] [PATCH 0/2] Update recipe scripts yasufum.o
2019-07-01  4:12 ` yasufum.o [this message]
2019-07-01  4:12 ` [spp] [PATCH 2/2] recipes: update old rcps for spp_vf yasufum.o

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=20190701041244.34176-2-yasufum.o@gmail.com \
    --to=yasufum.o@gmail.com \
    --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).