From patchwork Fri Sep 17 18:09:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yan Xia X-Patchwork-Id: 99103 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 4BA42A0C46; Fri, 17 Sep 2021 12:07:22 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4369A410E3; Fri, 17 Sep 2021 12:07:22 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 5FBCE410E3 for ; Fri, 17 Sep 2021 12:07:20 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10109"; a="209857214" X-IronPort-AV: E=Sophos;i="5.85,300,1624345200"; d="scan'208";a="209857214" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Sep 2021 03:07:20 -0700 X-IronPort-AV: E=Sophos;i="5.85,300,1624345200"; d="scan'208";a="473079432" Received: from unknown (HELO localhost.localdomain) ([10.240.183.77]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Sep 2021 03:07:18 -0700 From: Yan Xia To: dts@dpdk.org Cc: Yan Xia Date: Fri, 17 Sep 2021 18:09:05 +0000 Message-Id: <20210917180906.88216-2-yanx.xia@intel.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210917180906.88216-1-yanx.xia@intel.com> References: <20210917180906.88216-1-yanx.xia@intel.com> MIME-Version: 1.0 Subject: [dts] [PATCH V1 1/2] test_plans/kernelpf_iavf_test_plan: modify vf_vlan_strip because it is wrong for the original case verifying 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" modify vf_vlan_strip because it is wrong for the original case verifying Signed-off-by: Yan Xia --- test_plans/kernelpf_iavf_test_plan.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test_plans/kernelpf_iavf_test_plan.rst b/test_plans/kernelpf_iavf_test_plan.rst index 4351f791..72223c77 100644 --- a/test_plans/kernelpf_iavf_test_plan.rst +++ b/test_plans/kernelpf_iavf_test_plan.rst @@ -312,8 +312,11 @@ Test case: VF vlan strip Enable VF vlan strip:: + testpmd> vlan set filter on 0 + testpmd> rx_vlan add 20 0 testpmd> vlan set strip on 0 testpmd> set fwd mac + testpmd> set verbose 1 testpmd> start Send packets with vlan tag:: From patchwork Fri Sep 17 18:09:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yan Xia X-Patchwork-Id: 99104 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 6C8CFA0C46; Fri, 17 Sep 2021 12:07:24 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 65123410EB; Fri, 17 Sep 2021 12:07:24 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 3C6F840689 for ; Fri, 17 Sep 2021 12:07:23 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10109"; a="209857217" X-IronPort-AV: E=Sophos;i="5.85,300,1624345200"; d="scan'208";a="209857217" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Sep 2021 03:07:22 -0700 X-IronPort-AV: E=Sophos;i="5.85,300,1624345200"; d="scan'208";a="473079444" Received: from unknown (HELO localhost.localdomain) ([10.240.183.77]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Sep 2021 03:07:21 -0700 From: Yan Xia To: dts@dpdk.org Cc: Yan Xia Date: Fri, 17 Sep 2021 18:09:06 +0000 Message-Id: <20210917180906.88216-3-yanx.xia@intel.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210917180906.88216-1-yanx.xia@intel.com> References: <20210917180906.88216-1-yanx.xia@intel.com> MIME-Version: 1.0 Subject: [dts] [PATCH V1 2/2] tests/kernelpf_iavf: modify vf_vlan_strip because it is wrong for the original case verifying 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" modify vf_vlan_strip because it is wrong for the original case verifying Signed-off-by: Yan Xia --- tests/TestSuite_kernelpf_iavf.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/TestSuite_kernelpf_iavf.py b/tests/TestSuite_kernelpf_iavf.py index 6a858fc5..328e44b2 100644 --- a/tests/TestSuite_kernelpf_iavf.py +++ b/tests/TestSuite_kernelpf_iavf.py @@ -529,13 +529,16 @@ class TestKernelpfIavf(TestCase): random_vlan = random.randint(1, MAX_VLAN) self.vm_testpmd.start_testpmd("all") self.vm_testpmd.execute_cmd("port stop all") - self.vm_testpmd.execute_cmd("vlan set filter off 0") + self.vm_testpmd.execute_cmd("vlan set filter on 0") + self.vm_testpmd.execute_cmd("rx_vlan add %s 0" % random_vlan) self.vm_testpmd.execute_cmd("vlan set strip off 0") - self.vm_testpmd.execute_cmd("vlan set strip on 0") self.vm_testpmd.execute_cmd("port start all") self.vm_testpmd.execute_cmd("set fwd mac") self.vm_testpmd.execute_cmd("set verbose 1") self.vm_testpmd.execute_cmd("start") + + #enable strip + self.vm_testpmd.execute_cmd("vlan set strip on 0") self.start_tcpdump(self.tester_intf) self.send_and_getout(vlan=random_vlan, pkt_type="VLAN_UDP") tcpdump_out = self.get_tcpdump_package() @@ -548,10 +551,7 @@ class TestKernelpfIavf(TestCase): self.send_and_getout(vlan=random_vlan, pkt_type="VLAN_UDP") tcpdump_out = self.get_tcpdump_package() receive_pkt = re.findall('vlan %s' % random_vlan, tcpdump_out) - if self.driver_version < "2.13.10" or self.kdriver == 'ice': - self.verify(len(receive_pkt) == 2, 'Failed to not received vlan packet!!!') - else: - self.verify(len(receive_pkt) == 1, 'Failed to not received vlan packet!!!') + self.verify(len(receive_pkt) == 2, 'Failed to not received vlan packet!!!') def test_vf_vlan_filter(self): random_vlan = random.randint(2, MAX_VLAN)