Soft Patch Panel
 help / color / mirror / Atom feed
From: Yasufumi Ogawa <yasufum.o@gmail.com>
To: x-fn-spp@sl.ntt-tx.co.jp, ferruh.yigit@intel.com
Cc: spp@dpdk.org
Subject: Re: [spp] [PATCH] recipes: add rcps for spp_vf
Date: Tue, 10 Sep 2019 14:45:05 +0900	[thread overview]
Message-ID: <d074a7ea-8a42-5840-4b2e-60ee6584c5c8@gmail.com> (raw)
In-Reply-To: <201909100132.x8A1WR2A003033@imss04.silk.ntt-tx.co.jp>

> 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
> 

      reply	other threads:[~2019-09-10  5:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-10  1:32 x-fn-spp
2019-09-10  5:45 ` Yasufumi Ogawa [this message]

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=d074a7ea-8a42-5840-4b2e-60ee6584c5c8@gmail.com \
    --to=yasufum.o@gmail.com \
    --cc=ferruh.yigit@intel.com \
    --cc=spp@dpdk.org \
    --cc=x-fn-spp@sl.ntt-tx.co.jp \
    /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).