From patchwork Thu Jun 23 13:44:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 113300 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id EB6A1A0545; Thu, 23 Jun 2022 07:19:49 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C24B44069D; Thu, 23 Jun 2022 07:19:49 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 9047E4069C for ; Thu, 23 Jun 2022 07:19:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655961588; x=1687497588; h=from:to:cc:subject:date:message-id; bh=zZnNBwMWkJs44gjU49fEXbmWR2ykXNfTIotXbG84umQ=; b=gWS8T8Hf0UwVFhA607fIx5ISALH4IQMfDExFTcrSvYPHAh+2A4e0gBuy dgAGjkM+vGHmOTUMHS+vRmdofHcWLKIkVjcJub26qANBe3dG+NURU6s+7 zO6wBPipOVl5H5FUdlM55uvOfyfXFR1RwhJtzAHjdNNSb3/UFROd+aIcV TBiGU+2Stdh/uX416lsQ2ATg+JfttVBobz4PvrT4SVqS3Ytm5VqmochFd uDCryyOcYCOuo6JYwSZaAEBqGectF4ZhWyiZsian1yafc2UkCuYnQuEUP os3GmaKXGD9PaJ9q2vGaunJ8189DBXM9b/dRnjdaUkkjsLOck1AVctvY2 g==; X-IronPort-AV: E=McAfee;i="6400,9594,10386"; a="279395489" X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="279395489" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2022 22:19:47 -0700 X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="592539325" Received: from unknown (HELO localhost.localdomain) ([10.239.252.94]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2022 22:19:46 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Subject: [dts] [PATCH V2] tests/ice_iavf_rss_configure: add a case Date: Thu, 23 Jun 2022 13:44:15 +0000 Message-Id: <20220623134415.16773-1-songx.jiale@intel.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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 add a case to test config RSS default. Signed-off-by: Jiale Song --- .../ice_iavf_rss_configure_test_plan.rst | 23 ++++++++++++++++++- tests/TestSuite_ice_iavf_rss_configure.py | 6 +++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/test_plans/ice_iavf_rss_configure_test_plan.rst b/test_plans/ice_iavf_rss_configure_test_plan.rst index 86ab957c..83f04835 100644 --- a/test_plans/ice_iavf_rss_configure_test_plan.rst +++ b/test_plans/ice_iavf_rss_configure_test_plan.rst @@ -60,7 +60,7 @@ Basic test steps * testpmd runtime functions:: - port config all rss ip/udp/tcp/sctp/none/all + port config all rss ip/udp/tcp/sctp/none/all/default * The ``none`` option is equivalent to the ``--disable-rss`` command-line option. * The `` ip`` option is equivalent to the ``--rss-ip`` command-line option. @@ -190,6 +190,22 @@ Basic test steps | +------------------------------+--------------------------+-----------------------------+-------------------------+ | | | | MAC_IPV6_SCTP | different hash value | +-------------------------------+------------------------------+--------------------------+-----------------------------+-------------------------+ + | | ALL | all | MAC_IPV4_PAY | record hash value | + | +------------------------------+--------------------------+-----------------------------+-------------------------+ + | | | | MAC_IPV4_UDP | different hash value | + | +------------------------------+--------------------------+-----------------------------+-------------------------+ + | | | | MAC_IPV4_TCP | different hash value | + | +------------------------------+--------------------------+-----------------------------+-------------------------+ + | | | | MAC_IPV4_SCTP | different hash value | + | default +------------------------------+--------------------------+-----------------------------+-------------------------+ + | | | | MAC_IPV6_PAY | record hash value | + | +------------------------------+--------------------------+-----------------------------+-------------------------+ + | | | | MAC_IPV6_UDP | different hash value | + | +------------------------------+--------------------------+-----------------------------+-------------------------+ + | | | | MAC_IPV6_TCP | different hash value | + | +------------------------------+--------------------------+-----------------------------+-------------------------+ + | | | | MAC_IPV6_SCTP | different hash value | + +-------------------------------+------------------------------+--------------------------+-----------------------------+-------------------------+ | | | | MAC_IPV4_PAY | no hash value | | +------------------------------+--------------------------+-----------------------------+-------------------------+ | | | | MAC_IPV4_SCTP | no hash value | @@ -273,6 +289,11 @@ Test Case: test_iavf_rss_configure_to_all Set rss to all with testpmd runtime func, transmit different protocol packets, and check hash results. +Test Case: test_iavf_rss_configure_to_default +========================================= + +Set rss to default with testpmd runtime func, transmit different protocol packets, and check hash results. + Test Case: test_iavf_rss_configure_to_none ========================================== diff --git a/tests/TestSuite_ice_iavf_rss_configure.py b/tests/TestSuite_ice_iavf_rss_configure.py index 8194c81d..b227ca54 100644 --- a/tests/TestSuite_ice_iavf_rss_configure.py +++ b/tests/TestSuite_ice_iavf_rss_configure.py @@ -227,6 +227,8 @@ tvs_mac_disable_rss = eval( .replace("check_hash_different", "check_no_hash") ) +tvs_mac_default = tvs_mac_all + class IAVFRSSConfigureTest(TestCase): def set_up_all(self): @@ -360,6 +362,10 @@ class IAVFRSSConfigureTest(TestCase): self.set_rss_configure(rss_type="none") self.rssprocess.handle_rss_distribute_cases(cases_info=tvs_mac_disable_rss) + def test_iavf_rss_configure_to_default(self): + self.set_rss_configure(rss_type="default") + self.rssprocess.handle_rss_distribute_cases(cases_info=tvs_mac_default) + def test_iavf_rss_command_line_to_ip(self): self.restart_testpmd(cmd_line="--rss-ip") self.rssprocess.handle_rss_distribute_cases(cases_info=tvs_mac_ip)