From patchwork Wed Mar 8 12:06:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 124845 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 5B48941E19; Wed, 8 Mar 2023 05:09:56 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5342F40ED6; Wed, 8 Mar 2023 05:09:56 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id AA94740E03 for ; Wed, 8 Mar 2023 05:09:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678248594; x=1709784594; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=L5aWEwg0/soi3TyPecc65ijy5Ef70JlwJrc8QyZtELs=; b=NyfloOImHMGHwT7Rvo00ynUuBYMBDsHd6MymAdzr8aIW37po7ZotDXBg +DK199/QqTJuAOexRXZjrL5AUaG9r1RoihKQr/6IGXgoNxe2l6V5hhC88 lpH4TfLZy6IMyhDrHXcqwUvjgApFdOPiVNVNGoMEX7qd3Um9obpz2DYJ9 O6G7r/EpOfzWKhz/tkyV6i4bWKZoHBGm2XBJZ1b0cYKClAAS4UhgGXCnX dO35G0IajoIVVMFb0Gkql8ElkCVF0ZoHy5QgVTjVrOgwTR0nZDllXui2K 62MSykzuZoQ1ARVZ9YtQMx9jPeDUob1tIrfaO0v44WNjgof5Z1KgwdElY Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10642"; a="334766284" X-IronPort-AV: E=Sophos;i="5.98,242,1673942400"; d="scan'208";a="334766284" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Mar 2023 20:09:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10642"; a="626769191" X-IronPort-AV: E=Sophos;i="5.98,242,1673942400"; d="scan'208";a="626769191" Received: from unknown (HELO localhost.localdomain) ([10.239.252.20]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Mar 2023 20:09:52 -0800 From: Song Jiale To: dts@dpdk.org Cc: Song Jiale Subject: [dts] [PATCH V1] tests/kernelpf_iavf: optimize script Date: Wed, 8 Mar 2023 12:06:44 +0000 Message-Id: <20230308120644.1134889-1-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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 to be compatible with i40e's mac rules and ensure that vf's mac address remains unchanged, reset vf's mac before the test starts. Signed-off-by: Song Jiale --- tests/TestSuite_kernelpf_iavf.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/TestSuite_kernelpf_iavf.py b/tests/TestSuite_kernelpf_iavf.py index 8780bb54..6b6c573c 100644 --- a/tests/TestSuite_kernelpf_iavf.py +++ b/tests/TestSuite_kernelpf_iavf.py @@ -93,6 +93,9 @@ class TestKernelpfIavf(TestCase): self.destroy_vm_env() elif self.env_done is False: self.setup_vm_env() + self.dut.send_expect( + "ip link set %s vf 0 mac %s" % (self.host_intf, self.vf_mac), "# " + ) def setup_vm_env(self, driver="default", set_vf_mac=True): """