From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mogw0433.ocn.ad.jp (mogw0433.ocn.ad.jp [118.23.109.15]) by dpdk.org (Postfix) with ESMTP id 80B4E2BE5 for ; Mon, 5 Feb 2018 03:46:32 +0100 (CET) Received: from mf-smf-ucb010.ocn.ad.jp (mf-smf-ucb010.ocn.ad.jp [153.149.227.70]) by mogw0433.ocn.ad.jp (Postfix) with ESMTP id E834C4029D; Mon, 5 Feb 2018 11:46:30 +0900 (JST) Received: from mf-smf-ucb010.ocn.ad.jp (mf-smf-ucb010 [153.149.227.70]) by mf-smf-ucb010.ocn.ad.jp (Postfix) with ESMTP id B2AB61206F8; Mon, 5 Feb 2018 11:46:30 +0900 (JST) Received: from ntt.pod01.mv-mta-ucb026 (mv-mta-ucb026.ocn.ad.jp [153.149.142.100]) by mf-smf-ucb010.ocn.ad.jp (Switch-3.3.4/Switch-3.3.4) with ESMTP id w152kU3Q023510; Mon, 5 Feb 2018 11:46:30 +0900 Received: from smtp.ocn.ne.jp ([153.149.227.135]) by ntt.pod01.mv-mta-ucb026 with id 6qmV1x00B2vuoep01qmVCw; Mon, 05 Feb 2018 02:46:30 +0000 Received: from localhost.localdomain (sp49-97-109-142.msc.spmode.ne.jp [49.97.109.142]) by smtp.ocn.ne.jp (Postfix) with ESMTPA; Mon, 5 Feb 2018 11:46:29 +0900 (JST) From: ogawa.yasufumi@lab.ntt.co.jp To: ferruh.yigit@intel.com, spp@dpdk.org, nakamura.hiroyuki@po.ntt-tx.co.jp Cc: Yasufumi Ogawa Date: Mon, 5 Feb 2018 11:47:04 +0900 Message-Id: <20180205024704.8273-1-ogawa.yasufumi@lab.ntt.co.jp> X-Mailer: git-send-email 2.13.1 Subject: [spp] [PATCH 26/28] docs/samples: add configs for spp_vf command 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: Mon, 05 Feb 2018 02:46:34 -0000 From: Yasufumi Ogawa Add samples for SPP VF to configure network of 'usecase1' explained in 'Use Case' section in the documentation. Signed-off-by: Yasufumi Ogawa --- .../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