From patchwork Fri Feb 3 06:25:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weiyuan Li X-Patchwork-Id: 122996 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 55B6241BB8; Fri, 3 Feb 2023 07:20:17 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CF0DB41140; Fri, 3 Feb 2023 07:20:16 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 6E3364014F for ; Fri, 3 Feb 2023 07:20:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675405215; x=1706941215; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=hm0sAexGfTXCL4+bBxehnR54jYB3QAo8U/OjsBSEU9E=; b=W61hhgF9X+Q9f/hFW4+VKTo7d2c0lyt9iYckgbcM8i8oiGa+3Es9UHgY yFUbPjE3c3yY7R4CBrjGxpoOHoWvxH4EIujSeuC4/HdeCFFutwWKu0tAC I+q9p6VA9t9h24F0LRdZ9CGc2KPCrrQKA9TB07+9TXIy/Hh3gWTrHhKwN xtzrAA8vBwZw97z3xsLdA15KjcgByVtnE6n+F4651/XVDIcpNOhSGSLWp DeB0tHDK80X+EXrU+zCNZjluiqi57ZZxzEyXU922Op874bEehWeV3S9UY 9LlzgsLgWJBLzVo//yXFXCEVV25DikRNqTMX9I2RKr1ccLDgYrtLdcpLx g==; X-IronPort-AV: E=McAfee;i="6500,9779,10609"; a="329955225" X-IronPort-AV: E=Sophos;i="5.97,269,1669104000"; d="scan'208";a="329955225" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Feb 2023 22:20:15 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10609"; a="789561041" X-IronPort-AV: E=Sophos;i="5.97,269,1669104000"; d="scan'208";a="789561041" Received: from unknown (HELO dpdk-VF-dut247..) ([10.239.252.247]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Feb 2023 22:20:13 -0800 From: Weiyuan Li To: dts@dpdk.org Cc: Weiyuan Li Subject: [dts][PATCH V1 2/2] tests/vf_vlan: optimize script test step rx does not support IXGBE Date: Fri, 3 Feb 2023 14:25:12 +0800 Message-Id: <20230203062512.2436-2-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230203062512.2436-1-weiyuanx.li@intel.com> References: <20230203062512.2436-1-weiyuanx.li@intel.com> MIME-Version: 1.0 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 The ixgbe kernel driver does not support rx path hw vlan, parameter "--enable-hw-vlan" not support nic IXGBE_10G-82599_SFP. Signed-off-by: Weiyuan Li --- tests/TestSuite_vf_vlan.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_vf_vlan.py b/tests/TestSuite_vf_vlan.py index 563d06b6..b19f5172 100644 --- a/tests/TestSuite_vf_vlan.py +++ b/tests/TestSuite_vf_vlan.py @@ -344,7 +344,11 @@ class TestVfVlan(TestCase): self.vm0_dut_ports = self.vm_dut_0.get_ports("any") self.vm0_testpmd = PmdOutput(self.vm_dut_0) - param = "--enable-hw-vlan" if not self.dcf_mode else "" + param = ( + "--enable-hw-vlan" + if not self.dcf_mode and self.kdriver is not "ixgbe" + else "" + ) self.launch_testpmd(dcf_flag=self.dcf_mode, param=param) self.vm0_testpmd.execute_cmd("set fwd rxonly") self.vm0_testpmd.execute_cmd("set verbose 1") @@ -424,7 +428,12 @@ class TestVfVlan(TestCase): self.vm0_dut_ports = self.vm_dut_0.get_ports("any") self.vm0_testpmd = PmdOutput(self.vm_dut_0) - param = "--enable-hw-vlan" if not self.dcf_mode else "" + param = ( + "--enable-hw-vlan" + if not self.dcf_mode and self.kdriver is not "ixgbe" + else "" + ) + self.launch_testpmd(dcf_flag=self.dcf_mode, param=param) self.vm0_testpmd.execute_cmd("set fwd rxonly") self.vm0_testpmd.execute_cmd("set verbose 1")