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 775C6A00C4; Fri, 13 May 2022 11:13:26 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 72045427F1; Fri, 13 May 2022 11:13:26 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id B8D9140DDE for ; Fri, 13 May 2022 11:13:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652433204; x=1683969204; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=aZQrQkbm9+ONNos34t6ZZzaJG7E+zjRW2g1IuEJ8BwY=; b=WmMyLBfDqryBzEihkVx3jgO4Qu8OvNEPNyLi79LU08z87Imq/Jhco0Ur sV/l/YdCL2yBSHQdr8k0wNjov0aWXcQ2NlMW/6gkYhTR6G+YET02CyqZQ lkHxQPNIw5ZasWgMh3gHWpvF+pXQYQOZgda4/itZ/r8/N4nnpfbtQx7G/ S7gjzdBl3dTCP1XrzKSi40w3uaqnCLqMUgGLYmRsncDNIeniUyFL76vY0 6rF/Xtx8dzzHMZL88Hmc9Esj7Mda/utL8VkQ5rPMJiwXhnSuZfOEmC0BA wZgh62KvHenIgdd7VQ70OMnJ1wBEaICpAndZna22Xh58SBv2NylIxRfTb A==; X-IronPort-AV: E=McAfee;i="6400,9594,10345"; a="270393917" X-IronPort-AV: E=Sophos;i="5.91,221,1647327600"; d="scan'208";a="270393917" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 May 2022 02:13:24 -0700 X-IronPort-AV: E=Sophos;i="5.91,221,1647327600"; d="scan'208";a="659018287" Received: from shwdenpg560.ccr.corp.intel.com ([10.253.109.11]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 May 2022 02:13:23 -0700 From: "Li, WeiyuanX" To: dts@dpdk.org, yuan.peng@intel.com Cc: Weiyuan Li Subject: [dts][PATCH V2 2/2] tests/vf_smoke modify ixgbe support vf jumbo verify. Date: Fri, 13 May 2022 17:13:09 +0800 Message-Id: <20220513091309.2890-2-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.34.1.windows.1 In-Reply-To: <20220513091309.2890-1-weiyuanx.li@intel.com> References: <20220513091309.2890-1-weiyuanx.li@intel.com> 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 From: Weiyuan Li Modify script supports set PF MTU for ixgbe driver. Signed-off-by: Weiyuan Li --- v2: -Add comments to vf_smoke script. -Modify the general method to add PF MTU. tests/TestSuite_vf_smoke.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_vf_smoke.py b/tests/TestSuite_vf_smoke.py index e4f0c31b..c2d223b9 100644 --- a/tests/TestSuite_vf_smoke.py +++ b/tests/TestSuite_vf_smoke.py @@ -42,7 +42,7 @@ from .smoke_base import ( ) VF_MAC_ADDR = "00:11:22:33:44:55" - +ETHER_JUMBO_FRAME_MTU = 9000 class TestVfSmoke(TestCase): def set_up_all(self): @@ -71,9 +71,13 @@ class TestVfSmoke(TestCase): # init pkt self.pkt = Packet() + self.port = self.smoke_dut_ports[0] + self.dutobj = self.dut.ports_info[self.port]["port"] # generate vf self.dut.bind_interfaces_linux(self.kdriver) + # The MTU of ixgbe driver can only be set through pf setting + self.dutobj.enable_jumbo(framesize=ETHER_JUMBO_FRAME_MTU) self.dut.generate_sriov_vfs_by_port(self.smoke_dut_ports[0], 1, self.kdriver) self.vf_ports = self.dut.ports_info[self.smoke_dut_ports[0]]["vfs_port"] self.verify(len(self.vf_ports) != 0, "VF create failed") @@ -137,7 +141,7 @@ class TestVfSmoke(TestCase): self.dut.send_expect("set fwd mac", "testpmd> ") self.dut.send_expect("start", "testpmd> ") self.pmd_out.wait_link_status_up(self.smoke_dut_ports[0]) - result = self.test_func.check_jumbo_frames() + result = self.test_func.check_jumbo_frames(self.kdriver) self.verify(result, "enable disable jumbo frames failed") def test_vf_rss(self): -- 2.18.2