From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7C9D6A034F; Tue, 30 Mar 2021 09:28:11 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4795A406B4; Tue, 30 Mar 2021 09:28:11 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 31A7740696 for ; Tue, 30 Mar 2021 09:28:09 +0200 (CEST) IronPort-SDR: s+6XKKaWnTungUQMVCL1dYZWkMgH9pjeW+2y6NEBvSymG33KIHsNWzEEpZ3r1sw5uy+ogwzH85 8xlbagxRYklg== X-IronPort-AV: E=McAfee;i="6000,8403,9938"; a="179253986" X-IronPort-AV: E=Sophos;i="5.81,290,1610438400"; d="scan'208";a="179253986" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2021 00:28:07 -0700 IronPort-SDR: rVC2DIX2AJej1iWF1KSvgjVgN2tWs89EEezineZOXbEq999/edtO7/I3CYg6Zqq/PUu6a6Szc2 ZhhBrK+5pXuA== X-IronPort-AV: E=Sophos;i="5.81,290,1610438400"; d="scan'208";a="418044542" Received: from unknown (HELO localhost.localdomain) ([10.240.183.103]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2021 00:28:06 -0700 From: xiewei To: dts@dpdk.org Cc: xiewei Date: Wed, 31 Mar 2021 00:04:41 +0800 Message-Id: <20210330160441.6973-1-weix.xie@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] tests/iavf_fdir: 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: xiewei --- tests/TestSuite_iavf_fdir.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/TestSuite_iavf_fdir.py b/tests/TestSuite_iavf_fdir.py index a4048145..27f92f80 100644 --- a/tests/TestSuite_iavf_fdir.py +++ b/tests/TestSuite_iavf_fdir.py @@ -2309,6 +2309,8 @@ class TestIAVFFdir(TestCase): def config_testpmd(self): self.pmd_output.execute_cmd("set fwd rxonly") self.pmd_output.execute_cmd("set verbose 1") + self.pmd_output.execute_cmd("vlan set filter on 0") + self.pmd_output.execute_cmd("rx_vlan add 1 0") # specify a fixed rss-hash-key for cvl ether self.pmd_output.execute_cmd( "port config 0 rss-hash-key ipv4 1234abcd1234abcd1234abcd1234abcd1234abcd1234abcd1234abcd1234abcd1234abcd1234abcd1234abcd1234abcd1234abcd") -- 2.17.1