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 3965E42847; Mon, 27 Mar 2023 05:04:54 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3261340ED8; Mon, 27 Mar 2023 05:04:54 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 2DBF540ED5 for ; Mon, 27 Mar 2023 05:04:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679886293; x=1711422293; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=8SjUVtaYxFeD/jdJgKexuBVW23BtXMYXmYfTjJiE9NA=; b=ZSTDkUwWEW7MeSQneg1WjsYWTSibfwvice8WFZGcFIOEnAVFCuTIDbn/ OOfh2bQJmy8P6sRbs8nv7rU2HHQQi619ET9oJm0IW6pbjgIDnupaiprxi erBoE6i2QFb/N8wblbpnS5b8XATfAbEShic7n4sU8kYsuQ7g7UOPIGx8i UPX9jDedzkpT4VAULI/DKL+NHqAYnUzYmVKta0EKEPJIIrIdkTnP0Jys3 O6BP1Mkqt3dSYyBqqYfPEn7ZInSMp6qwvcdWPotH8xgdi0C7DKBa6RcoA VQ7dA4PmQMIGefFsw1S3qfjqS9wIQmkHErr/lWjr6PZKGVXtWsqcSSR/G g==; X-IronPort-AV: E=McAfee;i="6600,9927,10661"; a="337672836" X-IronPort-AV: E=Sophos;i="5.98,293,1673942400"; d="scan'208";a="337672836" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Mar 2023 20:04:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10661"; a="807327218" X-IronPort-AV: E=Sophos;i="5.98,293,1673942400"; d="scan'208";a="807327218" 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; 26 Mar 2023 20:04:50 -0700 From: Weiyuan Li To: dts@dpdk.org Cc: Weiyuan Li Subject: [dts][PATCH V1] tests/vf_offload: set vlan filter and vlan id on ixgbe Date: Mon, 27 Mar 2023 18:07:46 +0800 Message-Id: <20230327100746.497148-1-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 has vlan filter enabled by default, so set vlan filter and vlan id on dpdk. Signed-off-by: Weiyuan Li --- tests/TestSuite_vf_offload.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/TestSuite_vf_offload.py b/tests/TestSuite_vf_offload.py index 9475ef22..5fee1d42 100644 --- a/tests/TestSuite_vf_offload.py +++ b/tests/TestSuite_vf_offload.py @@ -437,6 +437,12 @@ class TestVfOffload(TestCase): self.vm0_testpmd.execute_cmd("set promisc 1 on") self.vm0_testpmd.execute_cmd("set promisc 0 on") + # ixgbe kernel drvier has vlan filter enabled by default. + # so set vlan filter and vlan id on dpdk. + if self.kdriver == "ixgbe": + self.vm0_testpmd.execute_cmd("vlan set filter on 0") + self.vm0_testpmd.execute_cmd("rx_vlan add 100 0") + time.sleep(2) mac = self.vm0_testpmd.get_port_mac(0) sndIP = "10.0.0.1" -- 2.27.0