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 B93F6A0542; Thu, 13 Feb 2020 11:03:46 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 702FC100C; Thu, 13 Feb 2020 11:03:46 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 810D7F72 for ; Thu, 13 Feb 2020 11:03:44 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Feb 2020 02:03:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,436,1574150400"; d="scan'208";a="267023329" Received: from intel.sh.intel.com ([10.239.255.136]) by fmsmga002.fm.intel.com with ESMTP; 13 Feb 2020 02:03:36 -0800 From: Jiaqi Min To: dts@dpdk.org Cc: Jiaqi Min Date: Thu, 13 Feb 2020 09:51:48 +0000 Message-Id: <20200213095148.21216-1-jiaqix.min@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH v1] test_plans/shutdown_api: modify change linkspeed 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" fix test change linkspeed add test change linkspeed vf add testcase vf to test plan Signed-off-by: Jiaqi Min --- test_plans/shutdown_api_test_plan.rst | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/test_plans/shutdown_api_test_plan.rst b/test_plans/shutdown_api_test_plan.rst index 2d549e8..0968644 100644 --- a/test_plans/shutdown_api_test_plan.rst +++ b/test_plans/shutdown_api_test_plan.rst @@ -144,6 +144,26 @@ Test Case: Change Link Speed successfully. 7. Repeat this process for every compatible speed depending on the NIC driver. +Test Case: Change Link Speed VF +---------------------------- + +1. bind a PF to DPDK:: + ./usertools/dpdk-devbind.py -b igb_uio 1b:00.0 +2. create a VF from this PF:: + echo 1 > /sys/bus/pci/devices/0000\:1b\:00.0/max_vfs + bind a VF to DPDK:: + ./usertools/dpdk-devbind.py -b igb_uio 1b:02.0 +3. launch testpmd with cmd:: + ./x86_64-native-linuxapp-gcc/app/testpmd -l 0-3 -n 4 --file-prefix=minjq -- -i +4. Run ``port stop all`` to stop all ports. +5. Run ``port config all speed SPEED duplex HALF/FULL`` to select the new config for the link. +6. Run ``port start all`` to restart all ports. + show port info all Check on the tester side that the VF configuration actually changed using ethtool. +7. Run ``start`` again to restart the forwarding, then start packet generator to transmit + and receive packets, and check if testpmd is able to receive and forward packets + successfully. +8. Repeat this process for every compatible speed depending on the NIC driver. + Test Case: Enable/Disable Jumbo Frame ------------------------------------- -- 2.17.1