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 18055A04EF; Mon, 1 Jun 2020 05:26:13 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0885A1D410; Mon, 1 Jun 2020 05:26:13 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 7A2D21D40D for ; Mon, 1 Jun 2020 05:26:11 +0200 (CEST) IronPort-SDR: clgVEZFtZPR9VsBqYUBG7uASVP3IhP+3u0XpjkzBjA9OV79sx3hvbeRoZT2dxDeBypIXgmf0ho S9PGnRgkuAvw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2020 20:26:10 -0700 IronPort-SDR: SkKps4YXRymfd6HQhsZgW3nXsXCHBTDXVgH7yM04Vw6RdgLOqTroQ+/LXxnvuuPZORa8g4DqDr 3ZE8pP1AukMA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,459,1583222400"; d="scan'208";a="257122335" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga007.jf.intel.com with ESMTP; 31 May 2020 20:26:10 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 31 May 2020 20:26:10 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.85]) by shsmsx102.ccr.corp.intel.com ([169.254.2.36]) with mapi id 14.03.0439.000; Mon, 1 Jun 2020 11:26:06 +0800 From: "Tu, Lijuan" To: "He, Zhiwei" , "dts@dpdk.org" CC: "He, Zhiwei" Thread-Topic: [dts] [PATCH] test_plans:iavf_package_driver_error_handle_test_plan.rst Thread-Index: AQHWN0xitAfdOD0IqUeCXqovoPB7CqjDGiew Date: Mon, 1 Jun 2020 03:26:06 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC567BA@SHSMSX101.ccr.corp.intel.com> References: <1590929665-4059-1-git-send-email-zhiwei.he@intel.com> In-Reply-To: <1590929665-4059-1-git-send-email-zhiwei.he@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.2.0.6 dlp-reaction: no-action 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] test_plans:iavf_package_driver_error_handle_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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of zhiwei.he > Sent: Sunday, May 31, 2020 8:54 PM > To: dts@dpdk.org > Cc: He, Zhiwei > Subject: [dts] [PATCH] > test_plans:iavf_package_driver_error_handle_test_plan.rst >=20 > From: "zhiwei.he" >=20 > Signed-off-by: zhiwei.he > --- > .../iavf_package_driver_error_handle_test_plan.rst | 105 > +++++++++++++++++++++ > 1 file changed, 105 insertions(+) > create mode 100644 > test_plans/iavf_package_driver_error_handle_test_plan.rst >=20 > diff --git a/test_plans/iavf_package_driver_error_handle_test_plan.rst > b/test_plans/iavf_package_driver_error_handle_test_plan.rst > new file mode 100644 > index 0000000..0e243b2 > --- /dev/null > +++ b/test_plans/iavf_package_driver_error_handle_test_plan.rst > @@ -0,0 +1,105 @@ > +.. Copyright (c) <2020>, 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 > +IAVF Flexible Package and driver error handle check > +=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 > +1. The feature is to check the CVL 100G and 25G NIC, when the using old > version driver and latest DDP package, > + will cause to the RSS rule create fail, because the old version drive= r vers > does not support RSS feature in iavf. > +2. The feature is to check the CVL 100G and 25G NIC, when the using old > version ddp package or invalide ddp package and latest version driver, > + wll cause to the VF start fail, because the old version package or > +invalid package does not support VF create for the IAVF > + > +Prerequisites > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > +1. Hardware: > + columbiaville_25g/columbiaville_100g > + > +2. Software: > + dpdk: http://dpdk.org/git/dpdk > + > + Copy correct ``ice.pkg`` into ``/usr/lib/firmware/intel/ice/ddp/``, \ > + Prepare driver with latest version > + Prepare driver with a old special version ice-0.10.0_rc17 > + > +3. Copy specific ice package to /lib/firmware/updates/intel/ice/ddp/ice.= pkg, > + then load driver:: > + > + rmmod ice > + insmod ice.ko > + > +4. Compile DPDK:: > + > + make -j install T=3Dx86_64-native-linuxapp-gcc > + > +Test Case 1: Check old driver and latest commes pkg compatibility > +=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=3D=3D=3D=3D=3D > =3D=3D > +1. change to Old driver and latst comms pkgs of version > + Driver version : ice-0.10.0_rc17 > + DDP pkg version: ice_comms-1.3.16.0 > + > +2. Generate 1 VFs on PF0 and set mac address for each VF:: > + modprobe vfio-pci > + echo 1 > /sys/bus/pci/devices/0000\:b1\:00.0/sriov_numvfs > + ip link set enp177s0f0 vf 0 mac 00:11:22:33:44:55 > + > +3. Bind the pci device id of DUT in VFs:: > + ./usertools/dpdk-devbind.py -b vfio-pci 0000:b1:01.0 > + > +4. Launch the testpmd > + ./x86_64-native-linuxapp-gcc/app/testpmd -l 6-9 -n 4 -w b1:01.0 > +--file-prefix=3Dvf -- -i --rxq=3D16 --txq=3D16 --nb-cores=3D2 > + > +5. Create a rss rule > + testpmd> flow create 0 ingress pattern eth / ipv4 / end actions rss > +types l3-dst-only end key_len 0 queues end / end > + > +Expected output in ctreat result:: > + The rule create should fail and with cause with below > + iavf_flow_create(): Failed to create flow > + port_flow_complain(): Caught PMD error type 2 (flow rule (handle)): > +Failed to create parser engine.: Invalid argument Note. the rule should > create fail, because the rule should does not support in old driver versi= on. > + > +Test Case 2: Check latst driver and invalid commes pkg compatibility > +=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=3D=3D=3D=3D=3D > =3D=3D=3D=3D=3D > +1. change to Latest driver and old pkgs of version > + Driver version : latst version > + DDP pkg version: ice-1.2.0.1.pkg or touch to pkg file is invalid > + > +2. Generate 1 VFs on PF0 and set mac address for each VF:: > + modprobe vfio-pci > + echo 1 > /sys/bus/pci/devices/0000\:b1\:00.0/sriov_numvfs > + > +Expected output in VF start result:: > + echo 1 > /sys/bus/pci/devices/0000\:b1\:00.0/sriov_numvfs > + -bash: echo: write error: Operation not supported Note. the error > +log is expected, because the vf does not support invalid commes pkg. > -- > 1.8.3.1