From patchwork Thu Sep 8 02:47:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weiyuan Li X-Patchwork-Id: 116064 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 D6B73A0548; Thu, 8 Sep 2022 04:47:17 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AEA8A40143; Thu, 8 Sep 2022 04:47:17 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 43C73400D6 for ; Thu, 8 Sep 2022 04:47:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662605236; x=1694141236; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=GRVS7uFC4gLXWuvL83niix39W093uvNaqkjV9jhgKp4=; b=lIn7XmdZByTVLTyVob1U7BXB3igBWOiziLZ4AMaPYAfUVu8vWnXADjNQ YY3txor9li5UN3h+UA+8WvYl6y4o0hTxvkKcyr2aJ/xz0zvxwaCvAlesE KYZ/XJzvAsVqjmlek/SGyswLGxo8vyB5zXrUcrsxMbpxZLScFAv36AEso baUnrMCWIaLFaoWsxsTmtDc573I9TXg/dgfT7GmEN8jt51Gv9cSt9E9Uh ZQYfq43o0n0c/pU+BmaWCCYRKcEWbdxrJkL/cv604OhthKupay/gReK0u +y4eCNj7ZaJTMjukYzor9nW+wkPopbCZsfyj76b1GO6Q0iua7eyk12NBk A==; X-IronPort-AV: E=McAfee;i="6500,9779,10463"; a="295783538" X-IronPort-AV: E=Sophos;i="5.93,298,1654585200"; d="scan'208";a="295783538" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2022 19:47:10 -0700 X-IronPort-AV: E=Sophos;i="5.93,298,1654585200"; d="scan'208";a="676478071" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2022 19:47:09 -0700 From: Weiyuan Li To: dts@dpdk.org Cc: Weiyuan Li Subject: [dts][PATCH V2] tests/vf_vlan: case add_pvid_vf restart testpmd after remove vlan according to testplan Date: Thu, 8 Sep 2022 10:47:19 +0800 Message-Id: <20220908024719.30163-1-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 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 Case add_pvid_vf modify to restart testpmd after remove vlan according to testplan. Signed-off-by: Weiyuan Li Tested-by: Lingli Chen Acked-by: Fu, Qi Acked-by: Lijuan Tu --- v2: -Patch conflict modification tests/TestSuite_vf_vlan.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/TestSuite_vf_vlan.py b/tests/TestSuite_vf_vlan.py index c4904c55..31826db5 100644 --- a/tests/TestSuite_vf_vlan.py +++ b/tests/TestSuite_vf_vlan.py @@ -233,16 +233,18 @@ class TestVfVlan(TestCase): # remove vlan self.vm0_testpmd.execute_cmd("stop") - self.vm0_testpmd.execute_cmd("port stop all") + self.vm0_testpmd.quit() self.dut.send_expect("ip link set %s vf 0 vlan 0" % self.host_intf0, "# ") out = self.dut.send_expect("ip link show %s" % self.host_intf0, "# ") self.verify("vlan %d" % random_vlan not in out, "Failed to remove pvid on VF0") - # send packet with vlan - self.vm0_testpmd.execute_cmd("port reset 0", "testpmd> ", 120) - self.vm0_testpmd.execute_cmd("port start all") + # restart testpmd + self.vm0_testpmd = PmdOutput(self.vm_dut_0) + self.vm0_testpmd.start_testpmd(VM_CORES_MASK) + self.vm0_testpmd.execute_cmd("set fwd rxonly") + self.vm0_testpmd.execute_cmd("set verbose 1") self.vm0_testpmd.execute_cmd("start") - + # send packet with vlan out = self.send_and_getout(vlan=random_vlan, pkt_type="VLAN_UDP") if ( (self.kdriver == "i40e" and self.driver_version < "2.13.10")