From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 4E7FEA05D3 for ; Tue, 23 Apr 2019 22:12:49 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 06F3E1B433; Tue, 23 Apr 2019 22:12:49 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 0B3936833 for ; Tue, 23 Apr 2019 22:12:47 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Apr 2019 13:12:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,386,1549958400"; d="scan'208";a="167242238" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga001.fm.intel.com with ESMTP; 23 Apr 2019 13:07:46 -0700 Received: from fmsmsx120.amr.corp.intel.com (10.18.124.208) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 23 Apr 2019 13:07:46 -0700 Received: from shsmsx154.ccr.corp.intel.com (10.239.6.54) by fmsmsx120.amr.corp.intel.com (10.18.124.208) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 23 Apr 2019 13:07:46 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.164]) by SHSMSX154.ccr.corp.intel.com ([169.254.7.149]) with mapi id 14.03.0415.000; Wed, 24 Apr 2019 04:07:44 +0800 From: "Tu, Lijuan" To: "Peng, Yuan" , "dts@dpdk.org" CC: "Peng, Yuan" Thread-Topic: [dts] [PATCH v1] test_plans: Add enable_package_download_in_ice_driver_test_plan.rst Thread-Index: AQHU+MitXKGakLW390uEbnrW1yXSYaZKKgGQ Date: Tue, 23 Apr 2019 20:07:44 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BA657AD@SHSMSX101.ccr.corp.intel.com> References: <1555909527-3803-1-git-send-email-yuan.peng@intel.com> In-Reply-To: <1555909527-3803-1-git-send-email-yuan.peng@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.600.7 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYzVhYjcxMGMtNWI3Mi00Y2E3LTgzMjMtNTZmOTYyY2YzYTljIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiNGZDZ1hiMlBwUEpsRXpXWHNCb3VLVUpmOW1qVGl6WWVTMlwvOVZPb2dhaXVYMmhVbzVPREhnZ0JrMDdOU2ZvWHIifQ== 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 enable_package_download_in_ice_driver_test_plan.rst 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" It's not necessary to use hardware packet generator, IXIA, I think it's fin= e to use scapy instead, it's more easy to get scapy than IXIA for testing g= uys. The package is called DDP package or OS package officially. > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Peng Yuan > Sent: Sunday, April 21, 2019 10:05 PM > To: dts@dpdk.org > Cc: Peng, Yuan > Subject: [dts] [PATCH v1] test_plans: Add > enable_package_download_in_ice_driver_test_plan.rst >=20 > Add enable_package_download_in_ice_driver_test_plan.rst >=20 > Signed-off-by: Peng Yuan >=20 > diff --git a/test_plans/enable_package_download_in_ice_driver_test_plan.r= st > b/test_plans/enable_package_download_in_ice_driver_test_plan.rst > new file mode 100644 > index 0000000..e3a8235 > --- /dev/null > +++ b/test_plans/enable_package_download_in_ice_driver_test_plan.rst > @@ -0,0 +1,142 @@ > +.. Copyright (c) <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=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 > +Flexible pipeline package processing on CPK NIC mode 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=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 > + > +DPDK PMD is able to load flexible pipeline package file, process the > +content then program to NIC. > + > +This is very important feature, all Classification and Qos functions > +depends on this. > + > +This feature set enabled package downloading to the device. The package > +is to be in the /lib/firmware/intel/ice/ddp directory and named ice.pkg. > +The package is shared by the kernel driver and the DPDK PMD. > + > +If package download failed, driver need to go to safe mode. This patch > +set disabled RSS, QINQ, checksum offload in safe mode. > + > +The patch set also enabled RSS for UPD/TCP/SCTP+IPV4/IPV6 packets. [Lijuan] The description should be convert to DPDK 's perspective, but not= a patches' perspective. > + > +Prerequisites > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > + > +1. Hardware:: > + > + Ice 100G*2 [Lijuan] I think any ICE NIC is fine. > + enp216s0f0 <---> IXIA_port_0 > + enp216s0f1 <---> IXIA_port_1 [Lijuan] change to below is more common. DUT_port_0 <---> Tester_port_0 > + > +2. Flash the latest firmware for CVL, and update the driver to the > + corresponding version. > + [Lijuan] I don't think it's necessary to do that, when the E800 series NIC = launched, the released firmware will support it. > +Test case 1: Download the package successfully > +=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=3D=3D=3D=3D > + > +1. Put the ice.pkg to /lib/firmware/intel/ice/ddp/ice.pkg, > + then reboot the server. > + > +2. Start the testpmd:: > + > + ./testpmd -c 0x3fe -n 6 -- -i --nb-cores=3D8 --rxq=3D8 --txq=3D8 \ > + --port-topology=3Dchained > + > + There will be a printing:: > + > + download success > + > +3. Normal forward > + > + Set forward mode:: > + > + testpmd> set mac fwd > + testpmd> start > + > + Send packet from IXIA_port_0, > + IXIA_port_1 can receive the forwarded packets. > + The forward can run normally. > + > +4. The RSS function run normally. > + > + set rxonly mode:: > + > + testpmd> set mac rxonly > + testpmd> start > + > +5. Send UPD/TCP/SCTP+IPV4/IPV6 packets with packet generator > + with continuous ipv4/ipv6 address or TCP/UDP/SCTP ports, > + the packets can be distributed to eight rx queues averagely. > + > +Test case 2: failed to download pkg > +=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. Server power on, then put a new ice.pkg to > + /lib/firmware/intel/ice/ddp/ice.pkg. > + Make sure the new ice.pkg is different with the original one. > + > +2. Start testpmd:: > + > + ./testpmd -c 0x3fe -n 6 -- -i --nb-cores=3D8 --rxq=3D8 --txq=3D8 \ > + --port-topology=3Dchained > + > + There will be an error reported:: > + > + ice_dev_init(): Failed to load default OS package > + > + The driver need to go to safe mode. > + > +3. Normal forward > + > + Set forward mode:: > + > + testpmd> set mac fwd > + testpmd> start > + > + Send packet from IXIA_port_0, > + IXIA_port_1 can receive the forwarded packets. > + The forward can run normally. > + > +4. The RSS function doesn't work. > + > + set rxonly mode:: > + > + testpmd> set mac rxonly > + testpmd> start > + > +5. Send UPD/TCP/SCTP+IPV4/IPV6 packets with packet generator > + with continuous ipv4/ipv6 address or TCP/UDP/SCTP ports, > + the packets can be only distributed to rx queue 0. > -- > 2.14.3