From patchwork Tue Sep 7 19:13:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Huang, ZhiminX" X-Patchwork-Id: 98165 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 0465FA0C46; Tue, 7 Sep 2021 12:41:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F327D41169; Tue, 7 Sep 2021 12:41:55 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 8B08A410EC for ; Tue, 7 Sep 2021 12:41:53 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10099"; a="283873629" X-IronPort-AV: E=Sophos;i="5.85,274,1624345200"; d="scan'208";a="283873629" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2021 03:41:53 -0700 X-IronPort-AV: E=Sophos;i="5.85,274,1624345200"; d="scan'208";a="469145904" Received: from unknown (HELO localhost.localdomain) ([10.240.183.103]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2021 03:41:52 -0700 From: Zhimin Huang To: dts@dpdk.org Cc: Zhimin Huang Date: Wed, 8 Sep 2021 03:13:16 +0800 Message-Id: <20210907191319.15494-2-zhiminx.huang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210907191319.15494-1-zhiminx.huang@intel.com> References: <20210907191319.15494-1-zhiminx.huang@intel.com> Subject: [dts] [PATCH V1 1/4] test_plans/kernelpf_iavf_test_plan:rich test point in plan 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 Sender: "dts" add some new test point in plan: kernelpf_iavf: add remove mac test. add check rss reta changed. add rss hash key test. Signed-off-by: Zhimin Huang --- test_plans/kernelpf_iavf_test_plan.rst | 94 +++++++++++++++++++++++--- 1 file changed, 85 insertions(+), 9 deletions(-) diff --git a/test_plans/kernelpf_iavf_test_plan.rst b/test_plans/kernelpf_iavf_test_plan.rst index 31ba975..e0360d2 100644 --- a/test_plans/kernelpf_iavf_test_plan.rst +++ b/test_plans/kernelpf_iavf_test_plan.rst @@ -105,6 +105,27 @@ packets can be received and forwarded by the VF:: Use scapy to send 100 random packets with a wrong MAC to VF0, verify the packets can't be received by the VF. +Remove the MAC 00:11:22:33:44:55:: + + testpmd> mac_addr remove 0 00:11:22:33:44:55 + +Use scapy to send 100 random packets with removed VF0's MAC, verify the +packets can't be received and forwarded by the VF:: + +Set the defaul mac address to other mac, check the mac address has be changed +to new set mac:: + + testpmd> mac_addr set 0 00:01:23:45:67:11 + testpmd> show port info 0 + +Use scapy to send 100 random packets with original VF0's MAC, verify the +packets can't be received and forwarded by the VF + +Use scapy to send 100 random packets with new set VF0's MAC, verify the +packets can be received and forwarded by the VF + +Reset to original mac address + Note:: Not set VF MAC from kernel PF for this case, if set, will print "not permitted error" when add new MAC for VF. @@ -350,17 +371,35 @@ Start command with multi-queues like below:: ./testpmd -c f -n 4 -- -i --txq=4 --rxq=4 +Show RSS RETA configuration:: + + testpmd> show port 0 rss reta 64 (0xffffffffffffffff) + + RSS RETA configuration: hash index=0, queue=0 + RSS RETA configuration: hash index=1, queue=1 + RSS RETA configuration: hash index=2, queue=2 + RSS RETA configuration: hash index=3, queue=3 + ... + RSS RETA configuration: hash index=60, queue=0 + RSS RETA configuration: hash index=61, queue=1 + RSS RETA configuration: hash index=62, queue=2 + RSS RETA configuration: hash index=63, queue=3 + Config hash reta table:: - testpmd> port config 0 rss reta (0,0) - testpmd> port config 0 rss reta (1,1) - testpmd> port config 0 rss reta (2,2) - testpmd> port config 0 rss reta (3,3) - ... - testpmd> port config 0 rss reta (60,0) - testpmd> port config 0 rss reta (61,1) - testpmd> port config 0 rss reta (62,2) - testpmd> port config 0 rss reta (63,3) + testpmd> port config 0 rss reta (0,3) + testpmd> port config 0 rss reta (1,2) + testpmd> port config 0 rss reta (2,1) + testpmd> port config 0 rss reta (3,0) + +Check RSS RETA configuration has changed:: + + testpmd> show port 0 rss reta 64 (0xffffffffffffffff) + + RSS RETA configuration: hash index=0, queue=3 + RSS RETA configuration: hash index=1, queue=2 + RSS RETA configuration: hash index=2, queue=2 + RSS RETA configuration: hash index=3, queue=1 Enable IP/TCP/UDP RSS:: @@ -369,6 +408,43 @@ Enable IP/TCP/UDP RSS:: Send different flow types' IP/TCP/UDP packets to VF port, check packets are received by different configured queues. +Test case: VF RSS hash key +========================== + +Start command with multi-queues like below:: + + ./testpmd -c f -n 4 -- -i --txq=4 --rxq=4 + +Show port rss hash key:: + + testpmd> show port 0 rss-hash key + +Set rxonly fwd, enable print, start testpmd:: + + testpmd> set fwd rxonly + testpmd> set verbose 1 + testpmd> start + +Send ipv4 packets, mark the RSS hash value:: + + p=Ether(dst="56:0A:EC:50:A4:28")/IP(src="1.2.3.4")/Raw(load='X'*30) + +Update ipv4 different hash key:: + + testpmd> port config 0 rss-hash-key ipv4 1b9d58a4b961d9cd1c56ad1621c3ad51632c16a5d16c21c3513d132c135d132c13ad1531c23a51d6ac49879c499d798a7d949c8a + +Show port rss hash key, check the key is same to configured key:: + + testpmd> show port 0 rss-hash key + RSS functions: + all ipv4 ipv6 ip + RSS key: + 1B9D58A4B961D9CD1C56AD1621C3AD51632C16A5D16C21C3513D132C135D132C13AD1531C23A51D6AC49879C499D798A7D949C8A + +Send ipv4 packets, check RSS hash value is different:: + + p=Ether(dst="56:0A:EC:50:A4:28")/IP(src="1.2.3.4")/Raw(load='X'*30) + Test case: VF HW checksum offload =================================