From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7E963A0577; Tue, 7 Apr 2020 11:20:33 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3DA171BE80; Tue, 7 Apr 2020 11:20:33 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id A82F12BD8 for ; Tue, 7 Apr 2020 11:20:31 +0200 (CEST) IronPort-SDR: NAs/Fu95vUlPXj+mEckkVL8LKIt66eDn5LuUVBL1fXUF3PuAv+2TTRDLOnlF+ng79xgaGqsvdv qLmaPH4zqmSw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2020 02:20:25 -0700 IronPort-SDR: E7/Ff+1R+Mr3TXNAsB4GE7rvF5QFVHwQniJt1+URyVUGrCwskrpMDxsAO/fwGByzqU4ZCZtAi4 IsI0oANt0yQw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,353,1580803200"; d="scan'208";a="286170740" Received: from unknown (HELO dpdk-xiaoqimai-dut.sh.intel.com) ([10.240.183.52]) by fmsmga002.fm.intel.com with ESMTP; 07 Apr 2020 02:20:23 -0700 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Tue, 7 Apr 2020 17:14:40 +0800 Message-Id: <1586250880-330597-1-git-send-email-qimaix.xiao@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V1]vhost_dequeue_zero_copy: add --single-file-segments param for 2M ENV 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" Signed-off-by: Xiao Qimai --- tests/TestSuite_vhost_dequeue_zero_copy.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/TestSuite_vhost_dequeue_zero_copy.py b/tests/TestSuite_vhost_dequeue_zero_copy.py index f426fe3..e13e385 100644 --- a/tests/TestSuite_vhost_dequeue_zero_copy.py +++ b/tests/TestSuite_vhost_dequeue_zero_copy.py @@ -91,6 +91,11 @@ class TestVhostDequeueZeroCopy(TestCase): self.vm_dut = None self.big_pkt_record = {} + @property + def check_2M_env(self): + out = self.dut.send_expect("cat /proc/meminfo |grep Hugepagesize|awk '{print($2)}'", "# ") + return True if out == '2048' else False + def get_core_list(self): """ check whether the server has enough cores to run case @@ -150,6 +155,8 @@ class TestVhostDequeueZeroCopy(TestCase): para = " -- -i --tx-offloads=0x0 --nb-cores=%d --txd=1024 --rxd=1024" % self.nb_cores eal_params = self.dut.create_eal_parameters(cores=core_list[len(self.core_list):], prefix='virtio', no_pci=True) + if self.check_2M_env: + eal_params += " --single-file-segments" command_line = testcmd + eal_params + vdev + para self.virtio_user.send_expect(command_line, 'testpmd> ', 120) self.virtio_user.send_expect('set fwd mac', 'testpmd> ', 120) -- 1.8.3.1