Soft Patch Panel
 help / color / Atom feed
* [spp] [PATCH] recipes: add rcps for spp_vf
@ 2019-09-10  1:32 x-fn-spp
  2019-09-10  5:45 ` Yasufumi Ogawa
  0 siblings, 1 reply; 2+ messages in thread
From: x-fn-spp @ 2019-09-10  1:32 UTC (permalink / raw)
  To: ferruh.yigit, yasufum.o; +Cc: spp

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

This patch is to provide rcps for specific usecase
"Classify ICMP Packets" of spp_vf.

Signed-off-by: Hideyuki Yamashita <yamashita.hideyuki@po.ntt-tx.co.jp>
Signed-off-by: Naoki Takada <ntakada14@gmail.com>
---
 .../spp_vf/classify_icmp/1_start_comp.rcps        |  5 +++++
 .../spp_vf/classify_icmp/2_add_ports.rcps         | 15 +++++++++++++++
 .../usecases/spp_vf/classify_icmp/3_reg_mac.rcps  |  3 +++
 .../usecases/spp_vf/classify_icmp/4_del_mac.rcps  |  3 +++
 .../spp_vf/classify_icmp/5_del_ports.rcps         | 15 +++++++++++++++
 .../spp_vf/classify_icmp/6_stop_comp.rcps         |  8 ++++++++
 6 files changed, 49 insertions(+)
 create mode 100644 recipes/usecases/spp_vf/classify_icmp/1_start_comp.rcps
 create mode 100644 recipes/usecases/spp_vf/classify_icmp/2_add_ports.rcps
 create mode 100644 recipes/usecases/spp_vf/classify_icmp/3_reg_mac.rcps
 create mode 100644 recipes/usecases/spp_vf/classify_icmp/4_del_mac.rcps
 create mode 100644 recipes/usecases/spp_vf/classify_icmp/5_del_ports.rcps
 create mode 100644 recipes/usecases/spp_vf/classify_icmp/6_stop_comp.rcps

diff --git a/recipes/usecases/spp_vf/classify_icmp/1_start_comp.rcps b/recipes/usecases/spp_vf/classify_icmp/1_start_comp.rcps
new file mode 100644
index 0000000..273805e
--- /dev/null
+++ b/recipes/usecases/spp_vf/classify_icmp/1_start_comp.rcps
@@ -0,0 +1,5 @@
+# Start components
+vf 1; component start cls 3 classifier
+vf 1; component start fwd1 4 forward
+vf 1; component start fwd2 5 forward
+vf 1; component start mgr 6 merge
diff --git a/recipes/usecases/spp_vf/classify_icmp/2_add_ports.rcps b/recipes/usecases/spp_vf/classify_icmp/2_add_ports.rcps
new file mode 100644
index 0000000..e2960f6
--- /dev/null
+++ b/recipes/usecases/spp_vf/classify_icmp/2_add_ports.rcps
@@ -0,0 +1,15 @@
+# Configures classifier
+vf 1; port add phy:0 rx cls
+vf 1; port add ring:0 tx cls
+vf 1; port add ring:1 tx cls
+
+# Configures forwarders
+vf 1; port add ring:0 rx fwd1
+vf 1; port add ring:2 tx fwd1
+vf 1; port add ring:1 rx fwd2
+vf 1; port add ring:3 tx fwd2
+
+# Configures merger
+vf 1; port add ring:2 rx mgr
+vf 1; port add ring:3 rx mgr
+vf 1; port add phy:1 tx mgr
diff --git a/recipes/usecases/spp_vf/classify_icmp/3_reg_mac.rcps b/recipes/usecases/spp_vf/classify_icmp/3_reg_mac.rcps
new file mode 100644
index 0000000..6f5de7b
--- /dev/null
+++ b/recipes/usecases/spp_vf/classify_icmp/3_reg_mac.rcps
@@ -0,0 +1,3 @@
+# Register MAC address to classifier
+vf 1; classifier_table add mac 52:54:00:12:34:56 ring:0
+vf 1; classifier_table add mac 52:54:00:12:34:58 ring:1
diff --git a/recipes/usecases/spp_vf/classify_icmp/4_del_mac.rcps b/recipes/usecases/spp_vf/classify_icmp/4_del_mac.rcps
new file mode 100644
index 0000000..54c0446
--- /dev/null
+++ b/recipes/usecases/spp_vf/classify_icmp/4_del_mac.rcps
@@ -0,0 +1,3 @@
+# Delete MAC addresses from table
+vf 1; classifier_table del mac 52:54:00:12:34:56 ring:0
+vf 1; classifier_table del mac 52:54:00:12:34:58 ring:1
diff --git a/recipes/usecases/spp_vf/classify_icmp/5_del_ports.rcps b/recipes/usecases/spp_vf/classify_icmp/5_del_ports.rcps
new file mode 100644
index 0000000..2f2ff5b
--- /dev/null
+++ b/recipes/usecases/spp_vf/classify_icmp/5_del_ports.rcps
@@ -0,0 +1,15 @@
+# Delete ports classifier
+vf 1; port del phy:0 rx cls
+vf 1; port del ring:0 tx cls
+vf 1; port del ring:1 tx cls
+
+# Delete ports forwarders
+vf 1; port del ring:0 rx fwd1
+vf 1; port del ring:2 tx fwd1
+vf 1; port del ring:1 rx fwd2
+vf 1; port del ring:3 tx fwd2
+
+# Delete ports merger
+vf 1; port del ring:2 rx mgr
+vf 1; port del ring:3 rx mgr
+vf 1; port del phy:1 tx mgr
diff --git a/recipes/usecases/spp_vf/classify_icmp/6_stop_comp.rcps b/recipes/usecases/spp_vf/classify_icmp/6_stop_comp.rcps
new file mode 100644
index 0000000..24aae4c
--- /dev/null
+++ b/recipes/usecases/spp_vf/classify_icmp/6_stop_comp.rcps
@@ -0,0 +1,8 @@
+# Stop component
+vf 1; component stop cls
+vf 1; component stop fwd1
+vf 1; component stop fwd2
+vf 1; component stop mgr
+
+# exit spp_vf
+vf 1; exit
-- 
2.17.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [spp] [PATCH] recipes: add rcps for spp_vf
  2019-09-10  1:32 [spp] [PATCH] recipes: add rcps for spp_vf x-fn-spp
@ 2019-09-10  5:45 ` Yasufumi Ogawa
  0 siblings, 0 replies; 2+ messages in thread
From: Yasufumi Ogawa @ 2019-09-10  5:45 UTC (permalink / raw)
  To: x-fn-spp, ferruh.yigit; +Cc: spp

> From: Hideyuki Yamashita <yamashita.hideyuki@po.ntt-tx.co.jp>
> 
> This patch is to provide rcps for specific usecase
> "Classify ICMP Packets" of spp_vf.
> 
> Signed-off-by: Hideyuki Yamashita <yamashita.hideyuki@po.ntt-tx.co.jp>
> Signed-off-by: Naoki Takada <ntakada14@gmail.com>
Applied, thaks.

> ---
>   .../spp_vf/classify_icmp/1_start_comp.rcps        |  5 +++++
>   .../spp_vf/classify_icmp/2_add_ports.rcps         | 15 +++++++++++++++
>   .../usecases/spp_vf/classify_icmp/3_reg_mac.rcps  |  3 +++
>   .../usecases/spp_vf/classify_icmp/4_del_mac.rcps  |  3 +++
>   .../spp_vf/classify_icmp/5_del_ports.rcps         | 15 +++++++++++++++
>   .../spp_vf/classify_icmp/6_stop_comp.rcps         |  8 ++++++++
>   6 files changed, 49 insertions(+)
>   create mode 100644 recipes/usecases/spp_vf/classify_icmp/1_start_comp.rcps
>   create mode 100644 recipes/usecases/spp_vf/classify_icmp/2_add_ports.rcps
>   create mode 100644 recipes/usecases/spp_vf/classify_icmp/3_reg_mac.rcps
>   create mode 100644 recipes/usecases/spp_vf/classify_icmp/4_del_mac.rcps
>   create mode 100644 recipes/usecases/spp_vf/classify_icmp/5_del_ports.rcps
>   create mode 100644 recipes/usecases/spp_vf/classify_icmp/6_stop_comp.rcps
> 
> diff --git a/recipes/usecases/spp_vf/classify_icmp/1_start_comp.rcps b/recipes/usecases/spp_vf/classify_icmp/1_start_comp.rcps
> new file mode 100644
> index 0000000..273805e
> --- /dev/null
> +++ b/recipes/usecases/spp_vf/classify_icmp/1_start_comp.rcps
> @@ -0,0 +1,5 @@
> +# Start components
> +vf 1; component start cls 3 classifier
> +vf 1; component start fwd1 4 forward
> +vf 1; component start fwd2 5 forward
> +vf 1; component start mgr 6 merge
> diff --git a/recipes/usecases/spp_vf/classify_icmp/2_add_ports.rcps b/recipes/usecases/spp_vf/classify_icmp/2_add_ports.rcps
> new file mode 100644
> index 0000000..e2960f6
> --- /dev/null
> +++ b/recipes/usecases/spp_vf/classify_icmp/2_add_ports.rcps
> @@ -0,0 +1,15 @@
> +# Configures classifier
> +vf 1; port add phy:0 rx cls
> +vf 1; port add ring:0 tx cls
> +vf 1; port add ring:1 tx cls
> +
> +# Configures forwarders
> +vf 1; port add ring:0 rx fwd1
> +vf 1; port add ring:2 tx fwd1
> +vf 1; port add ring:1 rx fwd2
> +vf 1; port add ring:3 tx fwd2
> +
> +# Configures merger
> +vf 1; port add ring:2 rx mgr
> +vf 1; port add ring:3 rx mgr
> +vf 1; port add phy:1 tx mgr
> diff --git a/recipes/usecases/spp_vf/classify_icmp/3_reg_mac.rcps b/recipes/usecases/spp_vf/classify_icmp/3_reg_mac.rcps
> new file mode 100644
> index 0000000..6f5de7b
> --- /dev/null
> +++ b/recipes/usecases/spp_vf/classify_icmp/3_reg_mac.rcps
> @@ -0,0 +1,3 @@
> +# Register MAC address to classifier
> +vf 1; classifier_table add mac 52:54:00:12:34:56 ring:0
> +vf 1; classifier_table add mac 52:54:00:12:34:58 ring:1
> diff --git a/recipes/usecases/spp_vf/classify_icmp/4_del_mac.rcps b/recipes/usecases/spp_vf/classify_icmp/4_del_mac.rcps
> new file mode 100644
> index 0000000..54c0446
> --- /dev/null
> +++ b/recipes/usecases/spp_vf/classify_icmp/4_del_mac.rcps
> @@ -0,0 +1,3 @@
> +# Delete MAC addresses from table
> +vf 1; classifier_table del mac 52:54:00:12:34:56 ring:0
> +vf 1; classifier_table del mac 52:54:00:12:34:58 ring:1
> diff --git a/recipes/usecases/spp_vf/classify_icmp/5_del_ports.rcps b/recipes/usecases/spp_vf/classify_icmp/5_del_ports.rcps
> new file mode 100644
> index 0000000..2f2ff5b
> --- /dev/null
> +++ b/recipes/usecases/spp_vf/classify_icmp/5_del_ports.rcps
> @@ -0,0 +1,15 @@
> +# Delete ports classifier
> +vf 1; port del phy:0 rx cls
> +vf 1; port del ring:0 tx cls
> +vf 1; port del ring:1 tx cls
> +
> +# Delete ports forwarders
> +vf 1; port del ring:0 rx fwd1
> +vf 1; port del ring:2 tx fwd1
> +vf 1; port del ring:1 rx fwd2
> +vf 1; port del ring:3 tx fwd2
> +
> +# Delete ports merger
> +vf 1; port del ring:2 rx mgr
> +vf 1; port del ring:3 rx mgr
> +vf 1; port del phy:1 tx mgr
> diff --git a/recipes/usecases/spp_vf/classify_icmp/6_stop_comp.rcps b/recipes/usecases/spp_vf/classify_icmp/6_stop_comp.rcps
> new file mode 100644
> index 0000000..24aae4c
> --- /dev/null
> +++ b/recipes/usecases/spp_vf/classify_icmp/6_stop_comp.rcps
> @@ -0,0 +1,8 @@
> +# Stop component
> +vf 1; component stop cls
> +vf 1; component stop fwd1
> +vf 1; component stop fwd2
> +vf 1; component stop mgr
> +
> +# exit spp_vf
> +vf 1; exit
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-10  1:32 [spp] [PATCH] recipes: add rcps for spp_vf x-fn-spp
2019-09-10  5:45 ` Yasufumi Ogawa

Soft Patch Panel

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/spp/0 spp/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 spp spp/ http://inbox.dpdk.org/spp \
		spp@dpdk.org
	public-inbox-index spp


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.spp


AGPL code for this site: git clone https://public-inbox.org/ public-inbox