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 F316AA09EE; Tue, 15 Dec 2020 09:37:46 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CFDBCC9D8; Tue, 15 Dec 2020 09:37:45 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id B9B23C9D4 for ; Tue, 15 Dec 2020 09:37:42 +0100 (CET) IronPort-SDR: 0JBtqc4DMxLcHDxD38GLs3bc3+VKnyinW/r1unMQJ3eFqDTfVZTHF+ox0OsN9c8hU77jibvVyv KBBJ2mUucY7w== X-IronPort-AV: E=McAfee;i="6000,8403,9835"; a="172279336" X-IronPort-AV: E=Sophos;i="5.78,420,1599548400"; d="scan'208";a="172279336" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Dec 2020 00:37:40 -0800 IronPort-SDR: 6b0uUSaJZtAEMuA3kZA9Yov59wAAEVQDryzIaqi5Ocbv06lIGko3ntkx+4pVJb6Xlqv7Xo4mGE u2GGiWH43rgw== X-IronPort-AV: E=Sophos;i="5.78,420,1599548400"; d="scan'208";a="368115687" Received: from unknown (HELO localhost.localdomain) ([10.240.183.222]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Dec 2020 00:37:38 -0800 From: lingwei To: dts@dpdk.org Cc: lingwei Date: Wed, 16 Dec 2020 00:33:05 +0800 Message-Id: <20201215163305.14675-1-weix.ling@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] tests/vm2vm_virtio_user: sync CBDMA case code with test plan 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" sync CBDMA case code with test plan Signed-off-by: lingwei --- tests/TestSuite_vm2vm_virtio_user.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/TestSuite_vm2vm_virtio_user.py b/tests/TestSuite_vm2vm_virtio_user.py index 910552c0..15c1f347 100644 --- a/tests/TestSuite_vm2vm_virtio_user.py +++ b/tests/TestSuite_vm2vm_virtio_user.py @@ -132,8 +132,8 @@ class TestVM2VMVirtioUser(TestCase): launch the testpmd as virtio with vhost_net0 and start to send 251 small packets with diff burst """ - eal_params = ' --socket-mem {} --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net0,queues=1,' \ - '{},queue_size={} '.format(self.socket_mem, path_mode, ringsize) + eal_params = ' --socket-mem {} --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net0,queues={},' \ + '{},queue_size={} '.format(self.socket_mem, self.queue_num, path_mode, ringsize) if self.check_2M_env: eal_params += " --single-file-segments" if 'vectorized_path' in self.running_case: @@ -152,8 +152,8 @@ class TestVM2VMVirtioUser(TestCase): launch the testpmd as virtio with vhost_net0 and start to send 251 small packets with diff burst """ - eal_params = ' --socket-mem {} --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net0,' \ - 'queues={},{},queue_size={} '.format(self.socket_mem, self.queue_num, path_mode, ringsize) + eal_params = ' --socket-mem {} --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net0,queues={},' \ + '{},queue_size={} '.format(self.socket_mem, self.queue_num, path_mode, ringsize) if self.check_2M_env: eal_params += " --single-file-segments " params = "--nb-cores=1 --txd={} --rxd={} {}".format(ringsize, ringsize, extern_params) @@ -676,14 +676,14 @@ class TestVM2VMVirtioUser(TestCase): large_2k_pkts_num = 10 self.queue_num=2 self.nopci=False - path_mode = 'packed_vq=0,mrg_rxbuf=1,in_order=1,server=0' + path_mode = 'server=1,packed_vq=0,mrg_rxbuf=1,in_order=1' ringsize = 4096 extern_params = '--rxq=2 --txq=2' # get dump pcap file of virtio # the virtio0 will send 283 pkts, but the virtio only will received 252 pkts self.logger.info('check pcap file info about virtio') - vdevs = f"--vdev 'eth_vhost0,iface=vhost-net0,queues=2,client=0,dmas=[txq0@{self.cbdma_dev_infos[0]};txq1@{self.cbdma_dev_infos[1]}],dmathr=512' " \ - f"--vdev 'eth_vhost1,iface=vhost-net1,queues=2,client=0,dmas=[txq0@{self.cbdma_dev_infos[2]};txq1@{self.cbdma_dev_infos[3]}],dmathr=512'" + vdevs = f"--vdev 'eth_vhost0,iface=vhost-net0,queues=2,client=1,dmas=[txq0@{self.cbdma_dev_infos[0]};txq1@{self.cbdma_dev_infos[1]}],dmathr=512' " \ + f"--vdev 'eth_vhost1,iface=vhost-net1,queues=2,client=1,dmas=[txq0@{self.cbdma_dev_infos[2]};txq1@{self.cbdma_dev_infos[3]}],dmathr=512'" self.get_dump_file_of_virtio_user_cbdma(path_mode, extern_params, ringsize, vdevs) self.send_8k_pkt() @@ -713,14 +713,14 @@ class TestVM2VMVirtioUser(TestCase): large_2k_pkts_num = 394 self.queue_num=2 self.nopci=False - path_mode = 'packed_vq=0,mrg_rxbuf=1,in_order=0,server=0' + path_mode = 'server=1,packed_vq=0,mrg_rxbuf=1,in_order=0' ringsize = 4096 extern_params = '--rxq=2 --txq=2' # get dump pcap file of virtio # the virtio0 will send 283 pkts, but the virtio only will received 252 pkts self.logger.info('check pcap file info about virtio') - vdevs = f"--vdev 'eth_vhost0,iface=vhost-net0,queues=2,client=0,dmas=[txq0@{self.cbdma_dev_infos[0]};txq1@{self.cbdma_dev_infos[1]}],dmathr=512' " \ - f"--vdev 'eth_vhost1,iface=vhost-net1,queues=2,client=0,dmas=[txq0@{self.cbdma_dev_infos[2]};txq1@{self.cbdma_dev_infos[3]}],dmathr=512'" + vdevs = f"--vdev 'eth_vhost0,iface=vhost-net0,queues=2,client=1,dmas=[txq0@{self.cbdma_dev_infos[0]};txq1@{self.cbdma_dev_infos[1]}],dmathr=512' " \ + f"--vdev 'eth_vhost1,iface=vhost-net1,queues=2,client=1,dmas=[txq0@{self.cbdma_dev_infos[2]};txq1@{self.cbdma_dev_infos[3]}],dmathr=512'" self.get_dump_file_of_virtio_user_cbdma(path_mode, extern_params, ringsize, vdevs) self.send_multiple_pkt_with_8k54_2k394() -- 2.17.1