From patchwork Wed May 18 08:52:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 111292 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 46821A0503; Wed, 18 May 2022 10:52:57 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1C6CA40156; Wed, 18 May 2022 10:52:57 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 1AB80400D6 for ; Wed, 18 May 2022 10:52:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652863976; x=1684399976; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Pv17pBGyt8mbqwW8opOKmnOM7Janc0I8+9uc4qks+2o=; b=J+aoV5YedOH5k8RPqysCKOIRa2n7hLv8NqNw7QNobrEFAo//1VdxUhal LAyVl9/fcNNG5fmjtQRIcS9aXJbD3726Me+F/sQYI8mBE8Q/klgf7FhQw PHxSYnCipDk23C90h0bPDp3MiIo+8a3H+6EKBtPc3zmcn+JibiGz2SG6W UMjPx5pQZVFkz1tTdmRbg1nxEL3mk531WhxdbVQTU+XScZF8ig+22SKTb wI0SOcpJKmZnDCStQXq20yLvuE9Ywn+Jx5e58gg2rUMsse8zGlfIOhlS8 nw9jTiHtyrhNp3xoClQ/hEsVXc6wC0QH/UxTQuGQY5fCRUzWKQ7g/KYGF A==; X-IronPort-AV: E=McAfee;i="6400,9594,10350"; a="252082543" X-IronPort-AV: E=Sophos;i="5.91,234,1647327600"; d="scan'208";a="252082543" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 May 2022 01:52:28 -0700 X-IronPort-AV: E=Sophos;i="5.91,234,1647327600"; d="scan'208";a="545340613" Received: from unknown (HELO daily-regression-131.intel.com) ([10.239.251.131]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 May 2022 01:52:26 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Subject: [dts] [PATCH V1] tests/ice_qinq: optimization script Date: Wed, 18 May 2022 16:52:22 +0800 Message-Id: <20220518085222.1775732-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 recipe has maximum limit is 64 according to the datasheet. reload the driver to delete existing recipes. Signed-off-by: Jiale Song --- tests/TestSuite_ice_qinq.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/TestSuite_ice_qinq.py b/tests/TestSuite_ice_qinq.py index b912b5c6..0804c471 100644 --- a/tests/TestSuite_ice_qinq.py +++ b/tests/TestSuite_ice_qinq.py @@ -469,10 +469,14 @@ class TestICEQinq(TestCase): self.pkt = Packet() self.pmd_output = PmdOutput(self.dut) + def reload_ice(self): + self.dut.send_expect('rmmod ice && modprobe ice', '# ') + def set_up(self): """ Run before each test case. """ + self.reload_ice() self.pci_list = [] if self.default_stats: self.dut.send_expect(