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 CA7EAA00C5; Thu, 30 Apr 2020 07:27:00 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AFF411D8E5; Thu, 30 Apr 2020 07:27:00 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 709F31D8E2 for ; Thu, 30 Apr 2020 07:26:59 +0200 (CEST) IronPort-SDR: JV7l5Ut+kaneKqoq4It5kBqy2oppyGU6s/VNcHYRmng/fMqBMpPa8YS/vFW4L8kOkqqDgjktqF 10yKV1rdqsdA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2020 22:26:58 -0700 IronPort-SDR: xnP8Q6ThlE1Zo7rnyddATWKu51DsKDANMSAuPfPEYmOYWzt/CNR9XUajIw9LOpxoSShQ+J3269 Lw4b3w6wYN2Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,334,1583222400"; d="scan'208";a="303185174" Received: from dpdk-yinan-purley.sh.intel.com ([10.67.117.227]) by FMSMGA003.fm.intel.com with ESMTP; 29 Apr 2020 22:26:56 -0700 From: Yinan To: dts@dpdk.org Cc: Wang Yinan Date: Wed, 29 Apr 2020 22:20:53 +0000 Message-Id: <20200429222053.28091-1-yinan.wang@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH v1] tests: update test commonds for vectorized cases in TestSuite_loopback_virtio_user_server_mode.py 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" From: Wang Yinan Signed-off-by: Wang Yinan --- ...tSuite_loopback_virtio_user_server_mode.py | 41 +++++++++++++++++-- 1 file changed, 38 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_loopback_virtio_user_server_mode.py b/tests/TestSuite_loopback_virtio_user_server_mode.py index b3a73af..32ee1c3 100644 --- a/tests/TestSuite_loopback_virtio_user_server_mode.py +++ b/tests/TestSuite_loopback_virtio_user_server_mode.py @@ -364,7 +364,42 @@ class TestLoopbackVirtioUserServerMode(TestCase): self.queue_number = 2 self.nb_cores = 2 case_info = 'virtio1.1 non_mergeable path' - mode = "packed_vq=1,in_order=1,mrg_rxbuf=0" + mode = "packed_vq=1,in_order=1,mrg_rxbuf=0,vectorized=1" + extern_params = '--rx-offloads=0x10 --enable-hw-vlan-strip --rss-ip' + self.lanuch_vhost_testpmd_with_multi_queue() + self.lanuch_virtio_user_testpmd_with_multi_queue(mode=mode, extern_params=extern_params) + self.start_to_send_packets(self.vhost, self.virtio_user) + self.calculate_avg_throughput(case_info, "before reconnet") + + # reconnect from vhost + self.logger.info('now reconnet from vhost') + self.relanuch_vhost_testpmd_with_multi_queue() + self.start_to_send_packets(self.virtio_user, self.vhost) + self.calculate_avg_throughput(case_info, "reconnet from vhost") + + # reconnet from virtio + self.logger.info('now reconnet from virtio_user') + self.relanuch_virtio_testpmd_with_multi_queue(mode=mode, extern_params=extern_params) + self.start_to_send_packets(self.vhost, self.virtio_user) + self.calculate_avg_throughput(case_info, "reconnet from virtio_user") + + # port restart + self.logger.info('now vhost port restart') + self.port_restart() + self.calculate_avg_throughput(case_info, "after port restart") + + self.result_table_print() + self.check_packets_of_each_queue() + self.close_all_testpmd() + + def test_server_mode_reconnect_with_virtio11_inorder_vectorized_path(self): + """ + reconnect test with virtio 1.1 inorder non_mergeable path and server mode + """ + self.queue_number = 2 + self.nb_cores = 2 + case_info = 'virtio1.1 non_mergeable path' + mode = "packed_vq=1,in_order=1,mrg_rxbuf=0,vectorized=1" extern_params = '--tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip' self.lanuch_vhost_testpmd_with_multi_queue() self.lanuch_virtio_user_testpmd_with_multi_queue(mode=mode, extern_params=extern_params) @@ -504,7 +539,7 @@ class TestLoopbackVirtioUserServerMode(TestCase): self.queue_number = 2 self.nb_cores = 2 case_info = 'virtio1.0 non_mergeable path' - mode = "in_order=0,mrg_rxbuf=0" + mode = "in_order=0,mrg_rxbuf=0,vectorized=1" extern_params = '--tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip' self.lanuch_vhost_testpmd_with_multi_queue() self.lanuch_virtio_user_testpmd_with_multi_queue(mode=mode, extern_params=extern_params) @@ -539,7 +574,7 @@ class TestLoopbackVirtioUserServerMode(TestCase): self.queue_number = 2 self.nb_cores = 2 case_info = 'virtio1.0 vector_rx path' - mode = "in_order=0,mrg_rxbuf=0" + mode = "in_order=0,mrg_rxbuf=0,vectorized=1" self.lanuch_vhost_testpmd_with_multi_queue() self.lanuch_virtio_user_testpmd_with_multi_queue(mode=mode) self.start_to_send_packets(self.vhost, self.virtio_user) -- 2.17.1