From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 6DC8A2C6A for ; Tue, 26 Feb 2019 08:14:49 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Feb 2019 23:14:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,414,1544515200"; d="scan'208";a="302594542" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga005.jf.intel.com with ESMTP; 25 Feb 2019 23:14:48 -0800 Received: from fmsmsx118.amr.corp.intel.com (10.18.116.18) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 25 Feb 2019 23:14:48 -0800 Received: from shsmsx106.ccr.corp.intel.com (10.239.4.159) by fmsmsx118.amr.corp.intel.com (10.18.116.18) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 25 Feb 2019 23:14:47 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.110]) by SHSMSX106.ccr.corp.intel.com ([169.254.10.174]) with mapi id 14.03.0415.000; Tue, 26 Feb 2019 15:14:45 +0800 From: "Tu, Lijuan" To: "Yao, Lei A" , "dts@dpdk.org" CC: "Yao, Lei A" Thread-Topic: [dts] [Patch V1] test_plans: add test plan for exception path sample Thread-Index: AQHUxzDSUPalnTFXcEOIw5CtYJeoEKXxt2ag Date: Tue, 26 Feb 2019 07:14:45 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BA274A4@SHSMSX101.ccr.corp.intel.com> References: <1550483213-68537-1-git-send-email-lei.a.yao@intel.com> In-Reply-To: <1550483213-68537-1-git-send-email-lei.a.yao@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMzAyNGZmY2ItOWIzMC00YWE3LTkzOGEtOWY1ZmQ4NWQ0ZGVhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiaEJEK0JDYU1aNlwvSDJSZG1DYjlOZEpScmdQRDUxVDhKY2JMbWxGT3dFa3lodmRhXC9VelhvQ3REOVFPTnIrTlRxIn0= x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [Patch V1] test_plans: add test plan for exception path sample X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Feb 2019 07:14:50 -0000 Hi Lei, Could you kindly please fix these warning, thanks Applying: test_plans: add test plan for exception path sample .git/rebase-apply/patch:51: trailing whitespace. The Exception Path sample application is a simple example that demonstrates .git/rebase-apply/patch:52: trailing whitespace. the use of the DPDK to set up an exception path for packets to go through .git/rebase-apply/patch:53: trailing whitespace. the Linux* kernel. This is done by using virtual TAP network interfaces. .git/rebase-apply/patch:54: trailing whitespace. These can be read from and written to by the DPDK application and appear .git/rebase-apply/patch:57: trailing whitespace. The application creates two threads for each NIC port being used. One threa= d warning: squelched 13 whitespace errors warning: 18 lines add whitespace errors. > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Lei > Sent: Monday, February 18, 2019 5:47 PM > To: dts@dpdk.org > Cc: Yao, Lei A > Subject: [dts] [Patch V1] test_plans: add test plan for exception path sa= mple >=20 > From: Lei Yao >=20 > This patch will add the test plan for exception path sample. The first pa= tch will > just include the performance test which is based on Ixia > --- > test_plans/exception_path_test_plan.rst | 98 > +++++++++++++++++++++++++++++++++ > 1 file changed, 98 insertions(+) > create mode 100644 test_plans/exception_path_test_plan.rst >=20 > diff --git a/test_plans/exception_path_test_plan.rst > b/test_plans/exception_path_test_plan.rst > new file mode 100644 > index 0000000..d951275 > --- /dev/null > +++ b/test_plans/exception_path_test_plan.rst > @@ -0,0 +1,98 @@ > +.. Copyright (c) <2010-2019>, Intel Corporation > + All rights reserved. > + > + Redistribution and use in source and binary forms, with or without > + modification, are permitted provided that the following conditions > + are met: > + > + - Redistributions of source code must retain the above copyright > + notice, this list of conditions and the following disclaimer. > + > + - Redistributions in binary form must reproduce the above copyright > + notice, this list of conditions and the following disclaimer in > + the documentation and/or other materials provided with the > + distribution. > + > + - Neither the name of Intel Corporation nor the names of its > + contributors may be used to endorse or promote products derived > + from this software without specific prior written permission. > + > + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND > CONTRIBUTORS > + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT > + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS > + FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE > + COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, > INDIRECT, > + INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES > + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS > OR > + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) > + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN > CONTRACT, > + STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) > + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED > + OF THE POSSIBILITY OF SUCH DAMAGE. > + > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D > +DPDK Exception Path Sample Tests > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D > + > +Description > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > + > +The Exception Path sample application is a simple example that > +demonstrates the use of the DPDK to set up an exception path for > +packets to go through the Linux* kernel. This is done by using virtual T= AP > network interfaces. > +These can be read from and written to by the DPDK application and > +appear to the kernel as a standard network interface. > + > +The application creates two threads for each NIC port being used. One > +thread reads from the port and writes the data unmodified to a > +thread-specific TAP interface. The second thread reads from a TAP > +interface and writes the data unmodified to the NIC port. > + > +Prerequisites > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > + > +Two NIC ports and Iixa port are needed for this performance test. > + > + > +Test Case: Exception Path Performance test > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > +1. Bind two NIC ports to DPDK driver, for example > + usertools/dpdk-devbind.py --bind=3Dvfio-pci device_bus_id1 > +device_bus_id2 > + > +2. Test Performance with 2 Cores and 1 NIC port. 1 core is for NIC RX si= de > + and another core is for NIX TX side. For example: > + ./examples/exception_path/build/exception_path -n 4 -c 0x03 -- -p > +0x1 -i 0x01 -o 0x02 > + > +3. Configure the two TAP interface generated by the exception path sampl= e > and > + add bridge for packets routing > + ifconfig tap_dpdk_22 up > + ifconfig tap_dpdk_23 up > + brctl addbr "br_dpdk_00" > + brctl addif br_dpdk_00 tap_dpdk_22 > + brctl addif br_dpdk_00 tap_dpdk_23 > + ifconfig br_dpdk_00 up > + > +4. From packets generator, send broadcast packets to the NIC and check t= he > + throughput > + > +5. Similar to Step2~Step4, Test performance with 4 cores and 2 NIC ports= . > + ./examples/exception_path/build/exception_path -n 4 -c 0x0f -- -p 0x3= -i > 0x03 -o 0x0C > + ifconfig tap_dpdk_22 up > + ifconfig tap_dpdk_23 up > + brctl addbr "br_dpdk_00" > + brctl addif br_dpdk_00 tap_dpdk_22 > + brctl addif br_dpdk_00 tap_dpdk_23 > + ifconfig br_dpdk_00 up > + ifconfig tap_dpdk_24 up > + ifconfig tap_dpdk_25 up > + brctl addbr "br_dpdk_01" > + brctl addif br_dpdk_01 tap_dpdk_24 > + brctl addif br_dpdk_01 tap_dpdk_25 > + ifconfig br_dpdk_01 up > + > +6. From packets generator, send broadcast packets to both 2 NICs then c= heck > the > + aggregated throughput > + > + > + > + > -- > 2.7.4