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 7C704A2EEB for ; Tue, 10 Sep 2019 07:45:25 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 652751E8A7; Tue, 10 Sep 2019 07:45:25 +0200 (CEST) Received: from mail-pf1-f196.google.com (mail-pf1-f196.google.com [209.85.210.196]) by dpdk.org (Postfix) with ESMTP id 6D5B51E8A7 for ; Tue, 10 Sep 2019 07:45:24 +0200 (CEST) Received: by mail-pf1-f196.google.com with SMTP id x127so10855906pfb.7 for ; Mon, 09 Sep 2019 22:45:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=ZpbS4F0k0WtYqgg9DowBWgX7bSvadNUyYw715cIhjyI=; b=WYmVt2dhTH2Xg6EXcBQx85GUC7cSQmX3VHuzwqFS7pf/23scPPd3YzxkEbDH9e3S90 sI8CtZDAden046/qZNKlRf/3WhPiMvicqr/B096JIvpThfnyt4/RroqLSN+PLAC9EPnU yZC7uTcen7S8/0jev1JWFX1vdNJv0tkPvCn//Rk2to5DiuAE/i+u/7X7pLybrAA0FbnG AsaoAC4EXe7pyESPPDRtZvSzYWF1ROF9nDnpROnwSbZX0fgiAxQwi/XwyNz6Qh0ofmC9 IsqNTmyH/QK2Da1zhApyy9TcBONfOe+9Eg9SjRnIwQTaAFrpZzBNuwy+iEtvFgJBkbLu soJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ZpbS4F0k0WtYqgg9DowBWgX7bSvadNUyYw715cIhjyI=; b=OgixHAD28y2/p73n+8YtGMT2FZp575d96aW3UqRkGJRTbw7AmawdTNkWNiwPlKmm2P WvKy3oZgzDE92pzZhqMzA5w9BdG3ajc83jhze0ZL/IlRHPnK0LEyOhvW9eBAkMt9gwIV 4eG9QyselQ88+IrlarMazDUhes+6nRjzepa02Kyi1bcIFz6lh+cIWaIP7hTSoxH3PP0W B70XS8Vsw5tG1HFAt+cFfgSOVM5RY4oTFcIJPyGscrZI0tdhxHvYfEw+mC5BWhaeA4e3 eo7in/l/ooJS3DPpfgZ1Eu03vYNt/EC0bNmERBHzUInWFUPvsK5s4St7+25447Eavdwq OniQ== X-Gm-Message-State: APjAAAXSJr0RaomAm8pEw7knQVLQzY1ekOKWHQ5AceK9Dru97S+PaqAH V+5t1VqCke9M59Loo+ZRGNo8khHI X-Google-Smtp-Source: APXvYqzA8Q8xIgOxnLtDOI3EWdjDA/SMIXp+OM0B2BXz9SnagOjbpYdNCol62e5lZfv+n+aAEBqGfw== X-Received: by 2002:a62:db42:: with SMTP id f63mr33897620pfg.225.1568094323524; Mon, 09 Sep 2019 22:45:23 -0700 (PDT) Received: from mugwort.local ([192.47.164.146]) by smtp.gmail.com with ESMTPSA id s2sm1081358pjq.0.2019.09.09.22.45.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Sep 2019 22:45:22 -0700 (PDT) To: x-fn-spp@sl.ntt-tx.co.jp, ferruh.yigit@intel.com Cc: spp@dpdk.org References: <201909050214.x852EDEA009592@imss04.silk.ntt-tx.co.jp> <201909100135.x8A1ZAQx003562@imss03.silk.ntt-tx.co.jp> From: Yasufumi Ogawa Message-ID: <29fc84dd-f768-80de-78f9-3f6357432640@gmail.com> Date: Tue, 10 Sep 2019 14:45:20 +0900 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <201909100135.x8A1ZAQx003562@imss03.silk.ntt-tx.co.jp> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [spp] [PATCH v2] recipes: update rcps for spp_nfv 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 update rcps for the following usecases of spp_nfv. > - Single spp_nfv > - Dual spp_nfv > - Dual spp_nfv with Ring PMD > - Single spp_nfv with PCAP PMD > > Note that directory structrure is also changed to match with > the document structure of "Use cases" > chapter of the latest SPP document. > > Signed-off-by: Hideyuki Yamashita > Signed-off-by: Naoki Takada Applied, thaks. > --- > .../l2fwd/1_dual_bidir.rcps} | 6 +++++- > recipes/usecases/spp_nfv/dual/l2fwd/2_clean.rcps | 7 +++++++ > .../loopback/1_dual_loopback.rcps} | 6 +++++- > recipes/usecases/spp_nfv/dual/loopback/2_clean.rcps | 7 +++++++ > .../bi_directional_l2fwd/1_ring_dual_bidir.rcps} | 9 ++++++++- > .../bi_directional_l2fwd/2_clean.rcps | 13 +++++++++++++ > .../spp_nfv/dual_with_ring/ring_pmd/1_add_ring.rcps | 3 +++ > .../spp_nfv/dual_with_ring/ring_pmd/2_del_ring.rcps | 3 +++ > .../uni_directional_l2fwd/1_ring_dual_unidir.rcps} | 8 +++++++- > .../uni_directional_l2fwd/2_clean.rcps | 11 +++++++++++ > .../l2fwd/1_single_bidir.rcps} | 5 ++++- > recipes/usecases/spp_nfv/single/l2fwd/2_clean.rcps | 5 +++++ > .../loopback/1_single_loopback.rcps} | 5 ++++- > .../usecases/spp_nfv/single/loopback/2_clean.rcps | 5 +++++ > .../single_with_pcap/incoming/1_add_pcap.rcps | 5 +++++ > .../incoming/2_capture_incoming.rcps | 6 ++++++ > .../spp_nfv/single_with_pcap/incoming/3_clean.rcps | 8 ++++++++ > .../single_with_pcap/outgoing/1_add_pcap.rcps | 5 +++++ > .../single_with_pcap/outgoing/2_restore_dumped.rcps | 6 ++++++ > .../spp_nfv/single_with_pcap/outgoing/3_clean.rcps | 8 ++++++++ > recipes/usecases/spp_nfv/vhost_unidir.rcps | 5 ----- > 21 files changed, 125 insertions(+), 11 deletions(-) > rename recipes/usecases/spp_nfv/{dual_bidir.rcps => dual/l2fwd/1_dual_bidir.rcps} (53%) > create mode 100644 recipes/usecases/spp_nfv/dual/l2fwd/2_clean.rcps > rename recipes/usecases/spp_nfv/{dual_loopback.rcps => dual/loopback/1_dual_loopback.rcps} (52%) > create mode 100644 recipes/usecases/spp_nfv/dual/loopback/2_clean.rcps > rename recipes/usecases/spp_nfv/{ring_dual_bidir.rcps => dual_with_ring/bi_directional_l2fwd/1_ring_dual_bidir.rcps} (61%) > create mode 100644 recipes/usecases/spp_nfv/dual_with_ring/bi_directional_l2fwd/2_clean.rcps > create mode 100644 recipes/usecases/spp_nfv/dual_with_ring/ring_pmd/1_add_ring.rcps > create mode 100644 recipes/usecases/spp_nfv/dual_with_ring/ring_pmd/2_del_ring.rcps > rename recipes/usecases/spp_nfv/{ring_dual_unidir.rcps => dual_with_ring/uni_directional_l2fwd/1_ring_dual_unidir.rcps} (54%) > create mode 100644 recipes/usecases/spp_nfv/dual_with_ring/uni_directional_l2fwd/2_clean.rcps > rename recipes/usecases/spp_nfv/{single_bidir.rcps => single/l2fwd/1_single_bidir.rcps} (54%) > create mode 100644 recipes/usecases/spp_nfv/single/l2fwd/2_clean.rcps > rename recipes/usecases/spp_nfv/{single_loopback.rcps => single/loopback/1_single_loopback.rcps} (52%) > create mode 100644 recipes/usecases/spp_nfv/single/loopback/2_clean.rcps > create mode 100644 recipes/usecases/spp_nfv/single_with_pcap/incoming/1_add_pcap.rcps > create mode 100644 recipes/usecases/spp_nfv/single_with_pcap/incoming/2_capture_incoming.rcps > create mode 100644 recipes/usecases/spp_nfv/single_with_pcap/incoming/3_clean.rcps > create mode 100644 recipes/usecases/spp_nfv/single_with_pcap/outgoing/1_add_pcap.rcps > create mode 100644 recipes/usecases/spp_nfv/single_with_pcap/outgoing/2_restore_dumped.rcps > create mode 100644 recipes/usecases/spp_nfv/single_with_pcap/outgoing/3_clean.rcps > delete mode 100644 recipes/usecases/spp_nfv/vhost_unidir.rcps > > diff --git a/recipes/usecases/spp_nfv/dual_bidir.rcps b/recipes/usecases/spp_nfv/dual/l2fwd/1_dual_bidir.rcps > similarity index 53% > rename from recipes/usecases/spp_nfv/dual_bidir.rcps > rename to recipes/usecases/spp_nfv/dual/l2fwd/1_dual_bidir.rcps > index ae60beb..cf8827e 100644 > --- a/recipes/usecases/spp_nfv/dual_bidir.rcps > +++ b/recipes/usecases/spp_nfv/dual/l2fwd/1_dual_bidir.rcps > @@ -1,5 +1,9 @@ > -# Configure Two spp_nfv as L2fwd > +# Configure as L2fwd > nfv 1; patch phy:0 phy:1 > nfv 2; patch phy:1 phy:0 > + > +# Start forwarding > nfv 1; forward > nfv 2; forward > +nfv 1; status > +nfv 2; status > diff --git a/recipes/usecases/spp_nfv/dual/l2fwd/2_clean.rcps b/recipes/usecases/spp_nfv/dual/l2fwd/2_clean.rcps > new file mode 100644 > index 0000000..29fbe7b > --- /dev/null > +++ b/recipes/usecases/spp_nfv/dual/l2fwd/2_clean.rcps > @@ -0,0 +1,7 @@ > +# Stop forwarding > +nfv 1; stop > +nfv 2; stop > + > +# Clear all of patches > +nfv 1; patch reset > +nfv 2; patch reset > diff --git a/recipes/usecases/spp_nfv/dual_loopback.rcps b/recipes/usecases/spp_nfv/dual/loopback/1_dual_loopback.rcps > similarity index 52% > rename from recipes/usecases/spp_nfv/dual_loopback.rcps > rename to recipes/usecases/spp_nfv/dual/loopback/1_dual_loopback.rcps > index 5b00de7..b365d1c 100644 > --- a/recipes/usecases/spp_nfv/dual_loopback.rcps > +++ b/recipes/usecases/spp_nfv/dual/loopback/1_dual_loopback.rcps > @@ -1,5 +1,9 @@ > -#Configure two spp_nfv for Loopback > +# Configure as Loopback > nfv 1; patch phy:0 phy:0 > nfv 2; patch phy:1 phy:1 > + > +# Start forwarding > nfv 1; forward > nfv 2; forward > +nfv 1; status > +nfv 2; status > diff --git a/recipes/usecases/spp_nfv/dual/loopback/2_clean.rcps b/recipes/usecases/spp_nfv/dual/loopback/2_clean.rcps > new file mode 100644 > index 0000000..29fbe7b > --- /dev/null > +++ b/recipes/usecases/spp_nfv/dual/loopback/2_clean.rcps > @@ -0,0 +1,7 @@ > +# Stop forwarding > +nfv 1; stop > +nfv 2; stop > + > +# Clear all of patches > +nfv 1; patch reset > +nfv 2; patch reset > diff --git a/recipes/usecases/spp_nfv/ring_dual_bidir.rcps b/recipes/usecases/spp_nfv/dual_with_ring/bi_directional_l2fwd/1_ring_dual_bidir.rcps > similarity index 61% > rename from recipes/usecases/spp_nfv/ring_dual_bidir.rcps > rename to recipes/usecases/spp_nfv/dual_with_ring/bi_directional_l2fwd/1_ring_dual_bidir.rcps > index 2fff7b3..6843d60 100644 > --- a/recipes/usecases/spp_nfv/ring_dual_bidir.rcps > +++ b/recipes/usecases/spp_nfv/dual_with_ring/bi_directional_l2fwd/1_ring_dual_bidir.rcps > @@ -1,12 +1,19 @@ > -# Bi-directional with two rings > +# Add rings to nfv 1 > nfv 1; add ring:0 > nfv 1; add ring:1 > + > +# Add rings to nfv 2 > nfv 2; add ring:0 > nfv 2; add ring:1 > > +# Configure as Bi-Directional L2fwd > nfv 1; patch phy:0 ring:0 > nfv 1; patch ring:1 phy:0 > nfv 2; patch phy:1 ring:1 > nfv 2; patch ring:0 phy:1 > + > +# Start forwarding > nfv 1; forward > nfv 2; forward > +nfv 1; status > +nfv 2; status > diff --git a/recipes/usecases/spp_nfv/dual_with_ring/bi_directional_l2fwd/2_clean.rcps b/recipes/usecases/spp_nfv/dual_with_ring/bi_directional_l2fwd/2_clean.rcps > new file mode 100644 > index 0000000..7f58e32 > --- /dev/null > +++ b/recipes/usecases/spp_nfv/dual_with_ring/bi_directional_l2fwd/2_clean.rcps > @@ -0,0 +1,13 @@ > +# Stop forwarding > +nfv 1; stop > +nfv 2; stop > + > +# Clear all of patches > +nfv 1; patch reset > +nfv 2; patch reset > + > +# Delete all rings > +nfv 1; del ring:0 > +nfv 1; del ring:1 > +nfv 2; del ring:0 > +nfv 2; del ring:1 > diff --git a/recipes/usecases/spp_nfv/dual_with_ring/ring_pmd/1_add_ring.rcps b/recipes/usecases/spp_nfv/dual_with_ring/ring_pmd/1_add_ring.rcps > new file mode 100644 > index 0000000..bc31726 > --- /dev/null > +++ b/recipes/usecases/spp_nfv/dual_with_ring/ring_pmd/1_add_ring.rcps > @@ -0,0 +1,3 @@ > +# Add ring > +nfv 1; add ring:0 > +nfv 1; status > diff --git a/recipes/usecases/spp_nfv/dual_with_ring/ring_pmd/2_del_ring.rcps b/recipes/usecases/spp_nfv/dual_with_ring/ring_pmd/2_del_ring.rcps > new file mode 100644 > index 0000000..cc5b479 > --- /dev/null > +++ b/recipes/usecases/spp_nfv/dual_with_ring/ring_pmd/2_del_ring.rcps > @@ -0,0 +1,3 @@ > +# Delete ring > +nfv 1; del ring:0 > +nfv 1; status > diff --git a/recipes/usecases/spp_nfv/ring_dual_unidir.rcps b/recipes/usecases/spp_nfv/dual_with_ring/uni_directional_l2fwd/1_ring_dual_unidir.rcps > similarity index 54% > rename from recipes/usecases/spp_nfv/ring_dual_unidir.rcps > rename to recipes/usecases/spp_nfv/dual_with_ring/uni_directional_l2fwd/1_ring_dual_unidir.rcps > index a9fd883..e7d1b83 100644 > --- a/recipes/usecases/spp_nfv/ring_dual_unidir.rcps > +++ b/recipes/usecases/spp_nfv/dual_with_ring/uni_directional_l2fwd/1_ring_dual_unidir.rcps > @@ -1,7 +1,13 @@ > -# Uni-Directional L2fwd with ring > +# Add rings > nfv 1; add ring:0 > nfv 2; add ring:0 > + > +# Configure as Uni-Directional L2fwd > nfv 1; patch phy:0 ring:0 > nfv 2; patch ring:0 phy:1 > + > +# Start forwarding > nfv 1; forward > nfv 2; forward > +nfv 1; status > +nfv 2; status > diff --git a/recipes/usecases/spp_nfv/dual_with_ring/uni_directional_l2fwd/2_clean.rcps b/recipes/usecases/spp_nfv/dual_with_ring/uni_directional_l2fwd/2_clean.rcps > new file mode 100644 > index 0000000..551eacb > --- /dev/null > +++ b/recipes/usecases/spp_nfv/dual_with_ring/uni_directional_l2fwd/2_clean.rcps > @@ -0,0 +1,11 @@ > +# Stop forwarding > +nfv 1; stop > +nfv 2; stop > + > +# Clear all of patches > +nfv 1; patch reset > +nfv 2; patch reset > + > +# Delete rings > +nfv 1; del ring:0 > +nfv 2; del ring:0 > diff --git a/recipes/usecases/spp_nfv/single_bidir.rcps b/recipes/usecases/spp_nfv/single/l2fwd/1_single_bidir.rcps > similarity index 54% > rename from recipes/usecases/spp_nfv/single_bidir.rcps > rename to recipes/usecases/spp_nfv/single/l2fwd/1_single_bidir.rcps > index 22905a7..c35da98 100644 > --- a/recipes/usecases/spp_nfv/single_bidir.rcps > +++ b/recipes/usecases/spp_nfv/single/l2fwd/1_single_bidir.rcps > @@ -1,4 +1,7 @@ > -# Configure spp_nfv as L2fwd > +# Configure as L2fwd > nfv 1; patch phy:0 phy:1 > nfv 1; patch phy:1 phy:0 > + > +# Start forwarding > nfv 1; forward > +nfv 1; status > diff --git a/recipes/usecases/spp_nfv/single/l2fwd/2_clean.rcps b/recipes/usecases/spp_nfv/single/l2fwd/2_clean.rcps > new file mode 100644 > index 0000000..674d5bf > --- /dev/null > +++ b/recipes/usecases/spp_nfv/single/l2fwd/2_clean.rcps > @@ -0,0 +1,5 @@ > +# Stop forwarding > +nfv 1; stop > + > +# Clear patch > +nfv 1; patch reset > diff --git a/recipes/usecases/spp_nfv/single_loopback.rcps b/recipes/usecases/spp_nfv/single/loopback/1_single_loopback.rcps > similarity index 52% > rename from recipes/usecases/spp_nfv/single_loopback.rcps > rename to recipes/usecases/spp_nfv/single/loopback/1_single_loopback.rcps > index 7c70b23..3750f4d 100644 > --- a/recipes/usecases/spp_nfv/single_loopback.rcps > +++ b/recipes/usecases/spp_nfv/single/loopback/1_single_loopback.rcps > @@ -1,4 +1,7 @@ > -# Configure spp_nfv for Loopback > +# Configure as Loopback > nfv 1; patch phy:0 phy:0 > nfv 1; patch phy:1 phy:1 > + > +# Start forwarding > nfv 1; forward > +nfv 1; status > diff --git a/recipes/usecases/spp_nfv/single/loopback/2_clean.rcps b/recipes/usecases/spp_nfv/single/loopback/2_clean.rcps > new file mode 100644 > index 0000000..674d5bf > --- /dev/null > +++ b/recipes/usecases/spp_nfv/single/loopback/2_clean.rcps > @@ -0,0 +1,5 @@ > +# Stop forwarding > +nfv 1; stop > + > +# Clear patch > +nfv 1; patch reset > diff --git a/recipes/usecases/spp_nfv/single_with_pcap/incoming/1_add_pcap.rcps b/recipes/usecases/spp_nfv/single_with_pcap/incoming/1_add_pcap.rcps > new file mode 100644 > index 0000000..1975313 > --- /dev/null > +++ b/recipes/usecases/spp_nfv/single_with_pcap/incoming/1_add_pcap.rcps > @@ -0,0 +1,5 @@ > +# Add pcap > +nfv 1; add pcap:1 > + > +# check pcap file > +ls /tmp > diff --git a/recipes/usecases/spp_nfv/single_with_pcap/incoming/2_capture_incoming.rcps b/recipes/usecases/spp_nfv/single_with_pcap/incoming/2_capture_incoming.rcps > new file mode 100644 > index 0000000..0bf8f24 > --- /dev/null > +++ b/recipes/usecases/spp_nfv/single_with_pcap/incoming/2_capture_incoming.rcps > @@ -0,0 +1,6 @@ > +# Capture incoming packets from phy:0 > +nfv 1; patch phy:0 pcap:1 > + > +# Start forwarding > +nfv 1; forward > +nfv 1; status > diff --git a/recipes/usecases/spp_nfv/single_with_pcap/incoming/3_clean.rcps b/recipes/usecases/spp_nfv/single_with_pcap/incoming/3_clean.rcps > new file mode 100644 > index 0000000..f39c904 > --- /dev/null > +++ b/recipes/usecases/spp_nfv/single_with_pcap/incoming/3_clean.rcps > @@ -0,0 +1,8 @@ > +# Stop forwarding > +nfv 1; stop > + > +# Clear patch > +nfv 1; patch reset > + > +# Delete pcap > +nfv 1; del pcap:1 > diff --git a/recipes/usecases/spp_nfv/single_with_pcap/outgoing/1_add_pcap.rcps b/recipes/usecases/spp_nfv/single_with_pcap/outgoing/1_add_pcap.rcps > new file mode 100644 > index 0000000..0aea0f8 > --- /dev/null > +++ b/recipes/usecases/spp_nfv/single_with_pcap/outgoing/1_add_pcap.rcps > @@ -0,0 +1,5 @@ > +# Add pcap > +nfv 2; add pcap:2 > + > +# check pcap file > +ls /tmp > diff --git a/recipes/usecases/spp_nfv/single_with_pcap/outgoing/2_restore_dumped.rcps b/recipes/usecases/spp_nfv/single_with_pcap/outgoing/2_restore_dumped.rcps > new file mode 100644 > index 0000000..d5eb775 > --- /dev/null > +++ b/recipes/usecases/spp_nfv/single_with_pcap/outgoing/2_restore_dumped.rcps > @@ -0,0 +1,6 @@ > +# Restore packets > +nfv 2; patch pcap:2 phy:1 > + > +# Start forwarding > +nfv 2; forward > +nfv 2; status > diff --git a/recipes/usecases/spp_nfv/single_with_pcap/outgoing/3_clean.rcps b/recipes/usecases/spp_nfv/single_with_pcap/outgoing/3_clean.rcps > new file mode 100644 > index 0000000..abecf9f > --- /dev/null > +++ b/recipes/usecases/spp_nfv/single_with_pcap/outgoing/3_clean.rcps > @@ -0,0 +1,8 @@ > +# Stop forwarding > +nfv 2; stop > + > +# Clear patch > +nfv 2; patch reset > + > +# Delete pcap > +nfv 2; del pcap:2 > diff --git a/recipes/usecases/spp_nfv/vhost_unidir.rcps b/recipes/usecases/spp_nfv/vhost_unidir.rcps > deleted file mode 100644 > index eaca4e9..0000000 > --- a/recipes/usecases/spp_nfv/vhost_unidir.rcps > +++ /dev/null > @@ -1,5 +0,0 @@ > -# Single spp_nfv with Vhost PMD > -nfv 1; add vhost:0 > -nfv 1; patch phy:0 vhost:0 > -nfv 1; patch vhost:1 phy:1 > -nfv 1; forward >