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 2C253A00BE; Mon, 27 Apr 2020 09:50:59 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 21E2C1C193; Mon, 27 Apr 2020 09:50:59 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 57FDF1DB8 for ; Mon, 27 Apr 2020 09:50:55 +0200 (CEST) IronPort-SDR: yQmTZr5S2HWvJQ8vW8cioWHkJGYVryTKe4gEPfwN9RWhT88I29RN0vca/ojyUowZ+mLhDzwW4h AFMrAwfxXsNQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2020 00:50:53 -0700 IronPort-SDR: lLuXS9XNLGhbTmtKUwc+sI9NZvZuYsBgwN0TsYNCSANd2gbxWYNHn/E6Xbe2ORVNYy+7I/P4sP YPckQR6n+eyQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,323,1583222400"; d="scan'208";a="275358461" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga002.jf.intel.com with ESMTP; 27 Apr 2020 00:50:53 -0700 Received: from shsmsx106.ccr.corp.intel.com (10.239.4.159) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 27 Apr 2020 00:50:52 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.129]) by SHSMSX106.ccr.corp.intel.com ([169.254.10.89]) with mapi id 14.03.0439.000; Mon, 27 Apr 2020 15:50:48 +0800 From: "Tu, Lijuan" To: "Wang, Yinan" , "dts@dpdk.org" CC: "Wang, Yinan" Thread-Topic: [dts] [PATCH v1] tests: add test cases in vm2vm_virtio_user suite Thread-Index: AQHWG2QRweXFzDgBdUKPmFCQTvvGaKiMmlQg Date: Mon, 27 Apr 2020 07:50:46 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC12A34@SHSMSX101.ccr.corp.intel.com> References: <20200425173913.48790-1-yinan.wang@intel.com> In-Reply-To: <20200425173913.48790-1-yinan.wang@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH v1] tests: add test cases in vm2vm_virtio_user suite 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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Yinan > Sent: Sunday, April 26, 2020 1:39 AM > To: dts@dpdk.org > Cc: Wang, Yinan > Subject: [dts] [PATCH v1] tests: add test cases in vm2vm_virtio_user suit= e >=20 > From: Wang Yinan >=20 > Signed-off-by: Wang Yinan > --- > tests/TestSuite_vm2vm_virtio_user.py | 145 ++++++++++++++++++++------- > 1 file changed, 107 insertions(+), 38 deletions(-) >=20 > diff --git a/tests/TestSuite_vm2vm_virtio_user.py > b/tests/TestSuite_vm2vm_virtio_user.py > index 17bee0e..a168eb8 100644 > --- a/tests/TestSuite_vm2vm_virtio_user.py > +++ b/tests/TestSuite_vm2vm_virtio_user.py > @@ -125,33 +125,33 @@ class TestVM2VMVirtioUser(TestCase): > self.pmd_vhost.execute_cmd(self.command_line, timeout=3D30) > self.pmd_vhost.execute_cmd('set fwd %s' % fwd_mode) >=20 > - def start_virtio_testpmd_with_vhost_net1(self, path_mode, > extern_params=3D''): > + def start_virtio_testpmd_with_vhost_net1(self, path_mode, > extern_params, ringsize): > """ > launch the testpmd as virtio with vhost_net1 > """ > eal_params =3D > self.dut.create_eal_parameters(cores=3Dself.core_list_virtio1, > no_pci=3DTrue, prefix=3Dself.virtio_prefix, fixed_prefix= =3DTrue) > - vdev_params =3D '-- > vdev=3Dnet_virtio_user1,mac=3D00:01:02:03:04:05,path=3D./vhost- > net1,queues=3D1,%s ' % path_mode > + vdev_params =3D > + '--vdev=3Dnet_virtio_user1,mac=3D00:01:02:03:04:05,path=3D./vhost-net1,= queue > + s=3D1,%s,queue_size=3D%d ' % (path_mode, ringsize) > command_line =3D self.dut.target + "/app/testpmd %s " + \ > - "--socket-mem %s %s -- -i --nb-cores=3D1 --txd=3D256 --rxd= =3D256 %s" > + "--socket-mem %s %s -- -i --nb-cores=3D1 --txd=3D%d --rxd=3D= %d %s" > command_line =3D command_line % (eal_params, self.socket_mem, > - vdev_params, extern_params) > + vdev_params, ringsize, ringsize, > + extern_params) > self.pmd_virtio1.execute_cmd(command_line, timeout=3D30) > self.pmd_virtio1.execute_cmd('set fwd rxonly') > self.pmd_virtio1.execute_cmd('start') >=20 > - def start_virtio_testpmd_with_vhost_net0(self, path_mode, > extern_params=3D''): > + def start_virtio_testpmd_with_vhost_net0(self, path_mode, > extern_params, ringsize): > """ > launch the testpmd as virtio with vhost_net0 > and start to send 251 small packets with diff burst > """ > eal_params =3D > self.dut.create_eal_parameters(cores=3Dself.core_list_virtio0, > no_pci=3DTrue, prefix=3D'virtio0') > - vdev_params =3D '-- > vdev=3Dnet_virtio_user0,mac=3D00:01:02:03:04:05,path=3D./vhost- > net0,queues=3D1,%s ' % path_mode > + vdev_params =3D > + '--vdev=3Dnet_virtio_user0,mac=3D00:01:02:03:04:05,path=3D./vhost-net0,= queue > + s=3D1,%s,queue_size=3D%d ' % (path_mode, ringsize) > command_line =3D self.dut.target + '/app/testpmd %s ' + \ > - '--socket-mem %s %s -- -i --nb-cores=3D1 --txd=3D256 --rxd= =3D256 %s' > + '--socket-mem %s %s -- -i --nb-cores=3D1 --txd=3D%d --rxd=3D= %d %s' > command_line =3D command_line % (eal_params, self.socket_mem, > - vdev_params, extern_params) > + vdev_params, ringsize, ringsize, > + extern_params) >=20 > self.pmd_virtio0.execute_cmd(command_line, timeout=3D30) > self.pmd_virtio0.execute_cmd('set burst 1') @@ -179,7 +179,7 @@ > class TestVM2VMVirtioUser(TestCase): > "--pdump '%s,queue=3D*,rx-dev=3D%s,mbuf-size=3D8000= '" > self.pdump_session.send_expect(command_line % (eal_params, > dump_port, filename), 'Port') >=20 > - def get_dump_file_of_virtio_user(self, path_mode, extern_param=3D'')= : > + def get_dump_file_of_virtio_user(self, path_mode, extern_param, > ringsize): > """ > get the dump file of virtio user > the virtio_user0 always send 251 small pkts + 32 large pkts(8k) = to verify > @@ -187,10 +187,10 @@ class TestVM2VMVirtioUser(TestCase): > """ > dump_port =3D 'device_id=3Dnet_virtio_user1' > self.launch_vhost_testpmd(vdev_num=3D2) > - self.start_virtio_testpmd_with_vhost_net1(path_mode, extern_para= m) > + self.start_virtio_testpmd_with_vhost_net1(path_mode, > + extern_param, ringsize) > self.launch_pdump_to_capture_pkt(dump_port, self.virtio_prefix, > self.dump_virtio_pcap) > # the virtio0 will send 251 small pkts > - self.start_virtio_testpmd_with_vhost_net0(path_mode, extern_para= m) > + self.start_virtio_testpmd_with_vhost_net0(path_mode, > + extern_param, ringsize) > # then send 32 large pkts > self.pmd_virtio0.execute_cmd('stop') > self.pmd_virtio0.execute_cmd('set burst 32') @@ -199,7 +199,7 @@ > class TestVM2VMVirtioUser(TestCase): > # packet will fwd after vhost testpmd start > self.pmd_vhost.execute_cmd('start') >=20 > - def get_dump_file_of_vhost_user(self, path_mode, extern_param=3D''): > + def get_dump_file_of_vhost_user(self, path_mode, extern_params, > ringsize): > """ > get the dump file of vhost testpmd > the virtio0 will alway send 251 small pkts + some large pkts(dep= end on > @@ -210,7 +210,7 @@ class TestVM2VMVirtioUser(TestCase): > self.pmd_vhost.execute_cmd('start') > self.launch_pdump_to_capture_pkt(dump_port, self.vhost_prefix, > self.dump_vhost_pcap) > # the virtio0 send 251 small pkts > - self.start_virtio_testpmd_with_vhost_net0(path_mode, extern_para= m) > + self.start_virtio_testpmd_with_vhost_net0(path_mode, > + extern_params, ringsize) > # if the path_mode is mergeable, then send large pkt to verify > # and packed mergeable and split mergeable is diff about large p= kt > # in packed mergeable, 1 large pkt will occupies 5 ring, so send= 1 large > pkt to verify @@ -233,7 +233,7 @@ class TestVM2VMVirtioUser(TestCase): > """ > # stop pdump > total_pkts_num =3D small_pkts_num + large_8k_pkts_num + > large_2k_pkts_num > - time.sleep(2) > + time.sleep(20) > self.pdump_session.send_expect('^c', '# ', 60) > # quit testpmd > self.quit_all_testpmd() > @@ -301,17 +301,19 @@ class TestVM2VMVirtioUser(TestCase): > large_8k_pkts_num =3D 1 > large_2k_pkts_num =3D 32 > path_mode =3D 'packed_vq=3D1,mrg_rxbuf=3D1,in_order=3D0' > + ringsize =3D 256 > + extern_params =3D '' > # get dump pcap file of virtio > # the virtio0 will send 283 pkts, but the virtio only will recei= ved 252 pkts > # then resend 32 large pkts, all will received > self.logger.info('check pcap file info about virtio') > - self.get_dump_file_of_virtio_user(path_mode) > + self.get_dump_file_of_virtio_user(path_mode, extern_params, > + ringsize) > self.resend_32_large_pkt_from_virtio0() > self.check_packet_payload_valid(self.dump_virtio_pcap, > small_pkts_num, large_8k_pkts_num, large_2k_pkts_num) >=20 > # get dump pcap file of vhost > self.logger.info('check pcap file info about vhost') > - self.get_dump_file_of_vhost_user(path_mode) > + self.get_dump_file_of_vhost_user(path_mode, extern_params, > + ringsize) > self.resend_32_large_pkt_from_virtio0() > self.check_packet_payload_valid(self.dump_vhost_pcap, > small_pkts_num, large_8k_pkts_num, large_2k_pkts_num) >=20 > @@ -329,15 +331,17 @@ class TestVM2VMVirtioUser(TestCase): > large_8k_pkts_num =3D 1 > large_2k_pkts_num =3D 0 > path_mode =3D 'packed_vq=3D1,mrg_rxbuf=3D1,in_order=3D1' > + ringsize =3D 256 > + extern_params =3D '' > # get dump pcap file of virtio > # the virtio0 will send 283 pkts, but the virtio only will recei= ved 252 pkts > self.logger.info('check pcap file info about virtio') > - self.get_dump_file_of_virtio_user(path_mode) > + self.get_dump_file_of_virtio_user(path_mode, extern_params, > + ringsize) > self.check_packet_payload_valid(self.dump_virtio_pcap, > small_pkts_num, large_8k_pkts_num, large_2k_pkts_num) >=20 > # get dump pcap file of vhost > self.logger.info('check pcap file info about vhost') > - self.get_dump_file_of_vhost_user(path_mode) > + self.get_dump_file_of_vhost_user(path_mode, extern_params, > + ringsize) > self.check_packet_payload_valid(self.dump_vhost_pcap, > small_pkts_num, large_8k_pkts_num, large_2k_pkts_num) >=20 > self.logger.info('diff the pcap file of vhost and virtio') @@ -3= 52,16 > +356,18 @@ class TestVM2VMVirtioUser(TestCase): > large_8k_pkts_num =3D 0 > large_2k_pkts_num =3D 0 > path_mode =3D 'packed_vq=3D1,mrg_rxbuf=3D0,in_order=3D0' > + ringsize =3D 256 > + extern_params =3D '' > # get dump pcap file of virtio > # the virtio0 will send 283 pkts, but the virtio only will recei= ved 251 pkts > # the no-mergeable path can not received large pkts > self.logger.info('check pcap file info about virtio') > - self.get_dump_file_of_virtio_user(path_mode) > + self.get_dump_file_of_virtio_user(path_mode, extern_params, > + ringsize) > self.check_packet_payload_valid(self.dump_virtio_pcap, > small_pkts_num, large_8k_pkts_num, large_2k_pkts_num) >=20 > # get dump pcap file of vhost > self.logger.info('check pcap file info about vhost') > - self.get_dump_file_of_vhost_user(path_mode) > + self.get_dump_file_of_vhost_user(path_mode, extern_params, > + ringsize) > self.check_packet_payload_valid(self.dump_vhost_pcap, > small_pkts_num, large_8k_pkts_num, large_2k_pkts_num) >=20 > self.logger.info('diff the pcap file of vhost and virtio') @@ -3= 75,17 > +381,71 @@ class TestVM2VMVirtioUser(TestCase): > small_pkts_num =3D 251 > large_8k_pkts_num =3D 0 > large_2k_pkts_num =3D 0 > - path_mode =3D 'packed_vq=3D1,mrg_rxbuf=3D0,in_order=3D1' > + path_mode =3D 'packed_vq=3D1,mrg_rxbuf=3D0,in_order=3D1,vectoriz= ed=3D1' > + extern_params =3D '--rx-offloads=3D0x10' > + ringsize =3D 256 > # get dump pcap file of virtio > # the virtio0 will send 283 pkts, but the virtio only will recei= ved 251 pkts > # the no-mergeable path can not received large pkts > self.logger.info('check pcap file info about virtio') > - self.get_dump_file_of_virtio_user(path_mode) > + self.get_dump_file_of_virtio_user(path_mode, extern_params, > + ringsize) > self.check_packet_payload_valid(self.dump_virtio_pcap, > small_pkts_num, large_8k_pkts_num, large_2k_pkts_num) >=20 > # get dump pcap file of vhost > self.logger.info('check pcap file info about vhost') > - self.get_dump_file_of_vhost_user(path_mode) > + self.get_dump_file_of_vhost_user(path_mode, extern_params, > ringsize) > + self.check_packet_payload_valid(self.dump_vhost_pcap, > + small_pkts_num, large_8k_pkts_num, large_2k_pkts_num) > + > + self.logger.info('diff the pcap file of vhost and virtio') > + self.check_vhost_and_virtio_pkts_content() > + > + def test_vm2vm_virtio_user_packed_virtqueue_vectorized_path(self): > + """ > + packed virtqueue vm2vm inorder non-mergeable path test > + about non-mergeable path, it can not received large pkts > + """ > + small_pkts_num =3D 251 > + large_8k_pkts_num =3D 0 > + large_2k_pkts_num =3D 0 > + path_mode =3D 'packed_vq=3D1,mrg_rxbuf=3D0,in_order=3D1,vectoriz= ed=3D1' > + extern_params =3D '' > + ringsize =3D 256 > + # get dump pcap file of virtio > + # the virtio0 will send 283 pkts, but the virtio only will recei= ved 251 pkts > + # the no-mergeable path can not received large pkts > + self.logger.info('check pcap file info about virtio') > + self.get_dump_file_of_virtio_user(path_mode, extern_params, ring= size) > + self.check_packet_payload_valid(self.dump_virtio_pcap, > + small_pkts_num, large_8k_pkts_num, large_2k_pkts_num) > + > + # get dump pcap file of vhost > + self.logger.info('check pcap file info about vhost') > + self.get_dump_file_of_vhost_user(path_mode, extern_params, > ringsize) > + self.check_packet_payload_valid(self.dump_vhost_pcap, > + small_pkts_num, large_8k_pkts_num, large_2k_pkts_num) > + > + self.logger.info('diff the pcap file of vhost and virtio') > + self.check_vhost_and_virtio_pkts_content() > + > + def > test_vm2vm_virtio_user_packed_virtqueue_vectorized_path_ringsize_not_p > owerof_2(self): > + """ > + packed virtqueue vm2vm inorder non-mergeable path test > + about non-mergeable path, it can not received large pkts > + """ > + small_pkts_num =3D 251 > + large_8k_pkts_num =3D 0 > + large_2k_pkts_num =3D 0 > + path_mode =3D 'packed_vq=3D1,mrg_rxbuf=3D0,in_order=3D1,vectoriz= ed=3D1' > + extern_params =3D '' > + ringsize =3D 255 > + # get dump pcap file of virtio > + # the virtio0 will send 283 pkts, but the virtio only will recei= ved 251 pkts > + # the no-mergeable path can not received large pkts > + self.logger.info('check pcap file info about virtio') > + self.get_dump_file_of_virtio_user(path_mode, extern_params, ring= size) > + self.check_packet_payload_valid(self.dump_virtio_pcap, > + small_pkts_num, large_8k_pkts_num, large_2k_pkts_num) > + > + # get dump pcap file of vhost > + self.logger.info('check pcap file info about vhost') > + self.get_dump_file_of_vhost_user(path_mode, extern_params, > + ringsize) > self.check_packet_payload_valid(self.dump_vhost_pcap, > small_pkts_num, large_8k_pkts_num, large_2k_pkts_num) >=20 > self.logger.info('diff the pcap file of vhost and virtio') @@ -4= 01,18 > +461,20 @@ class TestVM2VMVirtioUser(TestCase): > large_8k_pkts_num =3D 5 > large_2k_pkts_num =3D 32 > path_mode =3D 'packed_vq=3D0,mrg_rxbuf=3D1,in_order=3D0' > + ringsize =3D 256 > + extern_params =3D '' > # get dump pcap file of virtio > # the virtio0 will send 283 pkts, but the virtio only will recei= ved 256 pkts > # then virtio send 32 large pkts, the virtio will all received > self.logger.info('check pcap file info about virtio') > - self.get_dump_file_of_virtio_user(path_mode) > - self.resend_32_large_pkt_from_virtio0() > - self.check_packet_payload_valid(self.dump_virtio_pcap, > small_pkts_num, large_8k_pkts_num, large_2k_pkts_num) > + self.get_dump_file_of_virtio_user(path_mode, extern_params, ring= size) > + #self.resend_32_large_pkt_from_virtio0() > + self.check_packet_payload_valid(self.dump_vhost_pcap, > + small_pkts_num, large_8k_pkts_num, large_2k_pkts_num) >=20 > # get dump pcap file of vhost > self.logger.info('check pcap file info about vhost') > - self.get_dump_file_of_vhost_user(path_mode) > - self.resend_32_large_pkt_from_virtio0() > + self.get_dump_file_of_vhost_user(path_mode, extern_params, > ringsize) > + #self.resend_32_large_pkt_from_virtio0() > self.check_packet_payload_valid(self.dump_vhost_pcap, > small_pkts_num, large_8k_pkts_num, large_2k_pkts_num) >=20 > self.logger.info('diff the pcap file of vhost and virtio') @@ -4= 29,15 > +491,17 @@ class TestVM2VMVirtioUser(TestCase): > large_8k_pkts_num =3D 1 > large_2k_pkts_num =3D 0 > path_mode =3D 'packed_vq=3D0,mrg_rxbuf=3D1,in_order=3D1' > + ringsize =3D 256 > + extern_params =3D '' > # get dump pcap file of virtio > # the virtio0 will send 283 pkts, but the virtio only will recei= ved 252 pkts > self.logger.info('check pcap file info about virtio') > - self.get_dump_file_of_virtio_user(path_mode) > + self.get_dump_file_of_virtio_user(path_mode, extern_params, > + ringsize) > self.check_packet_payload_valid(self.dump_virtio_pcap, > small_pkts_num, large_8k_pkts_num, large_2k_pkts_num) >=20 > # get dump pcap file of vhost > self.logger.info('check pcap file info about vhost') > - self.get_dump_file_of_vhost_user(path_mode) > + self.get_dump_file_of_vhost_user(path_mode, extern_params, > + ringsize) > self.check_packet_payload_valid(self.dump_vhost_pcap, > small_pkts_num, large_8k_pkts_num, large_2k_pkts_num) >=20 > self.logger.info('diff the pcap file of vhost and virtio') @@ -4= 51,17 > +515,18 @@ class TestVM2VMVirtioUser(TestCase): > small_pkts_num =3D 251 > large_8k_pkts_num =3D 0 > large_2k_pkts_num =3D 0 > - path_mode =3D 'packed_vq=3D0,mrg_rxbuf=3D0,in_order=3D0' > + path_mode =3D 'packed_vq=3D0,mrg_rxbuf=3D0,in_order=3D0,vectoriz= ed=3D1' > + ringsize =3D 256 > extern_params =3D '--enable-hw-vlan-strip' > # get dump pcap file of virtio > # the virtio0 will send 283 pkts, but the virtio only will recei= ved 251 pkts > self.logger.info('check pcap file info about virtio') > - self.get_dump_file_of_virtio_user(path_mode, extern_params) > + self.get_dump_file_of_virtio_user(path_mode, extern_params, > + ringsize) > self.check_packet_payload_valid(self.dump_virtio_pcap, > small_pkts_num, large_8k_pkts_num, large_2k_pkts_num) >=20 > # get dump pcap file of vhost > self.logger.info('check pcap file info about vhost') > - self.get_dump_file_of_vhost_user(path_mode, extern_params) > + self.get_dump_file_of_vhost_user(path_mode, extern_params, > + ringsize) > self.check_packet_payload_valid(self.dump_vhost_pcap, > small_pkts_num, large_8k_pkts_num, large_2k_pkts_num) >=20 > self.logger.info('diff the pcap file of vhost and virtio') @@ -4= 76,15 > +541,17 @@ class TestVM2VMVirtioUser(TestCase): > large_8k_pkts_num =3D 0 > large_2k_pkts_num =3D 0 > path_mode =3D 'packed_vq=3D0,mrg_rxbuf=3D0,in_order=3D1' > + ringsize =3D 256 > + extern_params =3D '--rx-offloads=3D0x10' > # get dump pcap file of virtio > # the virtio0 will send 283 pkts, but the virtio only will recei= ved 251 pkts > self.logger.info('check pcap file info about virtio') > - self.get_dump_file_of_virtio_user(path_mode) > + self.get_dump_file_of_virtio_user(path_mode, extern_params, > + ringsize) > self.check_packet_payload_valid(self.dump_virtio_pcap, > small_pkts_num, large_8k_pkts_num, large_2k_pkts_num) >=20 > # get dump pcap file of vhost > self.logger.info('check pcap file info about vhost') > - self.get_dump_file_of_vhost_user(path_mode) > + self.get_dump_file_of_vhost_user(path_mode, extern_params, > + ringsize) > self.check_packet_payload_valid(self.dump_vhost_pcap, > small_pkts_num, large_8k_pkts_num, large_2k_pkts_num) >=20 > self.logger.info('diff the pcap file of vhost and virtio') @@ -4= 98,16 > +565,18 @@ class TestVM2VMVirtioUser(TestCase): > small_pkts_num =3D 251 > large_8k_pkts_num =3D 0 > large_2k_pkts_num =3D 0 > - path_mode =3D 'packed_vq=3D0,mrg_rxbuf=3D0,in_order=3D0' > + path_mode =3D 'packed_vq=3D0,mrg_rxbuf=3D0,in_order=3D0,vectoriz= ed=3D1' > + ringsize =3D 256 > + extern_params =3D '' > # get dump pcap file of virtio > # the virtio0 will send 283 pkts, but the virtio only will recei= ved 251 pkts > self.logger.info('check pcap file info about virtio') > - self.get_dump_file_of_virtio_user(path_mode) > + self.get_dump_file_of_virtio_user(path_mode, extern_params, > + ringsize) > self.check_packet_payload_valid(self.dump_virtio_pcap, > small_pkts_num, large_8k_pkts_num, large_2k_pkts_num) >=20 > # get dump pcap file of vhost > self.logger.info('check pcap file info about vhost') > - self.get_dump_file_of_vhost_user(path_mode) > + self.get_dump_file_of_vhost_user(path_mode, extern_params, > + ringsize) > self.check_packet_payload_valid(self.dump_vhost_pcap, > small_pkts_num, large_8k_pkts_num, large_2k_pkts_num) >=20 > self.logger.info('diff the pcap file of vhost and virtio') > -- > 2.17.1