From patchwork Tue Jul 21 14:41:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ling, WeiX" X-Patchwork-Id: 74518 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 91B5FA0526; Tue, 21 Jul 2020 08:51:00 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 602D11C029; Tue, 21 Jul 2020 08:51:00 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id D53031BFEF for ; Tue, 21 Jul 2020 08:50:53 +0200 (CEST) IronPort-SDR: NvzrxF9c5N4ZjZb1kf5d/NOWB1fWQ4OMJx5AwxZ7RZzEsFIUbNyHLn5q0KPwkE/fY/1LXf0xIq cYaBvwPOb8rw== X-IronPort-AV: E=McAfee;i="6000,8403,9688"; a="214738998" X-IronPort-AV: E=Sophos;i="5.75,377,1589266800"; d="scan'208";a="214738998" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jul 2020 23:50:52 -0700 IronPort-SDR: 36z2qo2i81QBuBWOOPzOG5F6S6lvFou9TzPG6wKcohBb3H5WL4WCT7VEm0LWrhOBNje4fxFmp4 gB9eiyyj/XzQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,377,1589266800"; d="scan'208";a="301515970" Received: from unknown (HELO localhost.localdomain) ([10.240.183.222]) by orsmga002.jf.intel.com with ESMTP; 20 Jul 2020 23:50:51 -0700 From: lingwei To: dts@dpdk.org Cc: lingwei Date: Tue, 21 Jul 2020 14:41:48 +0000 Message-Id: <20200721144148.42009-1-weix.ling@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] tests/TestSuite_ipfrag: Add -w option in set_up_all method X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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 Sender: "dts" Because DPDK upgrade,if no -w option,ip_fragmentation will use all DPDK driver by default. Signed-off-by: lingwei --- tests/TestSuite_ipfrag.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_ipfrag.py b/tests/TestSuite_ipfrag.py index cbcd5fe..8ad2e82 100644 --- a/tests/TestSuite_ipfrag.py +++ b/tests/TestSuite_ipfrag.py @@ -129,10 +129,13 @@ l3fwd_ipv4_route_array[] = {\\\n" numPortThread = len([P0, P1]) / len(cores) result = True errString = '' + eal_param = "" + for i in [P0, P1]: + eal_param += " -w %s" % self.dut.ports_info[i]['pci'] # run ipv4_frag - self.dut.send_expect("examples/ip_fragmentation/build/ip_fragmentation -c %s -n %d -- -p %s -q %s" % ( - coremask, self.dut.get_memory_channels(), portmask, int(numPortThread)), "Link Up", 120) + self.dut.send_expect("examples/ip_fragmentation/build/ip_fragmentation -c %s -n %d %s -- -p %s -q %s" % ( + coremask, self.dut.get_memory_channels(), eal_param, portmask, int(numPortThread)), "Link Up", 120) time.sleep(2) self.txItf = self.tester.get_interface(self.tester.get_local_port(P0))