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 93711A04EF; Sun, 31 May 2020 15:06:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7C0E61D526; Sun, 31 May 2020 15:06:48 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 635C51D524 for ; Sun, 31 May 2020 15:06:46 +0200 (CEST) IronPort-SDR: LvtY/+0WP7UCEry0qfAEiYXtFjUilfCpUV8wlJf0OFZq3Tmb/2mbMN0usqpUuewGexWFCjD7NS 8JF6m7Oy9Nvw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2020 06:06:44 -0700 IronPort-SDR: /rIMfTTcKoRClIldDzvGPXYFTiNXDBUE08EE1bw7kso+TOzFXPyO0TC9X1knSlQXnzIxSkNS2P UcQXIjCdPlww== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,456,1583222400"; d="scan'208";a="470035836" Received: from dpdktestzhiwei171.sh.intel.com ([10.67.119.72]) by fmsmga005.fm.intel.com with ESMTP; 31 May 2020 06:06:43 -0700 From: "zhiwei.he" To: dts@dpdk.org Cc: "zhiwei.he" Date: Sun, 31 May 2020 20:54:25 +0800 Message-Id: <1590929665-4059-1-git-send-email-zhiwei.he@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [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" From: "zhiwei.he" 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 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. + +=================================================== +IAVF Flexible Package and driver error handle check +=================================================== + +Description +=========== +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 driver 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 +============= +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=x86_64-native-linuxapp-gcc + +Test Case 1: Check old driver and latest commes pkg compatibility +================================================================= +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=vf -- -i --rxq=16 --txq=16 --nb-cores=2 + +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 version. + +Test Case 2: Check latst driver and invalid commes pkg compatibility +==================================================================== +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