From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mogw0425.ocn.ad.jp (mogw0425.ocn.ad.jp [118.23.109.53]) by dpdk.org (Postfix) with ESMTP id 66A4C1D953 for ; Wed, 13 Jun 2018 04:45:04 +0200 (CEST) Received: from mf-smf-ucb029c1 (mf-smf-ucb029c1.ocn.ad.jp [153.153.66.194]) by mogw0425.ocn.ad.jp (Postfix) with ESMTP id 049AC982E1; Wed, 13 Jun 2018 11:45:03 +0900 (JST) Received: from ntt.pod01.mv-mta-ucb027 ([153.149.142.101]) by mf-smf-ucb029c1 with ESMTP id SvmOfJjMv2m6zSvmQfZmGF; Wed, 13 Jun 2018 11:45:02 +0900 Received: from smtp.ocn.ne.jp ([153.149.227.134]) by ntt.pod01.mv-mta-ucb027 with id y2l21x0052ud8JZ012l2oB; Wed, 13 Jun 2018 02:45:02 +0000 Received: from localhost.localdomain (p5164-ipngn8501marunouchi.tokyo.ocn.ne.jp [153.214.228.164]) by smtp.ocn.ne.jp (Postfix) with ESMTPA; Wed, 13 Jun 2018 11:45:02 +0900 (JST) From: ogawa.yasufumi@lab.ntt.co.jp To: ferruh.yigit@intel.com, spp@dpdk.org Cc: Yasufumi Ogawa Date: Wed, 13 Jun 2018 11:44:57 +0900 Message-Id: <20180613024459.31031-2-ogawa.yasufumi@lab.ntt.co.jp> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180613024459.31031-1-ogawa.yasufumi@lab.ntt.co.jp> References: <20180613024459.31031-1-ogawa.yasufumi@lab.ntt.co.jp> Subject: [spp] [PATCH 1/3] recipes: add recipes directory 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: , X-List-Received-Date: Wed, 13 Jun 2018 02:45:05 -0000 From: Yasufumi Ogawa This patch is to introduce recipes. Recipe is a set of instruction to configure SPP network. This configuration is a set of SPP command actually. Recipe is loaded with 'playback' command to restore the network configuration. This is an example. spp > playback recipes/spp/1nfv_bi.config Some of recipes are already included in docs/, but moved to recipes/ by this update. Signed-off-by: Yasufumi Ogawa --- .../spp/1nfv_1vm_bi.config | 0 .../spp/1nfv_1vm_uni.config | 0 .../command => recipes}/spp/1nfv_bi.config | 0 .../spp/2nfv_1ring_uni.config | 0 .../spp/2nfv_1vm_bi.config | 0 .../command => recipes}/spp/2nfv_bi.config | 0 .../usecase1/1-start_components_path1.config | 0 .../spp_vf/usecase1/2-add_ports_path1.config | 0 .../spp_vf/usecase1/3-reg_mac_path1.config | 0 .../usecase1/4-start_components_path2.config | 0 .../spp_vf/usecase1/5-add_ports_path2.config | 0 .../spp_vf/usecase1/6-reg_mac_path2.config | 0 recipes/sppc/l2fwd.config | 22 ++++++++++++++ recipes/sppc/load_balancer.config | 30 +++++++++++++++++++ 14 files changed, 52 insertions(+) rename {docs/samples/command => recipes}/spp/1nfv_1vm_bi.config (100%) rename {docs/samples/command => recipes}/spp/1nfv_1vm_uni.config (100%) rename {docs/samples/command => recipes}/spp/1nfv_bi.config (100%) rename {docs/samples/command => recipes}/spp/2nfv_1ring_uni.config (100%) rename {docs/samples/command => recipes}/spp/2nfv_1vm_bi.config (100%) rename {docs/samples/command => recipes}/spp/2nfv_bi.config (100%) rename {docs/samples/command => recipes}/spp_vf/usecase1/1-start_components_path1.config (100%) rename {docs/samples/command => recipes}/spp_vf/usecase1/2-add_ports_path1.config (100%) rename {docs/samples/command => recipes}/spp_vf/usecase1/3-reg_mac_path1.config (100%) rename {docs/samples/command => recipes}/spp_vf/usecase1/4-start_components_path2.config (100%) rename {docs/samples/command => recipes}/spp_vf/usecase1/5-add_ports_path2.config (100%) rename {docs/samples/command => recipes}/spp_vf/usecase1/6-reg_mac_path2.config (100%) create mode 100644 recipes/sppc/l2fwd.config create mode 100644 recipes/sppc/load_balancer.config diff --git a/docs/samples/command/spp/1nfv_1vm_bi.config b/recipes/spp/1nfv_1vm_bi.config similarity index 100% rename from docs/samples/command/spp/1nfv_1vm_bi.config rename to recipes/spp/1nfv_1vm_bi.config diff --git a/docs/samples/command/spp/1nfv_1vm_uni.config b/recipes/spp/1nfv_1vm_uni.config similarity index 100% rename from docs/samples/command/spp/1nfv_1vm_uni.config rename to recipes/spp/1nfv_1vm_uni.config diff --git a/docs/samples/command/spp/1nfv_bi.config b/recipes/spp/1nfv_bi.config similarity index 100% rename from docs/samples/command/spp/1nfv_bi.config rename to recipes/spp/1nfv_bi.config diff --git a/docs/samples/command/spp/2nfv_1ring_uni.config b/recipes/spp/2nfv_1ring_uni.config similarity index 100% rename from docs/samples/command/spp/2nfv_1ring_uni.config rename to recipes/spp/2nfv_1ring_uni.config diff --git a/docs/samples/command/spp/2nfv_1vm_bi.config b/recipes/spp/2nfv_1vm_bi.config similarity index 100% rename from docs/samples/command/spp/2nfv_1vm_bi.config rename to recipes/spp/2nfv_1vm_bi.config diff --git a/docs/samples/command/spp/2nfv_bi.config b/recipes/spp/2nfv_bi.config similarity index 100% rename from docs/samples/command/spp/2nfv_bi.config rename to recipes/spp/2nfv_bi.config diff --git a/docs/samples/command/spp_vf/usecase1/1-start_components_path1.config b/recipes/spp_vf/usecase1/1-start_components_path1.config similarity index 100% rename from docs/samples/command/spp_vf/usecase1/1-start_components_path1.config rename to recipes/spp_vf/usecase1/1-start_components_path1.config diff --git a/docs/samples/command/spp_vf/usecase1/2-add_ports_path1.config b/recipes/spp_vf/usecase1/2-add_ports_path1.config similarity index 100% rename from docs/samples/command/spp_vf/usecase1/2-add_ports_path1.config rename to recipes/spp_vf/usecase1/2-add_ports_path1.config diff --git a/docs/samples/command/spp_vf/usecase1/3-reg_mac_path1.config b/recipes/spp_vf/usecase1/3-reg_mac_path1.config similarity index 100% rename from docs/samples/command/spp_vf/usecase1/3-reg_mac_path1.config rename to recipes/spp_vf/usecase1/3-reg_mac_path1.config diff --git a/docs/samples/command/spp_vf/usecase1/4-start_components_path2.config b/recipes/spp_vf/usecase1/4-start_components_path2.config similarity index 100% rename from docs/samples/command/spp_vf/usecase1/4-start_components_path2.config rename to recipes/spp_vf/usecase1/4-start_components_path2.config diff --git a/docs/samples/command/spp_vf/usecase1/5-add_ports_path2.config b/recipes/spp_vf/usecase1/5-add_ports_path2.config similarity index 100% rename from docs/samples/command/spp_vf/usecase1/5-add_ports_path2.config rename to recipes/spp_vf/usecase1/5-add_ports_path2.config diff --git a/docs/samples/command/spp_vf/usecase1/6-reg_mac_path2.config b/recipes/spp_vf/usecase1/6-reg_mac_path2.config similarity index 100% rename from docs/samples/command/spp_vf/usecase1/6-reg_mac_path2.config rename to recipes/spp_vf/usecase1/6-reg_mac_path2.config diff --git a/recipes/sppc/l2fwd.config b/recipes/sppc/l2fwd.config new file mode 100644 index 0000000..bb434ff --- /dev/null +++ b/recipes/sppc/l2fwd.config @@ -0,0 +1,22 @@ +sec 1;add vhost 1 +sec 2;add vhost 2 +sec 3;add vhost 3 +sec 4;add vhost 4 + +sec 1;add ring 1 +sec 2;add ring 0 +sec 3;add ring 0 +sec 4;add ring 1 + +topo_subgraph add c1 vhost:1;vhost:2 +topo_subgraph add c2 vhost:3;vhost:4 + +sec 1;patch ring:1 vhost:1 +sec 2;patch vhost:2 ring:0 +sec 3;patch ring:0 vhost:3 +sec 4;patch vhost:4 ring:1 + +sec 1;forward +sec 2;forward +sec 3;forward +sec 4;forward diff --git a/recipes/sppc/load_balancer.config b/recipes/sppc/load_balancer.config new file mode 100644 index 0000000..3e4b24f --- /dev/null +++ b/recipes/sppc/load_balancer.config @@ -0,0 +1,30 @@ +sec 1;add vhost 1 +sec 2;add vhost 2 +sec 3;add vhost 3 +sec 4;add vhost 4 +sec 5;add vhost 5 +sec 6;add vhost 6 + +sec 1;add ring 0 +sec 2;add ring 1 +sec 3;add ring 2 +sec 4;add ring 0 +sec 5;add ring 1 +sec 6;add ring 2 + +topo_subgraph add c1 vhost:1,vhost:2,vhost:3 +topo_subgraph add c2 vhost:4,vhost:5,vhost:6 + +sec 1;patch vhost:1 ring:0 +sec 2;patch ring:1 vhost:2 +sec 3;patch ring:2 vhost:3 +sec 4;patch ring:0 vhost:4 +sec 5;patch vhost:5 ring:1 +sec 6;patch vhost:6 ring:2 + +sec 1;forward +sec 2;forward +sec 3;forward +sec 4;forward +sec 5;forward +sec 6;forward -- 2.17.1