[spp] [PATCH 1/7] rcps: add vhost related rcps for spp_nfv

x-fn-spp at sl.ntt-tx.co.jp x-fn-spp at sl.ntt-tx.co.jp
Thu Jan 9 03:51:07 CET 2020


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

This patch set adds vhost related rcps for spp_nfv.

Signed-off-by: Hideyuki Yamashita <yamashita.hideyuki at po.ntt-tx.co.jp>
Signed-off-by: Yasufumi Ogawa <yasufum.o at gmail.com>
---
 .../single_with_vhost/1_vhost_single_unidir.rcps       | 10 ++++++++++
 .../usecases/spp_nfv/single_with_vhost/2_clean.rcps    |  9 +++++++++
 2 files changed, 19 insertions(+)
 create mode 100644 recipes/usecases/spp_nfv/single_with_vhost/1_vhost_single_unidir.rcps
 create mode 100644 recipes/usecases/spp_nfv/single_with_vhost/2_clean.rcps

diff --git a/recipes/usecases/spp_nfv/single_with_vhost/1_vhost_single_unidir.rcps b/recipes/usecases/spp_nfv/single_with_vhost/1_vhost_single_unidir.rcps
new file mode 100644
index 0000000..86841f2
--- /dev/null
+++ b/recipes/usecases/spp_nfv/single_with_vhost/1_vhost_single_unidir.rcps
@@ -0,0 +1,10 @@
+# Add vhost PMDs
+nfv 1; add vhost:0
+nfv 1; add vhost:1
+
+# Patch ports
+nfv 1; patch phy:0 vhost:0
+nfv 1; patch vhost:1 phy:1
+
+# Start forwarding
+nfv 1; forward
diff --git a/recipes/usecases/spp_nfv/single_with_vhost/2_clean.rcps b/recipes/usecases/spp_nfv/single_with_vhost/2_clean.rcps
new file mode 100644
index 0000000..aa05798
--- /dev/null
+++ b/recipes/usecases/spp_nfv/single_with_vhost/2_clean.rcps
@@ -0,0 +1,9 @@
+# Stop forwarding
+nfv 1; stop
+
+# Clear all of patches
+nfv 1; patch reset
+
+# Delete vhost PMDs
+nfv 1; del vhost:0
+nfv 1; del vhost:1
-- 
2.17.1



More information about the spp mailing list