From patchwork Sun Oct 9 16:14:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 117723 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 45680A0543; Sun, 9 Oct 2022 10:04:13 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2EF9140146; Sun, 9 Oct 2022 10:04:13 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 3C4D740042 for ; Sun, 9 Oct 2022 10:04:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1665302652; x=1696838652; h=from:to:cc:subject:date:message-id; bh=6CNeZYMTN7X2ykLBeeOpREX5nEoN9pUH+h+wCg44kSQ=; b=K69HjtDNKDiaETE6jbUAQv9Rh/a61zMFWWyBhCTRyn4ykNh8cjseEt73 TwFvAI69kpDRjTraByOQ5FYh5hDSIBWfcLsrnOIfRO0PEFycKgoXVOp49 XrqBnFMU1+EdBoL1YhtqHE1zS6hBfB/9gIVt5f/ifpLn6RcjlOyaIdByf v6nZbw4XxHUubzeMoQ8qfCmucy18V7wsFdv/TkTcsPol1+EJtA1OFtncd 4UxpZX+fNP3J0f7oRNxdwt2QztGMPG95fM5I7A+Y8j+z1ul+hiIXmzRZe tfmOIyOd/Npsy576EsQithdFw+zylRe8MA71OdPBDe+9udceWFArh7e65 g==; X-IronPort-AV: E=McAfee;i="6500,9779,10494"; a="302763882" X-IronPort-AV: E=Sophos;i="5.95,171,1661842800"; d="scan'208";a="302763882" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Oct 2022 01:04:11 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10494"; a="603379746" X-IronPort-AV: E=Sophos;i="5.95,171,1661842800"; d="scan'208";a="603379746" Received: from unknown (HELO localhost.localdomain) ([10.239.252.94]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Oct 2022 01:04:09 -0700 From: Song Jiale To: dts@dpdk.org Cc: Song Jiale Subject: [dts] [PATCH V1 1/2] test_plans/ice_rss_configure: add 2 cases Date: Sun, 9 Oct 2022 16:14:32 +0000 Message-Id: <20221009161433.22138-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 rss config none. add a case to test default rss command line. Signed-off-by: Song Jiale --- test_plans/ice_rss_configure_test_plan.rst | 48 +++++++++++++++++----- 1 file changed, 38 insertions(+), 10 deletions(-) diff --git a/test_plans/ice_rss_configure_test_plan.rst b/test_plans/ice_rss_configure_test_plan.rst index 34cfa73a..7d86fabc 100644 --- a/test_plans/ice_rss_configure_test_plan.rst +++ b/test_plans/ice_rss_configure_test_plan.rst @@ -28,7 +28,7 @@ Testpmd Command-line Options: port config all rss: set the RSS (Receive Side Scaling) mode on or off. -port config all rss ip/udp/tcp/sctp/all/default +port config all rss ip/udp/tcp/sctp/all/default/none Prerequisites ============= @@ -52,7 +52,7 @@ Test Case: test_command_line_option_rss_ip 1. Launch the testpmd in DUT:: - testpmd>./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10 --rss-ip + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10 --rss-ip testpmd>set fwd rxonly testpmd>set verbose 1 testpmd>start @@ -172,7 +172,7 @@ Test Case: test_command_line_option_rss_udp 1. Launch the testpmd in DUT:: - testpmd>./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10 --rss-udp + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10 --rss-udp testpmd>set fwd rxonly testpmd>set verbose 1 testpmd>start @@ -236,7 +236,7 @@ Test Case: test_command_line_option_disable-rss 1. Launch the testpmd in DUT:: - testpmd>./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10 --disable-rss + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10 --disable-rss testpmd>set fwd rxonly testpmd>set verbose 1 testpmd>start @@ -253,12 +253,24 @@ Test Case: test_command_line_option_disable-rss sendp([Ether(dst="00:00:00:00:01:00")/IP(src="192.168.0.2",dst="192.168.0.3")/SCTP(sport=1024,dport=1025)/("X"*40)], iface="enp27s0f2") sendp([Ether(dst="00:00:00:00:01:00")/IPv6(src="3ffe:2501:200:3::2",dst="3ffe:2501:200:3::3")/SCTP(sport=1024,dport=1025)/("X"*40)], iface="enp27s0f2") +Test Case: test_command_line_option_rss_default +=============================================== + +1. Launch the testpmd in DUT:: + + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10 + testpmd>set fwd rxonly + testpmd>set verbose 1 + testpmd>start + +2. The rss phenomenon of all packets is the same as that of test_command_line_option_rss_ip + Test Case: test_RSS_configure_to_ip =================================== 1. Launch the testpmd in DUT:: - testpmd>./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10 + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10 testpmd>set fwd rxonly testpmd>set verbose 1 @@ -382,7 +394,7 @@ Test Case: test_RSS_configure_to_udp 1. Launch the testpmd in DUT:: - testpmd>./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10 + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10 testpmd>set fwd rxonly testpmd>set verbose 1 @@ -450,7 +462,7 @@ Test Case: test_RSS_configure_to_tcp 1. Launch the testpmd in DUT:: - testpmd>./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10 + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10 testpmd>set fwd rxonly testpmd>set verbose 1 @@ -518,7 +530,7 @@ Test Case: test_RSS_configure_to_sctp 1. Launch the testpmd in DUT:: - testpmd>./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10 + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10 testpmd>set fwd rxonly testpmd>set verbose 1 @@ -586,7 +598,7 @@ Test Case: test_RSS_configure_to_all 1. Launch the testpmd in DUT:: - testpmd>./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10 + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10 testpmd>set fwd rxonly testpmd>set verbose 1 @@ -692,7 +704,7 @@ Test Case: test_RSS_configure_to_default 1. Launch the testpmd in DUT:: - testpmd>./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10 + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10 testpmd>set fwd rxonly testpmd>set verbose 1 @@ -792,3 +804,19 @@ Test Case: test_RSS_configure_to_default sendp([Ether(dst="00:00:00:00:01:00")/IPv6(src="3ffe:2501:200:3::2",dst="3ffe:2501:200:3::5")/SCTP(sport=1024,dport=1025)/("X"*40)], iface="enp27s0f2") sendp([Ether(dst="00:00:00:00:01:00")/IPv6(src="3ffe:2501:200:3::2",dst="3ffe:2501:200:3::3")/SCTP(sport=1024,dport=1026)/("X"*40)], iface="enp27s0f2") sendp([Ether(dst="00:00:00:00:01:00")/IPv6(src="3ffe:2501:200:3::2",dst="3ffe:2501:200:3::3")/SCTP(sport=1026,dport=1025)/("X"*40)], iface="enp27s0f2") + +Test Case: test_RSS_configure_to_none +===================================== + +1. Launch the testpmd in DUT:: + + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 4 -- -i --rxq=10 --txq=10 + testpmd>set fwd rxonly + testpmd>set verbose 1 + +2. rss received package type configuration:: + + testpmd> port config all none all + testpmd> start + +3. The rss phenomenon of all packets is the same as that of test_command_line_option_disable-rss \ No newline at end of file From patchwork Sun Oct 9 16:14:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 117724 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 5FAF9A0542; Sun, 9 Oct 2022 10:04:14 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4AFBB400D5; Sun, 9 Oct 2022 10:04:14 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id D1A8040042 for ; Sun, 9 Oct 2022 10:04:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1665302653; x=1696838653; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=wHND5bIjmSuLs29tte1rFDuUmh/8CpJLwJ7O0eVmNbc=; b=HKWAVmAns2HYkAAwpNr1j9EhHeGMcWeKkH+aRdU8OeKl7rl80E2mXrsE uX/tBypGvUBYBCTG+1JJx3uubm+HOnnZ8KFUtB93r9KLBnaFYr3kYKTb5 b8Tgk9voVStrYVGXfFSpJDD6fvmmdnHyawZYT8dWYJjRpcExE+EOFRwYs sJCoXtI1YUnz7URf6eOvQrwABvuMr1X5zJhtKEzO4xhAYFzwQEnDOWgou AKU3TpHKdpBuKR9QuJ9JAU7ORqBPOuBsMPYzz7fYEU05Mj86NOdstp2KJ eMzyK+teVOQZPCzzMSXNyHSVVuwNf2XsZBhpB8LM3f07JZM4u1v+nW/B0 g==; X-IronPort-AV: E=McAfee;i="6500,9779,10494"; a="302763885" X-IronPort-AV: E=Sophos;i="5.95,171,1661842800"; d="scan'208";a="302763885" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Oct 2022 01:04:12 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10494"; a="603379757" X-IronPort-AV: E=Sophos;i="5.95,171,1661842800"; d="scan'208";a="603379757" Received: from unknown (HELO localhost.localdomain) ([10.239.252.94]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Oct 2022 01:04:11 -0700 From: Song Jiale To: dts@dpdk.org Cc: Song Jiale Subject: [dts] [PATCH V1 2/2] tests/ice_rss_configure: add 2 cases Date: Sun, 9 Oct 2022 16:14:33 +0000 Message-Id: <20221009161433.22138-2-songx.jiale@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221009161433.22138-1-songx.jiale@intel.com> References: <20221009161433.22138-1-songx.jiale@intel.com> 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 rss config none. add a case to test default rss command line. Signed-off-by: Song Jiale Acked-by: Lijuan Tu --- tests/TestSuite_ice_rss_configure.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/TestSuite_ice_rss_configure.py b/tests/TestSuite_ice_rss_configure.py index 8cc41bf0..c0f73c82 100644 --- a/tests/TestSuite_ice_rss_configure.py +++ b/tests/TestSuite_ice_rss_configure.py @@ -334,6 +334,10 @@ class RSSConfigureTest(TestCase): self.launch_testpmd(line_option="--disable-rss") self.rsspro.handle_rss_distribute_cases(command_line_option_disable_rss) + def test_command_line_option_rss_default(self): + self.launch_testpmd() + self.rsspro.handle_rss_distribute_cases(command_line_option_rss_ip) + def test_rss_configure_to_ip(self): self.launch_testpmd(rss_type="ip") self.rsspro.handle_rss_distribute_cases(rss_configure_to_ip) @@ -358,6 +362,10 @@ class RSSConfigureTest(TestCase): self.launch_testpmd(rss_type="default") self.rsspro.handle_rss_distribute_cases(rss_configure_to_default) + def test_rss_configure_to_none(self): + self.launch_testpmd(rss_type="none") + self.rsspro.handle_rss_distribute_cases(command_line_option_disable_rss) + def tear_down(self): """ Run after each test case.