From patchwork Wed Feb 8 16:41:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Huang, ZhiminX" X-Patchwork-Id: 123427 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 A42E341C3C; Wed, 8 Feb 2023 09:22:16 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 751AD40DFD; Wed, 8 Feb 2023 09:22:16 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 2A1C940141 for ; Wed, 8 Feb 2023 09:22:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675844535; x=1707380535; h=from:to:cc:subject:date:message-id; bh=JLmMvkYhe0u1E28UgFyRBAkd1TqFbyF7YS6m5VQCVV8=; b=Mdsjm5pfiS6EbXXV4ivgKqZnaWO5dgSCdX8HUGBWKh9/DJX1Jzy9B3TP hsBcX6MJNihdHyoPkPhfV25wsaAXhZKbN01XP5UN3FeTlgmfiWK5EcDme kq3F2dAx0rctk1cIGkDou1Hau3ipTRi+7fks5ATrtHNQhmy1R3YDVwlVp i76oorE4zTkSgBhCP5QXKDNIqeTWjLjSag72cz70WjTh5r7rdXn7NgZzD OS7wRvTpMKNcxtrtCW1bKwuEnplZWOFVSsUomWskaSnRafMcyFqSvcukA NUnOFNj/rSZEw3li++1RLKLenRPbRplRWW7KbWgTo+HChbYk1MTWCB9Qr A==; X-IronPort-AV: E=McAfee;i="6500,9779,10614"; a="415962880" X-IronPort-AV: E=Sophos;i="5.97,280,1669104000"; d="scan'208";a="415962880" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2023 00:22:14 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10614"; a="809862174" X-IronPort-AV: E=Sophos;i="5.97,280,1669104000"; d="scan'208";a="809862174" Received: from unknown (HELO localhost.localdomain) ([10.239.252.93]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2023 00:22:12 -0800 From: Zhimin Huang To: dts@dpdk.org Cc: Zhimin Huang Subject: [dts][PATCH V1] vf_vlan: modify code to adapt dcf vlan offload Date: Thu, 9 Feb 2023 00:41:54 +0800 Message-Id: <20230208164154.18720-1-zhiminx.huang@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 After sync with dev,change rx path is not safe on device. Usually the device driver requires the device not be started to change offloads. For now the test result under vector path is normal. So we change to scalar path to test dcf vlan offload. Signed-off-by: Zhimin Huang --- test_plans/vf_vlan_test_plan.rst | 7 ++++++- tests/TestSuite_vf_vlan.py | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/test_plans/vf_vlan_test_plan.rst b/test_plans/vf_vlan_test_plan.rst index 0cf946d0..d1bd69fd 100644 --- a/test_plans/vf_vlan_test_plan.rst +++ b/test_plans/vf_vlan_test_plan.rst @@ -80,11 +80,16 @@ if test DCF, set VF port to dcf and start up:: ip link set $PF_INTF vf 0 trust on - dpdk-testpmd -c 0x0f -n 4 -a 00:04.0,cap=dcf -a 00:05.0,cap=dcf -- -i --portmask=0x3 + start testpmd with scalar path: + + dpdk-testpmd -c 0x0f -n 4 -a 00:04.0,cap=dcf -a 00:05.0,cap=dcf --force-max-simd-bitwidth=64 -- -i --portmask=0x3 .. note:: make dcf as full feature pmd is dpdk22.07 feature, and only support E810 series nic. + the dcf not support vlan offload and change the rx path in vector path when pmd is initialized, so we use + the scalar path to start testpmd(use param "--force-max-simd-bitwidth=64"). + Test Case 1: Add port based vlan on VF ====================================== diff --git a/tests/TestSuite_vf_vlan.py b/tests/TestSuite_vf_vlan.py index 563d06b6..7e4d49df 100644 --- a/tests/TestSuite_vf_vlan.py +++ b/tests/TestSuite_vf_vlan.py @@ -169,11 +169,13 @@ class TestVfVlan(TestCase): def launch_testpmd(self, **kwargs): dcf_flag = kwargs.get("dcf_flag") param = kwargs.get("param") if kwargs.get("param") else "" + # for dcf mode, the vlan offload support in scalar path if dcf_flag: self.vm0_testpmd.start_testpmd( VM_CORES_MASK, ports=[self.vf0_guest_pci, self.vf1_guest_pci], param=param, + eal_param="--force-max-simd-bitwidth=64", port_options={ self.vf0_guest_pci: "cap=dcf", self.vf1_guest_pci: "cap=dcf",