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 72A0A42847; Mon, 27 Mar 2023 05:21:56 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4BCCA40ED8; Mon, 27 Mar 2023 05:21:56 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id EE5C740ED5 for ; Mon, 27 Mar 2023 05:21:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679887315; x=1711423315; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=PEgzcK2rcP3ulwp7suyBKVr8psrrfP1UoqdDXt8dPdg=; b=N2dDF2OpEaAW8quA996ijK9OQOpDQ5DP4dzEcpRXyPFC/f4JIJ5Od/Yf S+WnMmCf9qnBDAHek58+IROkmCITm2AjwVzI+R9W7CFiKSI8WDYFFu381 dDcOTRvKcZ8MOJ2unm83QesqzHcI26P4W2zqDk4mAlpLomN9jfWu8BE27 Wb8rrwwjBnTPM8yxhWKRT1VReoLryZzf7LEVl6Ud8HSXIohpooP4/HhqV 4DAIGHc+D8VLL6HHWJXrZoFpIYEdhc1heAwa7ryfCyHdLHew+D0Y4aFlj 45XZ+4O1BKFDPDTsRmJhbqTuxWAXrCa7XAYnA1DMCALQ5Lizg+ki398OJ Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10661"; a="320571393" X-IronPort-AV: E=Sophos;i="5.98,293,1673942400"; d="scan'208";a="320571393" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Mar 2023 20:21:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10661"; a="683310531" X-IronPort-AV: E=Sophos;i="5.98,293,1673942400"; d="scan'208";a="683310531" Received: from unknown (HELO localhost.localdomain) ([10.239.252.20]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Mar 2023 20:21:51 -0700 From: Song Jiale To: dts@dpdk.org Cc: Song Jiale Subject: [dts] [PATCH V1] tests/vf_offload: optimize script Date: Mon, 27 Mar 2023 11:18:24 +0000 Message-Id: <20230327111824.737320-1-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.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 in general, vfs do not need to enable trust on. some intree drivers have a issue that vfs with trust on cannot receive vf vlan packages, and this issue will not be fixed. in order not to affect subsequent case testing, do not enable trust on unnecessarily. Signed-off-by: Song Jiale --- tests/TestSuite_vf_offload.py | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/tests/TestSuite_vf_offload.py b/tests/TestSuite_vf_offload.py index 9475ef22..47f6351b 100644 --- a/tests/TestSuite_vf_offload.py +++ b/tests/TestSuite_vf_offload.py @@ -91,20 +91,21 @@ class TestVfOffload(TestCase): self.host_intf_0 = self.dut.ports_info[self.used_dut_port_0]["intf"] self.host_intf_1 = self.dut.ports_info[self.used_dut_port_1]["intf"] - self.ip_link_set( - host_intf=self.host_intf_0, - cmd="vf", - port=0, - types="trust", - value="on", - ) - self.ip_link_set( - host_intf=self.host_intf_1, - cmd="vf", - port=0, - types="trust", - value="on", - ) + if self.dcf_mode: + self.ip_link_set( + host_intf=self.host_intf_0, + cmd="vf", + port=0, + types="trust", + value="on", + ) + self.ip_link_set( + host_intf=self.host_intf_1, + cmd="vf", + port=0, + types="trust", + value="on", + ) self.ip_link_set( host_intf=self.host_intf_0, cmd="vf", -- 2.25.1