From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6DC13A2EEB for ; Tue, 10 Sep 2019 03:41:05 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0924B1EDA5; Tue, 10 Sep 2019 03:41:05 +0200 (CEST) Received: from mail04.ics.ntt-tx.co.jp (mail05.ics.ntt-tx.co.jp [210.232.35.69]) by dpdk.org (Postfix) with ESMTP id 1011F1ED9C for ; Tue, 10 Sep 2019 03:41:02 +0200 (CEST) Received: from gwchk03.silk.ntt-tx.co.jp (gwchk03.silk.ntt-tx.co.jp [10.107.0.111]) by mail04.ics.ntt-tx.co.jp (unknown) with ESMTP id x8A1f0t4015463; Tue, 10 Sep 2019 10:41:00 +0900 Received: (from root@localhost) by gwchk03.silk.ntt-tx.co.jp (unknown) id x8A1f09B025491; Tue, 10 Sep 2019 10:41:00 +0900 Received: from gwchk.silk.ntt-tx.co.jp [10.107.0.110] by gwchk03.silk.ntt-tx.co.jp with ESMTP id LAA21671; Tue, 10 Sep 2019 10:32:29 +0900 Received: from imss04.silk.ntt-tx.co.jp (localhost [127.0.0.1]) by imss01.silk.ntt-tx.co.jp (unknown) with ESMTP id x8A1WRaZ003036; Tue, 10 Sep 2019 10:32:27 +0900 Received: from mgate01.silk.ntt-tx.co.jp (smtp02.silk.ntt-tx.co.jp [10.107.0.37]) by imss04.silk.ntt-tx.co.jp (unknown) with ESMTP id x8A1WR2A003033; Tue, 10 Sep 2019 10:32:27 +0900 Message-Id: <201909100132.x8A1WR2A003033@imss04.silk.ntt-tx.co.jp> Received: from localhost by mgate01.silk.ntt-tx.co.jp (unknown) id x8A1WSuu023420 ; Tue, 10 Sep 2019 10:32:29 +0900 From: x-fn-spp@sl.ntt-tx.co.jp To: ferruh.yigit@intel.com, yasufum.o@gmail.com Cc: spp@dpdk.org Date: Tue, 10 Sep 2019 10:32:28 +0900 X-Mailer: git-send-email 2.18.0 X-TM-AS-GCONF: 00 Subject: [spp] [PATCH] recipes: add rcps for spp_vf X-BeenThere: spp@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Soft Patch Panel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: spp-bounces@dpdk.org Sender: "spp" From: Hideyuki Yamashita This patch is to provide rcps for specific usecase "Classify ICMP Packets" of spp_vf. Signed-off-by: Hideyuki Yamashita Signed-off-by: Naoki Takada --- .../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