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 5ADC2A00C2; Wed, 22 Apr 2020 10:03:41 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 510521C0AD; Wed, 22 Apr 2020 10:03:41 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 76FA11C036 for ; Wed, 22 Apr 2020 10:03:39 +0200 (CEST) IronPort-SDR: z5xOVz0iElaGQt/bJfDeAiKc9maoygLwIGWQy4be9vCFMQ3hKj3qzThsgCH6A9JGDZkmVw+LmY KDEpKmLEr5kQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2020 01:03:38 -0700 IronPort-SDR: wvGC+v+4c2MaDfQfR4ohGMN4mYUg1W7mIc9moEJWp5yJSPGUNqOcqaJwAbqivDNYacnu3CSsGw UKsZC9HOzKHQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,412,1580803200"; d="scan'208";a="273803874" Received: from unknown (HELO xqm-virtio_tester.sh.intel.com) ([10.240.183.52]) by orsmga002.jf.intel.com with ESMTP; 22 Apr 2020 01:03:37 -0700 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Wed, 22 Apr 2020 15:57:20 +0800 Message-Id: <1587542240-390122-1-git-send-email-qimaix.xiao@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V1]pvp_vhost_user_reconnect: big packets mpps should bigger than 1 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" *. speed of small packets should be larger than 5mpps, big packets largger than 1mpps Signed-off-by: Xiao Qimai --- tests/TestSuite_pvp_vhost_user_reconnect.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_pvp_vhost_user_reconnect.py b/tests/TestSuite_pvp_vhost_user_reconnect.py index a6f7685..0dc2327 100644 --- a/tests/TestSuite_pvp_vhost_user_reconnect.py +++ b/tests/TestSuite_pvp_vhost_user_reconnect.py @@ -279,7 +279,8 @@ class TestPVPVhostUserReconnect(TestCase): traffic_opt = {'delay': 30, } _, pps = self.tester.pktgen.measure_throughput(stream_ids=streams, options=traffic_opt) Mpps = pps / 1000000.0 - self.verify(Mpps > 5, "can not receive packets of frame size %d" % (frame_size)) + check_speed = 5 if frame_size == 64 else 1 + self.verify(Mpps > check_speed, "can not receive packets of frame size %d" % (frame_size)) pct = Mpps * 100 / \ float(self.wirespeed(self.nic, frame_size, 1)) if cycle == 0: -- 1.8.3.1