From patchwork Fri Nov 20 10:45:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sun, QinX" X-Patchwork-Id: 84400 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 60C85A04DD; Fri, 20 Nov 2020 03:10:35 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 58CD0C8CC; Fri, 20 Nov 2020 03:10:34 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 7ECF0C8E4 for ; Fri, 20 Nov 2020 03:10:32 +0100 (CET) IronPort-SDR: P0u5+p/XurikFJj2QNEViYXWYj0KMW89bVGVQCzvtBRqHlMVY5MBicozgTqs/Ev2FdVm3Tw+Iw u38ObOx3xJoA== X-IronPort-AV: E=McAfee;i="6000,8403,9810"; a="170618901" X-IronPort-AV: E=Sophos;i="5.78,354,1599548400"; d="scan'208";a="170618901" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Nov 2020 18:10:32 -0800 IronPort-SDR: yKQz2dPe/4JeI2yMrY6K+BkACAX/L5JfbJZrOubBs4tDXJCrdL4TkR0uJKcltggVuI1R+Hk8my CIsCvDxnes3g== X-IronPort-AV: E=Sophos;i="5.78,354,1599548400"; d="scan'208";a="535003939" Received: from unknown (HELO localhost.localdomain) ([10.240.183.105]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Nov 2020 18:10:31 -0800 From: sunqin To: dts@dpdk.org Cc: sunqin Date: Fri, 20 Nov 2020 10:45:56 +0000 Message-Id: <20201120104556.27730-7-qinx.sun@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201120104556.27730-1-qinx.sun@intel.com> References: <20201120104556.27730-1-qinx.sun@intel.com> Subject: [dts] [PATCH V1 6/6] test_plans/cvl_dcf_switch_filter remove 1 case 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" Remove 1 case: test_max_rule_number The case has been moved to 'cvl_limit_value_test' suite Signed-off-by: sunqin --- .../cvl_dcf_switch_filter_test_plan.rst | 57 ------------------- 1 file changed, 57 deletions(-) diff --git a/test_plans/cvl_dcf_switch_filter_test_plan.rst b/test_plans/cvl_dcf_switch_filter_test_plan.rst index ff7c4454..55ea726f 100644 --- a/test_plans/cvl_dcf_switch_filter_test_plan.rst +++ b/test_plans/cvl_dcf_switch_filter_test_plan.rst @@ -4157,63 +4157,6 @@ will not hang and provide a friendly output. check the rules not exist in the list. send matched packets, check the packets are not to port 1. -Test case: max rule number -========================== - -Description: 32k switch filter rules can be created on a CVL card, -and all PFs and VFs share the 32k rules. But the system will first create -some MAC_VLAN rules in switch table, and as the number of rules increased, -the hash conflicts in the switch filter table are increased, so we can -create a total of 32563 switch filter rules on a DCF. - -1. create 32563 rules with the same pattern, but different input set:: - - testpmd> flow create 0 ingress pattern eth / ipv4 src is 192.168.0.0 / end actions vf id 1 / end - testpmd> flow create 0 ingress pattern eth / ipv4 src is 192.168.0.1 / end actions vf id 1 / end - ...... - testpmd> flow create 0 ingress pattern eth / ipv4 src is 192.168.127.177 / end actions vf id 1 / end - testpmd> flow list 0 - - check the rules exist in the list. - -2. create one more rule:: - - testpmd> flow create 0 ingress pattern eth / ipv4 src is 192.168.127.178 / end actions vf id 1 / end - - check the rule can not be created successfully, and - testpmd provide a friendly output, showing:: - - ice_flow_create(): Failed to create flow - port_flow_complain(): Caught PMD error type 2 (flow rule (handle)): switch filter create flow fail: Invalid argument - -3. check the rule list - - testpmd> flow list 0 - - check the rule in step 2 not exists in the list. - -4. send 32563 matched packets for rule 0-32562:: - - sendp([Ether(dst="68:05:ca:8d:ed:a8")/IP(src="192.168.0.0")/TCP(sport=25,dport=23)/("X"*480)], iface="ens786f0", count=1) - sendp([Ether(dst="68:05:ca:8d:ed:a8")/IP(src="192.168.0.1")/TCP(sport=25,dport=23)/("X"*480)], iface="ens786f0", count=1) - ...... - sendp([Ether(dst="68:05:ca:8d:ed:a8")/IP(src="192.168.127.177")/TCP(sport=25,dport=23)/("X"*480)], iface="ens786f0", count=1) - - check port 1 receive the 32563 packets. - send 1 mismatched packet:: - - sendp([Ether(dst="68:05:ca:8d:ed:a8")/IP(src="192.167.0.1")/TCP(sport=25,dport=23)/("X"*480)], iface="ens786f0", count=1) - - check the packet are not to port 1. - -5. verify rules can be destroyed:: - - testpmd> flow flush 0 - testpmd> flow list 0 - - check the rules not exist in the list. - send 32563 matched packets, check the packets are not to port 1. - Test case: negative cases =========================