[spp] [PATCH 26/28] docs/samples: add configs for spp_vf command

ogawa.yasufumi at lab.ntt.co.jp ogawa.yasufumi at lab.ntt.co.jp
Mon Feb 5 03:47:04 CET 2018


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

Add samples for SPP VF to configure network of 'usecase1' explained in
'Use Case' section in the documentation.

Signed-off-by: Yasufumi Ogawa <ogawa.yasufumi at lab.ntt.co.jp>
---
 .../usecase1/1-start_components_path1.config       |  7 ++++++
 .../spp_vf/usecase1/2-add_ports_path1.config       | 25 ++++++++++++++++++++++
 .../command/spp_vf/usecase1/3-reg_mac_path1.config |  3 +++
 .../usecase1/4-start_components_path2.config       |  7 ++++++
 .../spp_vf/usecase1/5-add_ports_path2.config       | 25 ++++++++++++++++++++++
 .../command/spp_vf/usecase1/6-reg_mac_path2.config |  3 +++
 6 files changed, 70 insertions(+)
 create mode 100644 docs/samples/command/spp_vf/usecase1/1-start_components_path1.config
 create mode 100644 docs/samples/command/spp_vf/usecase1/2-add_ports_path1.config
 create mode 100644 docs/samples/command/spp_vf/usecase1/3-reg_mac_path1.config
 create mode 100644 docs/samples/command/spp_vf/usecase1/4-start_components_path2.config
 create mode 100644 docs/samples/command/spp_vf/usecase1/5-add_ports_path2.config
 create mode 100644 docs/samples/command/spp_vf/usecase1/6-reg_mac_path2.config

diff --git a/docs/samples/command/spp_vf/usecase1/1-start_components_path1.config b/docs/samples/command/spp_vf/usecase1/1-start_components_path1.config
new file mode 100644
index 0000000..52e2bba
--- /dev/null
+++ b/docs/samples/command/spp_vf/usecase1/1-start_components_path1.config
@@ -0,0 +1,7 @@
+# Start component for path1
+sec 1;component start classifier1 2 classifier_mac
+sec 1;component start forwarder1 3 forward
+sec 1;component start forwarder2 4 forward
+sec 1;component start forwarder3 5 forward
+sec 1;component start forwarder4 6 forward
+sec 1;component start merger1 7 merge
diff --git a/docs/samples/command/spp_vf/usecase1/2-add_ports_path1.config b/docs/samples/command/spp_vf/usecase1/2-add_ports_path1.config
new file mode 100644
index 0000000..e7c1924
--- /dev/null
+++ b/docs/samples/command/spp_vf/usecase1/2-add_ports_path1.config
@@ -0,0 +1,25 @@
+# Add ports to classifier1
+sec 1;port add phy:0 rx classifier1
+sec 1;port add ring:0 tx classifier1
+sec 1;port add ring:1 tx classifier1
+
+# Add ports to forwarder1
+sec 1;port add ring:0 rx forwarder1
+sec 1;port add vhost:0 tx forwarder1
+
+# Add ports to forwarder2
+sec 1;port add vhost:0 rx forwarder2
+sec 1;port add ring:2 tx forwarder2
+
+# Add ports to forwarder3
+sec 1;port add ring:1 rx forwarder3
+sec 1;port add vhost:2 rx forwarder3
+
+# Add ports to forwarder4
+sec 1;port add vhost:2 tx forwarder4
+sec 1;port add ring:3 rx forwarder4
+
+# Add ports to merger1
+sec 1;port add ring:2 rx merger1
+sec 1;port add ring:3 rx merger1
+sec 1;port add phy:0 tx merger1
diff --git a/docs/samples/command/spp_vf/usecase1/3-reg_mac_path1.config b/docs/samples/command/spp_vf/usecase1/3-reg_mac_path1.config
new file mode 100644
index 0000000..3365291
--- /dev/null
+++ b/docs/samples/command/spp_vf/usecase1/3-reg_mac_path1.config
@@ -0,0 +1,3 @@
+# Register MAC address to classifier
+sec 1;classifier_table add mac 52:54:00:12:34:56 ring:0
+sec 1;classifier_table add mac 52:54:00:12:34:58 ring:1
diff --git a/docs/samples/command/spp_vf/usecase1/4-start_components_path2.config b/docs/samples/command/spp_vf/usecase1/4-start_components_path2.config
new file mode 100644
index 0000000..2adc721
--- /dev/null
+++ b/docs/samples/command/spp_vf/usecase1/4-start_components_path2.config
@@ -0,0 +1,7 @@
+# Start component for path2
+sec 1;component start classifier2 8 classifier_mac
+sec 1;component start forwarder5 9 forward
+sec 1;component start forwarder6 10 forward
+sec 1;component start forwarder7 11 forward
+sec 1;component start forwarder8 12 forward
+sec 1;component start merger2 13 merge
diff --git a/docs/samples/command/spp_vf/usecase1/5-add_ports_path2.config b/docs/samples/command/spp_vf/usecase1/5-add_ports_path2.config
new file mode 100644
index 0000000..6e7bec2
--- /dev/null
+++ b/docs/samples/command/spp_vf/usecase1/5-add_ports_path2.config
@@ -0,0 +1,25 @@
+# Add ports to classifier2
+sec 1;port add phy:1 rx classifier2
+sec 1;port add ring:4 tx classifier2
+sec 1;port add ring:5 tx classifier2
+
+# Add ports to forwarder5
+sec 1;port add ring:4 rx forwarder5
+sec 1;port add vhost:1 tx forwarder5
+
+# Add ports to forwarder6
+sec 1;port add vhost:1 rx forwarder6
+sec 1;port add ring:6 tx forwarder6
+
+# Add ports to forwarder7
+sec 1;port add ring:5 rx forwarder7
+sec 1;port add vhost:3 rx forwarder7
+
+# Add ports to forwarder8
+sec 1;port add vhost:3 tx forwarder8
+sec 1;port add ring:7 rx forwarder8
+
+# Add ports to merger2
+sec 1;port add ring:6 rx merger2
+sec 1;port add ring:7 rx merger2
+sec 1;port add phy:1 tx merger2
diff --git a/docs/samples/command/spp_vf/usecase1/6-reg_mac_path2.config b/docs/samples/command/spp_vf/usecase1/6-reg_mac_path2.config
new file mode 100644
index 0000000..9cab6b4
--- /dev/null
+++ b/docs/samples/command/spp_vf/usecase1/6-reg_mac_path2.config
@@ -0,0 +1,3 @@
+# Register MAC address to classifier
+sec 1;classifier_table add mac 52:54:00:12:34:57 ring:4
+sec 1;classifier_table add mac 52:54:00:12:34:59 ring:5
-- 
2.13.1



More information about the spp mailing list