From patchwork Tue Mar 30 14:46:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sun, QinX" X-Patchwork-Id: 90053 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 19BBEA034F; Tue, 30 Mar 2021 08:10:00 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 24891140DAC; Tue, 30 Mar 2021 08:10:00 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 65629140D73 for ; Tue, 30 Mar 2021 08:09:58 +0200 (CEST) IronPort-SDR: 22sy0dDtGIJHTZvb3IcJvMzEHrfzvDy+ZwACMMKHMVMYYxX7JV0+3jstQCUbacwmjw3QAksjJi NuIm5Uy0ICew== X-IronPort-AV: E=McAfee;i="6000,8403,9938"; a="191796069" X-IronPort-AV: E=Sophos;i="5.81,290,1610438400"; d="scan'208";a="191796069" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Mar 2021 23:09:57 -0700 IronPort-SDR: 8B2RxiZsftuC0q+VXu8CWXoLWyuuIyH7dovxeREZgUEXNqyPiBV9NG7+as5jl8BDASbZiQDqIk taUH/wHBaECQ== X-IronPort-AV: E=Sophos;i="5.81,290,1610438400"; d="scan'208";a="411452056" Received: from unknown (HELO localhost.localdomain) ([10.240.183.105]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Mar 2021 23:09:56 -0700 From: sunqin To: dts@dpdk.org Cc: sunqin Date: Tue, 30 Mar 2021 14:46:31 +0000 Message-Id: <20210330144631.12328-1-qinx.sun@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V2] tests/cvl_advanced_iavf_rss_gtpu: set vlan id for vf 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" Confirm with developer that the design of dpdk is changed for VF, the VLAN ID needs to be set before VF receives VLAN packets. Signed-off-by: sunqin Tested-by: Sun Qin --- v1: add vlan id in a common function,will be called by most of cases v2: add vlan id only for related cases tests/TestSuite_cvl_advanced_iavf_rss_gtpu.py | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) mode change 100755 => 100644 tests/TestSuite_cvl_advanced_iavf_rss_gtpu.py diff --git a/tests/TestSuite_cvl_advanced_iavf_rss_gtpu.py b/tests/TestSuite_cvl_advanced_iavf_rss_gtpu.py old mode 100755 new mode 100644 index 6490dcbf..3a679178 --- a/tests/TestSuite_cvl_advanced_iavf_rss_gtpu.py +++ b/tests/TestSuite_cvl_advanced_iavf_rss_gtpu.py @@ -8678,34 +8678,60 @@ class TestCVLAdvancedIAVFRSSGTPU(TestCase): # vf rss gtpc gtpu def test_mac_ipv4_gtpu(self): self.switch_testpmd(symmetric=False) + self.pmd_output.execute_cmd('vlan set filter on 0') + self.pmd_output.execute_cmd('rx_vlan add 1 0') + self.pmd_output.execute_cmd('rx_vlan add 3 0') + self.pmd_output.execute_cmd('rx_vlan add 5 0') self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv4_gtpu_toeplitz) def test_mac_ipv6_gtpu(self): self.switch_testpmd(symmetric=False) + self.pmd_output.execute_cmd('vlan set filter on 0') + self.pmd_output.execute_cmd('rx_vlan add 1 0') + self.pmd_output.execute_cmd('rx_vlan add 5 0') + self.pmd_output.execute_cmd('rx_vlan add 7 0') + self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv6_gtpu_toeplitz) def test_mac_ipv4_gtpc(self): self.switch_testpmd(symmetric=False) + self.pmd_output.execute_cmd('vlan set filter on 0') + self.pmd_output.execute_cmd('rx_vlan add 1 0') + self.pmd_output.execute_cmd('rx_vlan add 3 0') + self.pmd_output.execute_cmd('rx_vlan add 5 0') self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv4_gtpc_toeplitz) def test_mac_ipv6_gtpc(self): self.switch_testpmd(symmetric=False) + self.pmd_output.execute_cmd('vlan set filter on 0') + self.pmd_output.execute_cmd('rx_vlan add 1 0') + self.pmd_output.execute_cmd('rx_vlan add 5 0') + self.pmd_output.execute_cmd('rx_vlan add 3 0') self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv6_gtpc_toeplitz) def test_mac_ipv4_gtpu_symmetric(self): self.switch_testpmd(symmetric=True) + self.pmd_output.execute_cmd('vlan set filter on 0') + self.pmd_output.execute_cmd('rx_vlan add 1 0') self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv4_gtpu_symmetric_toeplitz) def test_mac_ipv6_gtpu_symmetric(self): self.switch_testpmd(symmetric=True) + self.pmd_output.execute_cmd('vlan set filter on 0') + self.pmd_output.execute_cmd('rx_vlan add 1 0') self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv6_gtpu_symmetric_toeplitz) def test_mac_ipv4_gtpc_symmetric(self): self.switch_testpmd(symmetric=True) + self.pmd_output.execute_cmd('vlan set filter on 0') + self.pmd_output.execute_cmd('rx_vlan add 1 0') self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv4_gtpc_symmetric_toeplitz) def test_mac_ipv6_gtpc_symmetric(self): self.switch_testpmd(symmetric=True) + self.pmd_output.execute_cmd('vlan set filter on 0') + self.pmd_output.execute_cmd('rx_vlan add 1 0') + self.rssprocess.handle_rss_distribute_cases(cases_info=mac_ipv6_gtpc_symmetric_toeplitz) def tear_down(self):