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 53139427F6; Mon, 27 Mar 2023 11:40:20 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2616140ED8; Mon, 27 Mar 2023 11:40:20 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id C412740ED5 for ; Mon, 27 Mar 2023 11:40:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679910019; x=1711446019; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=FmmHXxs1WtB2WdCHsxU10mQ5RCccUiL2+AW51bn7TpM=; b=XIsg0g3RnuVVRpDAbqRQVXeWAjc+QDzaE/1KU215MeJq0Lmd9Oog6dYB M7EmvabFSLeKq55c4GR/uD445fn/pR9udZBczlnqtXn+MhPI0KqkM8auX TUtdZ4iJ8xOXdF1v5scLMVIrsosyQTIjv8URuFqLatRpsy9tP2W/VeXA6 BVmuLmN4wFCPzpAqpDNJW9G8jE1lHQWhXhjZES0MLkdllFqTu640iw4Ys iDihF/ctNilTw7oNou5heN0Vz7H+fT1nMv7ThiA9YMKUO/8WVutjkJc9J p55nnc6VrsJo27kIWA1NzA+oS27srNIMcLsLfb29jeeeEFNKKKAP42pN8 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10661"; a="341797367" X-IronPort-AV: E=Sophos;i="5.98,294,1673942400"; d="scan'208";a="341797367" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Mar 2023 02:40:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10661"; a="929401871" X-IronPort-AV: E=Sophos;i="5.98,294,1673942400"; d="scan'208";a="929401871" Received: from unknown (HELO localhost.localdomain) ([10.239.252.20]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Mar 2023 02:40:16 -0700 From: Song Jiale To: dts@dpdk.org Cc: Song Jiale Subject: [dts] [PATCH V2] tests/vf_offload: optimize script Date: Mon, 27 Mar 2023 17:36:50 +0000 Message-Id: <20230327173650.780985-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 packets, 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(-) V2: -modify the comment description 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