From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E6037A0C45; Mon, 22 Nov 2021 09:32:33 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AC29240395; Mon, 22 Nov 2021 09:32:33 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id B7E4D4014E for ; Mon, 22 Nov 2021 09:32:31 +0100 (CET) X-IronPort-AV: E=McAfee;i="6200,9189,10175"; a="320972184" X-IronPort-AV: E=Sophos;i="5.87,254,1631602800"; d="scan'208";a="320972184" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Nov 2021 00:32:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,254,1631602800"; d="scan'208";a="474275388" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orsmga002.jf.intel.com with ESMTP; 22 Nov 2021 00:32:30 -0800 Received: from orsmsx604.amr.corp.intel.com (10.22.229.17) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Mon, 22 Nov 2021 00:32:29 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx604.amr.corp.intel.com (10.22.229.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Mon, 22 Nov 2021 00:32:29 -0800 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (104.47.73.177) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Mon, 22 Nov 2021 00:32:29 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NUHo4C9MqkFJr0uT/Y2fEipxORNKgohqodd99d4wKUc5ki9DyInLFaW1u/7i31Jk9fsEIHM3j49nX/qtFOcO3uWrph5KvED2vUAvO9Z5HlYrobU3AoYX+YUV+JiqdcKIepe+kEn2sQ7RBQfUR/lOrCujfycOJg48xD6R0noMkzKGE4x4HU3KBL3bFJIyxS2nyR/T+Vci17gfeYjYV000GYQ+xND1B9bWOdVvbrtAplINPTeSHcOWyJI8jvMDQhE49gSaIWpGLPCx8hRXx4wUXmjIlCm5tMwzytFJB76ZD3Ue17mcPgt1fmzW6Xd+gxVyNouKSWohV1//qAI+vvkKHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=NW/VJZV2Hx+uXy7+DuwZSCwFGZI9bOf/fs2j06ldUME=; b=L9skpLvV4bmipTekNISleYSbym+0HeQBLYerZzTgIhjgsvGGbTHWqRtw2jXY1Ash6Y8CebMKntr6Ncek8Qf9WHsuJVx/5u8xLuNv8Mtu3s/esILh/cbcMDH4kXxfHw+DSoYqkds5YyxBPuw8dp0mgEUaVIfyIY1xqTS1ovgHcyQRZuBq13DJoGqIiii3RRVU5p3fdR7ul5VDu241oyuWGIv6cRqWbNj+gJLLu5Izv0QCgKCF0JeeQ+m0a4AXcD7JBWCR2clvJUb32+XIZBY306dvXmGCfL5H9zqX0AjCUaj0eah+/ye1W31G6cMdQLHQp+z/SIfy3EvaLn2wIWFDHw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NW/VJZV2Hx+uXy7+DuwZSCwFGZI9bOf/fs2j06ldUME=; b=WlBtQqbxz9vDfQlTWt3WbBkIeHV//VoCX8z3EdrXAJ7oUq+Og/AX27ZJealQXgMGYe05acbhhpxCtm0EdehOZ0sgGmLfKQ133oUD6xNRd9tGdP0eiG7TLqInC8QfyPmIE3QTGUCraAyaRugTZEKsJN65F0gS8CN8bhy37qa/FdI= Received: from BYAPR11MB2648.namprd11.prod.outlook.com (2603:10b6:a02:c7::10) by BY5PR11MB4072.namprd11.prod.outlook.com (2603:10b6:a03:18f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.16; Mon, 22 Nov 2021 08:32:28 +0000 Received: from BYAPR11MB2648.namprd11.prod.outlook.com ([fe80::7c9f:ce39:716d:275f]) by BYAPR11MB2648.namprd11.prod.outlook.com ([fe80::7c9f:ce39:716d:275f%5]) with mapi id 15.20.4690.027; Mon, 22 Nov 2021 08:32:28 +0000 From: "Wang, Yinan" To: "Chen, LingliX" , "dts@dpdk.org" Subject: RE: [dts][PATCH V1 2/2] tests/loopback_virtio_user_server_mode: add two new cases Thread-Topic: [dts][PATCH V1 2/2] tests/loopback_virtio_user_server_mode: add two new cases Thread-Index: AQHX0hOQhZ9SWvF8CkuFGq9qfPax1KwPUqxQ Date: Mon, 22 Nov 2021 08:32:27 +0000 Message-ID: References: <20211105150710.91345-1-linglix.chen@intel.com> <20211105150710.91345-3-linglix.chen@intel.com> In-Reply-To: <20211105150710.91345-3-linglix.chen@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.6.200.16 dlp-product: dlpe-windows authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 26626522-07ed-43ed-046c-08d9ad929e32 x-ms-traffictypediagnostic: BY5PR11MB4072: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:225; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: aSDjxPppKVtzd+tAKB8mhZYOw+yvXAZD9il0PqpP6nWTzQVBTwMgp6irMexBLum5oy4mbbQjetesSpwweufDUh84RSWo2My6ynXTxu+LyoMrO3DfvCV1qWDrpsuwyBW7e7sV9HPO7WdpfmWqhwbhR6lYkEdgG1dly7GYaCfCJ2LBdYTJhlnxgtALc+9Hm3AWb7q8zMlbEHJg//KeS5aMRO57ezWGrx6/FVei/tLEwWffEMY8pK1ltq5f3vwblLC93FrBeqTjPatXddT7LnxY9079k6PCF4MsDH2VUKsFVGYbicsfLDeKE+A7QAxm9cMWBZ729xsSPZTrY4QTqEbBgXimlNcMGvacI4hjXpnZw9eeaBCuv8UmGH9hKq2ddQhIXNqwNXDC/CRilLh6NghifQm3aOzFh6Gi6SmPx2HWrSXR6Y/C2/EmSaz3ZzP/MKgtBixDAIrt1FA4ugpHS0EdABdmoQPdcZgAqP73vFlK8plgF6rjkXFbzvB79qoVf8vioQvJZuaqcFmi0KuOJEBuRhmH6UySNysGbxupEsMm4UG9OQ6EFbWLAz4eKhyr/BrwOzLVorj3S+5iy/eJtt2LM/HL2KTYlRml6PodB3laMGgwVtYwPfWOACUivW65HGsVEAh6VZ7kesylBxHIa6plmgxn8tMAUSedHkizS3VOK3TaMyOMxqT1VB2cCQZ6zetvGFOxr8boIikch+mxC9JX9A== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR11MB2648.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(122000001)(55016002)(83380400001)(5660300002)(38100700002)(38070700005)(316002)(508600001)(7696005)(2906002)(52536014)(186003)(8936002)(53546011)(71200400001)(26005)(64756008)(6506007)(76116006)(66946007)(33656002)(110136005)(66556008)(82960400001)(9686003)(66476007)(30864003)(66446008)(8676002)(86362001)(579004)(559001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?D50c75xTkK3xknrbmGOCqD4AYk25uI6/wroftefHW32PNQxyFeaT8YAe?= =?Windows-1252?Q?q7bzeKWMSj0yHBp9oYVsaqOpPIYkUgsWfQMph6Vf9oA2yMd9uKhFRFpU?= =?Windows-1252?Q?NhQqU2bMoJW545PYi1VjFpTch/+dErRqQvt/Bdd7C+YWl3prFo6WPMJD?= =?Windows-1252?Q?+6saxU28kYFCPNEVsBeufMusoKPYhLrAV1HtQgdVE6ShDM2J6wy5SC8L?= =?Windows-1252?Q?J0/ajAzVFFXgIdMNQWfA5iKYizG7mF6xDecXTbs/yR4UY1HJ2FBhImwH?= =?Windows-1252?Q?aYQebiwGTd6WrSvJkYe8ABkNi7356IKVIPE3ejKRI7ZSZbiB9bmwlV7i?= =?Windows-1252?Q?2d4/P+AILhQw3QZLhO8PuOce3v+wDDUPlbAMtg5Q90pW6VwVzppKkQSb?= =?Windows-1252?Q?NDxkt0tx4xjkHsEf2i2tL7jBIDiG7tX2UHfTljm/ZCfAriFnrIMJIceJ?= =?Windows-1252?Q?jsQWCvmTe2Zr4ghfp2DdpozZWLrGJHexgwS0f+Ydrj3XGCaHJBe2qPwL?= =?Windows-1252?Q?2i5SRWe6PWSYW1j37A3bqUp1qyXFjNiklu5bJ5x7lnqfmmJZXDTkwfkC?= =?Windows-1252?Q?B3dzf0uFNfVZPFLEYGEFh5M/vUTwWdn8UurzPGc9yxqfeZpKvsB1cV7V?= =?Windows-1252?Q?15nT0rn60dwjlUbsHHry6pOSsmP5o2j6Tbswzlf2vBqNCwZfPabT5wlR?= =?Windows-1252?Q?YcX3IdLIJwDFOqY1XJWHzMoNp4gVRmhctxD/iZ8Fdy+eh7Uq+qgLCZy0?= =?Windows-1252?Q?eOYfhDbph2cJWFmMKhOLMGZrxC7emyKWlInYL/sWY0vO7gyTJw5rIc0p?= =?Windows-1252?Q?SlBhiz7gKhBNQT8HemsLPk+c08qgyJRKzXDVudYLxNZIMLKvglGhqeZu?= =?Windows-1252?Q?4L7aiE3/vHNYSYMZdVaZQo7dnA5KJKNr6ZSxeH5raTbJL1Q98DJZc7gR?= =?Windows-1252?Q?nzjikKSkoPxLsJlLNn45wV0auY6uKqmlbvN+yreAPJMiIwYWiJyAJd+J?= =?Windows-1252?Q?qORykIBX67NFm+c5AOdCmH9Q2Oh29eBNLAuxVzQkFz/yXwbUE9SnwJqK?= =?Windows-1252?Q?ee5Q6tpbc7pVnaGzOlQ53LSXORnoRKuKq9aW60ZnKOFO5wn6RTGKr07N?= =?Windows-1252?Q?UgBdBHx5Q9LJ2pdZD8VS279W9rHu1QH0TUsoEBzbN42uL1rDTW7kHKzq?= =?Windows-1252?Q?FINBu7AatX//SdJUNuGYVhHJ1AXYTKhYnByGl5eAKwLNkP4ohiDUbNNP?= =?Windows-1252?Q?gLfJtSfQuvJFC6S7iIVhniG4yLtvcUsDg0BUDVcpwyV4DDN64nBahve2?= =?Windows-1252?Q?3efnXamAM9m50MH8a0EfO3/uhTXA/8wQIceDl3Inc67DkhwAnjaMLdsj?= =?Windows-1252?Q?dRRRxNf5w8iZr4+Qzwaq6IhfAz9UUjlWeHqmNGZ4/07E7BjumH95WLsG?= =?Windows-1252?Q?sp1mlJElwHRKrQZ8cSgIWwf6soS1jC7X+J6lPU3Mv9t26mNwR9zT2Lnq?= =?Windows-1252?Q?aq0L/cIAnNPu1WVtzVDIyBCk/4pQNKmz31My0Wh36QpOHVewHnpF8tsY?= =?Windows-1252?Q?7EYpwbnzWxSRo9SMjP0NXBb2MuslDiZVrQAAxUGAFTw3RrYqhg7nf5fI?= =?Windows-1252?Q?LI0YpPxzUXSNKfBvk8oAIWocaop8Pd0wya3DjZDnf3a5OqLL+GEsq86z?= =?Windows-1252?Q?/uNV1eLAvZUMWEZWUl/v2RKsqfy57oGnSH/vvwcy4qoXhg+ThIWO50o0?= =?Windows-1252?Q?HhVBsKiVFL+o7RiAl/M=3D?= Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR11MB2648.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 26626522-07ed-43ed-046c-08d9ad929e32 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Nov 2021 08:32:27.8385 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: E5b+CqO35WrHxnju5JZe2oF+shzhjfok9Pr4wpiaL/4tL/dB7fI1MRhYEd9hgg7z9Ma+iklIRFJO7MhSY/Q46g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR11MB4072 X-OriginatorOrg: intel.com X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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 Acked-by: Yinan Wang > -----Original Message----- > From: Chen, LingliX > Sent: 2021?11?5? 23:07 > To: dts@dpdk.org > Cc: Wang, Yinan ; Chen, LingliX > > Subject: [dts][PATCH V1 2/2] tests/loopback_virtio_user_server_mode: add > two new cases >=20 > 1. Add 2 new cases: case 13, 14. > 2. Modify case 3, 4, 8, 10 sync with testplan. >=20 > Signed-off-by: Lingli Chen > --- > ...tSuite_loopback_virtio_user_server_mode.py | 353 +++++++++++++++--- > 1 file changed, 295 insertions(+), 58 deletions(-) >=20 > diff --git a/tests/TestSuite_loopback_virtio_user_server_mode.py > b/tests/TestSuite_loopback_virtio_user_server_mode.py > index 7fbfe804..119b178f 100644 > --- a/tests/TestSuite_loopback_virtio_user_server_mode.py > +++ b/tests/TestSuite_loopback_virtio_user_server_mode.py > @@ -37,11 +37,10 @@ Test loopback virtio-user server mode > """ > import re > import time > - > import framework.utils as utils > from framework.pmd_output import PmdOutput > from framework.test_case import TestCase > - > +from framework.packet import Packet >=20 > class TestLoopbackVirtioUserServerMode(TestCase): >=20 > @@ -61,6 +60,12 @@ class TestLoopbackVirtioUserServerMode(TestCase): > self.core_list_host =3D self.core_list[3:6] > self.path=3Dself.dut.apps_name['test-pmd'] > self.testpmd_name =3D self.path.split("/")[-1] > + self.app_pdump =3D self.dut.apps_name['pdump'] > + self.dump_pcap =3D "/root/pdump-rx.pcap" > + self.device_str =3D '' > + self.dut_ports =3D self.dut.get_ports() > + self.ports_socket =3D self.dut.get_numa_id(self.dut_ports[0]) > + self.cbdma_dev_infos =3D [] >=20 > def set_up(self): > """ > @@ -108,13 +113,17 @@ class > TestLoopbackVirtioUserServerMode(TestCase): > if set_fwd_mac: > self.virtio_user_pmd.execute_cmd("set fwd mac", "testpmd> ",= 120) >=20 > - def lanuch_vhost_testpmd_with_multi_queue(self, extern_params=3D""): > + def lanuch_vhost_testpmd_with_multi_queue(self, extern_params=3D"", > set_fwd_mac=3DTrue): > """ > start testpmd with multi qeueue > """ > - self.lanuch_vhost_testpmd(self.queue_number, self.nb_cores, > extern_params=3Dextern_params) > + eal_params =3D "--vdev 'eth_vhost0,iface=3Dvhost- > net,client=3D1,queues=3D{}'".format(self.queue_number) > + param =3D "--rxq=3D{} --txq=3D{} --nb-cores=3D{} {}".format(self= .queue_number, > self.queue_number, self.nb_cores, extern_params) > + self.vhost_pmd.start_testpmd(self.core_list_host, param=3Dparam, > no_pci=3DTrue, ports=3D[], eal_param=3Deal_params, prefix=3D'vhost', > fixed_prefix=3DTrue) > + if set_fwd_mac: > + self.vhost_pmd.execute_cmd("set fwd mac", "testpmd> ", 120) >=20 > - def lanuch_virtio_user_testpmd_with_multi_queue(self, mode, > extern_params=3D""): > + def lanuch_virtio_user_testpmd_with_multi_queue(self, mode, > extern_params=3D"", set_fwd_mac=3DTrue): > """ > start testpmd of vhost user > """ > @@ -126,7 +135,8 @@ class TestLoopbackVirtioUserServerMode(TestCase): > param =3D "{} --nb-cores=3D{} --rxq=3D{} --txq=3D{}".format(exte= rn_params, > self.nb_cores, self.queue_number, self.queue_number) > self.virtio_user_pmd.start_testpmd(cores=3Dself.core_list_user, > param=3Dparam, eal_param=3Deal_param, \ > no_pci=3DTrue, ports=3D[], prefix=3D"virtio", fixed_pref= ix=3DTrue) > - self.virtio_user_pmd.execute_cmd("set fwd mac", "testpmd> ", 120= ) > + if set_fwd_mac: > + self.virtio_user_pmd.execute_cmd("set fwd mac", "testpmd> ",= 120) >=20 > def start_to_send_packets(self, session_rx, session_tx): > """ > @@ -136,6 +146,35 @@ class TestLoopbackVirtioUserServerMode(TestCase): > session_rx.send_command("start", 3) > session_tx.send_expect("start tx_first 32", "testpmd> ", 30) >=20 > + def start_to_send_8k_packets(self, session_rx, session_tx): > + """ > + start the testpmd of vhost-user and virtio-user > + start to send 8k packets > + """ > + session_rx.send_command("start", 3) > + session_tx.send_expect("set txpkts 2000,2000,2000,2000", "testpm= d> > ", 30) > + session_tx.send_expect("start tx_first 32", "testpmd> ", 30) > + > + def start_to_send_8k_packets_csum(self, session_tx): > + """ > + start the testpmd of vhost-user, start to send 8k packets > + """ > + session_tx.send_expect("set fwd csum", "testpmd> ", 30) > + session_tx.send_expect("set txpkts 2000,2000,2000,2000", "testpm= d> > ", 30) > + session_tx.send_expect("set burst 1", "testpmd> ", 30) > + session_tx.send_expect("start tx_first 1", "testpmd> ", 10) > + session_tx.send_expect("stop", "testpmd> ", 30) > + > + def start_to_send_8k_packets_csum_cbdma(self, session_tx): > + """ > + start the testpmd of vhost-user, start to send 8k packets > + """ > + session_tx.send_expect("vhost enable tx all", "testpmd> ", 30) > + session_tx.send_expect("set fwd csum", "testpmd> ", 30) > + session_tx.send_expect("set txpkts 64,64,64,2000,2000,2000", > "testpmd> ", 30) > + session_tx.send_expect("start tx_first 32", "testpmd> ", 5) > + session_tx.send_expect("stop", "testpmd> ", 30) > + > def check_port_throughput_after_port_stop(self): > """ > check the throughput after port stop > @@ -182,6 +221,74 @@ class TestLoopbackVirtioUserServerMode(TestCase): > self.check_port_link_status_after_port_restart() > self.vhost_pmd.execute_cmd("start tx_first 32", "testpmd> ", 120= ) >=20 > + def port_restart_send_8k_packets(self): > + self.vhost_pmd.execute_cmd("stop", "testpmd> ", 120) > + self.vhost_pmd.execute_cmd("port stop 0", "testpmd> ", 120) > + self.check_port_throughput_after_port_stop() > + self.vhost_pmd.execute_cmd("clear port stats all", "testpmd> ", = 120) > + self.vhost_pmd.execute_cmd("port start 0", "testpmd> ", 120) > + self.check_port_link_status_after_port_restart() > + self.vhost_pmd.execute_cmd("set txpkts 2000,2000,2000,2000", > "testpmd> ", 120) > + self.vhost_pmd.execute_cmd("start tx_first 32", "testpmd> ", 120= ) > + > + def launch_pdump_to_capture_pkt(self, dump_port): > + """ > + bootup pdump in dut > + """ > + self.pdump_session =3D self.dut.new_session(suite=3D"pdump") > + cmd =3D self.app_pdump + " " + \ > + "-v --file-prefix=3Dvirtio -- " + \ > + "--pdump 'device_id=3D%s,queue=3D*,rx-dev=3D%s,mbuf-siz= e=3D8000'" > + self.pdump_session.send_expect(cmd % (dump_port, > self.dump_pcap), 'Port') > + > + def check_packet_payload_valid(self, pkt_len): > + """ > + check the payload is valid > + """ > + self.pdump_session.send_expect('^c', '# ', 60) > + time.sleep(3) > + self.dut.session.copy_file_from(src=3D"%s" % self.dump_pcap, dst= =3D"%s" % > self.dump_pcap) > + pkt =3D Packet() > + pkts =3D pkt.read_pcapfile(self.dump_pcap) > + data =3D str(pkts[0]['Raw']) > + > + for i in range(len(pkts)): > + self.verify(len(pkts[i]) =3D=3D pkt_len, "virtio-user0 recei= ve packet's > length not equal %s Byte" %pkt_len) > + value =3D str(pkts[i]['Raw']) > + self.verify(data =3D=3D value, "the payload in receive packe= ts has been > changed from %s" %i) > + self.dut.send_expect("rm -rf %s" % self.dump_pcap, "#") > + > + def relanuch_vhost_testpmd_send_8k_packets(self, extern_params, > cbdma=3DFalse): > + > + self.vhost_pmd.execute_cmd("quit", "#", 60) > + self.logger.info('now reconnet from vhost') > + if cbdma: > + > self.lanuch_vhost_testpmd_with_cbdma(extern_params=3Dextern_params) > + else: > + > self.lanuch_vhost_testpmd_with_multi_queue(extern_params=3Dextern_para > ms, set_fwd_mac=3DFalse) > + self.launch_pdump_to_capture_pkt(self.vuser0_port) > + if cbdma: > + self.start_to_send_8k_packets_csum_cbdma(self.vhost) > + else: > + self.start_to_send_8k_packets_csum(self.vhost) > + self.check_packet_payload_valid(self.pkt_len) > + > + def relanuch_virtio_testpmd_with_multi_path(self, mode, case_info, > extern_params, cbdma=3DFalse): > + > + self.virtio_user_pmd.execute_cmd("quit", "#", 60) > + self.logger.info(case_info) > + self.lanuch_virtio_user_testpmd_with_multi_queue(mode=3Dmode, > extern_params=3Dextern_params, set_fwd_mac=3DFalse) > + self.virtio_user_pmd.execute_cmd("set fwd csum") > + self.virtio_user_pmd.execute_cmd("start") > + self.launch_pdump_to_capture_pkt(self.vuser0_port) > + if cbdma: > + self.start_to_send_8k_packets_csum_cbdma(self.vhost) > + else: > + self.start_to_send_8k_packets_csum(self.vhost) > + self.check_packet_payload_valid(self.pkt_len) > + > + self.relanuch_vhost_testpmd_send_8k_packets(extern_params, > cbdma) > + > def relanuch_vhost_testpmd_with_multi_queue(self): > self.vhost_pmd.execute_cmd("quit", "#", 60) > self.check_link_status(self.virtio_user, "down") > @@ -192,7 +299,7 @@ class TestLoopbackVirtioUserServerMode(TestCase): > self.check_link_status(self.vhost, "down") > self.lanuch_virtio_user_testpmd_with_multi_queue(mode, > extern_params) >=20 > - def calculate_avg_throughput(self, case_info, cycle): > + def calculate_avg_throughput(self, case_info, cycle, Pkt_size=3DTrue= ): > """ > calculate the average throughput > """ > @@ -206,14 +313,19 @@ class > TestLoopbackVirtioUserServerMode(TestCase): > result =3D lines.group(1) > results +=3D float(result) > Mpps =3D results / (1000000 * 10) > - self.verify(Mpps > 5, "port can not receive packets") > - > results_row.append(case_info) > - results_row.append('64') > + if Pkt_size: > + self.verify(Mpps > 5, "port can not receive packets") > + results_row.append('64') > + else: > + self.verify(Mpps > 1, "port can not receive packets") > + results_row.append('8k') > + > results_row.append(Mpps) > results_row.append(self.queue_number) > results_row.append(cycle) > self.result_table_add(results_row) > + self.logger.info(results_row) >=20 > def check_packets_of_each_queue(self): > """ > @@ -247,7 +359,7 @@ class TestLoopbackVirtioUserServerMode(TestCase): >=20 > def test_server_mode_launch_virtio_first(self): > """ > - basic test for virtio-user server mode, launch virtio-user first > + Test Case 2: basic test for split ring server mode, launch virti= o-user > first > """ > self.queue_number =3D 1 > self.nb_cores =3D 1 > @@ -263,7 +375,7 @@ class TestLoopbackVirtioUserServerMode(TestCase): >=20 > def test_server_mode_launch_virtio11_first(self): > """ > - basic test for virtio-user server mode, launch virtio-user first > + Test Case 1: basic test for packed ring server mode, launch virt= io-user > first > """ > self.queue_number =3D 1 > self.nb_cores =3D 1 > @@ -279,7 +391,7 @@ class TestLoopbackVirtioUserServerMode(TestCase): >=20 > def test_server_mode_reconnect_with_virtio11_mergeable_path(self): > """ > - reconnect test with virtio 1.1 mergeable path and server mode > + Test Case 8: reconnect test with virtio 1.1 mergeable path and s= erver > mode > """ > self.queue_number =3D 2 > self.nb_cores =3D 2 > @@ -288,25 +400,25 @@ class > TestLoopbackVirtioUserServerMode(TestCase): > extern_params =3D '--tx-offloads=3D0x0 --enable-hw-vlan-strip --= rss-ip' > self.lanuch_vhost_testpmd_with_multi_queue() > self.lanuch_virtio_user_testpmd_with_multi_queue(mode=3Dmode, > extern_params=3Dextern_params) > - self.start_to_send_packets(self.vhost, self.virtio_user) > - self.calculate_avg_throughput(case_info, "before reconnet") > + self.start_to_send_8k_packets(self.vhost, self.virtio_user) > + self.calculate_avg_throughput(case_info, "before reconnet", > Pkt_size=3DFalse) >=20 > # 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") > + self.start_to_send_8k_packets(self.virtio_user, self.vhost) > + self.calculate_avg_throughput(case_info, "reconnet from vhost", > Pkt_size=3DFalse) >=20 > # reconnet from virtio > self.logger.info('now reconnet from virtio_user') > self.relanuch_virtio_testpmd_with_multi_queue(mode=3Dmode, > extern_params=3Dextern_params) > - self.start_to_send_packets(self.vhost, self.virtio_user) > - self.calculate_avg_throughput(case_info, "reconnet from virtio u= ser") > + self.start_to_send_8k_packets(self.vhost, self.virtio_user) > + self.calculate_avg_throughput(case_info, "reconnet from virtio u= ser", > Pkt_size=3DFalse) >=20 > # port restart > self.logger.info('now vhost port restart') > - self.port_restart() > - self.calculate_avg_throughput(case_info, "after port restart") > + self.port_restart_send_8k_packets() > + self.calculate_avg_throughput(case_info, "after port restart", > Pkt_size=3DFalse) >=20 > self.result_table_print() > self.check_packets_of_each_queue() > @@ -314,7 +426,7 @@ class TestLoopbackVirtioUserServerMode(TestCase): >=20 > def > test_server_mode_reconnect_with_virtio11_non_mergeable_path(self): > """ > - reconnect test with virtio 1.1 non_mergeable path and server mod= e > + Test Case 9: reconnect test with virtio 1.1 non_mergeable path a= nd > server mode > """ > self.queue_number =3D 2 > self.nb_cores =3D 2 > @@ -349,34 +461,34 @@ class > TestLoopbackVirtioUserServerMode(TestCase): >=20 > def > test_server_mode_reconnect_with_virtio11_inorder_mergeable_path(self): > """ > - reconnect test with virtio 1.1 inorder mergeable path and server= mode > + Test Case 10: reconnect test with virtio 1.1 inorder mergeable p= ath > and server mode > """ > - self.queue_number =3D 2 > + self.queue_number =3D 8 > self.nb_cores =3D 2 > case_info =3D 'virtio1.1 inorder mergeable path' > mode =3D "packed_vq=3D1,in_order=3D1,mrg_rxbuf=3D1" > extern_params =3D '--tx-offloads=3D0x0 --enable-hw-vlan-strip --= rss-ip' > self.lanuch_vhost_testpmd_with_multi_queue() > self.lanuch_virtio_user_testpmd_with_multi_queue(mode=3Dmode, > extern_params=3Dextern_params) > - self.start_to_send_packets(self.vhost, self.virtio_user) > - self.calculate_avg_throughput(case_info, "before reconnet") > + self.start_to_send_8k_packets(self.vhost, self.virtio_user) > + self.calculate_avg_throughput(case_info, "before reconnet", > Pkt_size=3DFalse) >=20 > # 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") > + self.start_to_send_8k_packets(self.virtio_user, self.vhost) > + self.calculate_avg_throughput(case_info, "reconnet from vhost", > Pkt_size=3DFalse) >=20 > # reconnet from virtio > self.logger.info('now reconnet from virtio_user') > self.relanuch_virtio_testpmd_with_multi_queue(mode=3Dmode, > extern_params=3Dextern_params) > - self.start_to_send_packets(self.vhost, self.virtio_user) > - self.calculate_avg_throughput(case_info, "reconnet from virtio u= ser") > + self.start_to_send_8k_packets(self.vhost, self.virtio_user) > + self.calculate_avg_throughput(case_info, "reconnet from virtio u= ser", > Pkt_size=3DFalse) >=20 > # port restart > self.logger.info('now vhost port restart') > - self.port_restart() > - self.calculate_avg_throughput(case_info, "after port restart") > + self.port_restart_send_8k_packets() > + self.calculate_avg_throughput(case_info, "after port restart", > Pkt_size=3DFalse) >=20 > self.result_table_print() > self.check_packets_of_each_queue() > @@ -384,11 +496,11 @@ class > TestLoopbackVirtioUserServerMode(TestCase): >=20 > def > test_server_mode_reconnect_with_virtio11_inorder_non_mergeable_path( > self): > """ > - reconnect test with virtio 1.1 inorder non_mergeable path and se= rver > mode > + Test Case 11: reconnect test with virtio 1.1 inorder non_mergeab= le > path and server mode > """ > self.queue_number =3D 2 > self.nb_cores =3D 2 > - case_info =3D 'virtio1.1 non_mergeable path' > + case_info =3D 'virtio1.1 inorder non_mergeable path' > mode =3D "packed_vq=3D1,in_order=3D1,mrg_rxbuf=3D0,vectorized=3D= 1" > extern_params =3D '--rx-offloads=3D0x10 --enable-hw-vlan-strip -= -rss-ip' > self.lanuch_vhost_testpmd_with_multi_queue() > @@ -419,11 +531,11 @@ class > TestLoopbackVirtioUserServerMode(TestCase): >=20 > def > test_server_mode_reconnect_with_virtio11_inorder_vectorized_path(self): > """ > - reconnect test with virtio 1.1 inorder non_mergeable path and se= rver > mode > + Test Case 12: reconnect test with virtio 1.1 inorder vectorized = path > and server mode > """ > self.queue_number =3D 2 > self.nb_cores =3D 2 > - case_info =3D 'virtio1.1 non_mergeable path' > + case_info =3D 'virtio1.1 inorder vectorized path' > mode =3D "packed_vq=3D1,in_order=3D1,mrg_rxbuf=3D0,vectorized=3D= 1" > extern_params =3D '--tx-offloads=3D0x0 --enable-hw-vlan-strip --= rss-ip' > self.lanuch_vhost_testpmd_with_multi_queue() > @@ -454,7 +566,7 @@ class TestLoopbackVirtioUserServerMode(TestCase): >=20 > def > test_server_mode_reconnect_with_virtio10_inorder_mergeable_path(self): > """ > - reconnect test with virtio 1.0 inorder mergeable path and server= mode > + Test Case 4: reconnect test with virtio 1.0 inorder mergeable pa= th and > server mode > """ > self.queue_number =3D 2 > self.nb_cores =3D 2 > @@ -463,25 +575,25 @@ class > TestLoopbackVirtioUserServerMode(TestCase): > extern_params =3D '--tx-offloads=3D0x0 --enable-hw-vlan-strip --= rss-ip' > self.lanuch_vhost_testpmd_with_multi_queue() > self.lanuch_virtio_user_testpmd_with_multi_queue(mode=3Dmode, > extern_params=3Dextern_params) > - self.start_to_send_packets(self.vhost, self.virtio_user) > - self.calculate_avg_throughput(case_info, "before reconnet") > + self.start_to_send_8k_packets(self.vhost, self.virtio_user) > + self.calculate_avg_throughput(case_info, "before reconnet", > Pkt_size=3DFalse) >=20 > # reconnet 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") > + self.start_to_send_8k_packets(self.virtio_user, self.vhost) > + self.calculate_avg_throughput(case_info, "reconnet from vhost", > Pkt_size=3DFalse) >=20 > # reconnet from virtio > self.logger.info('now reconnet from virtio_user') > self.relanuch_virtio_testpmd_with_multi_queue(mode=3Dmode, > extern_params=3Dextern_params) > - self.start_to_send_packets(self.vhost, self.virtio_user) > - self.calculate_avg_throughput(case_info, "reconnet from virtio_u= ser") > + self.start_to_send_8k_packets(self.vhost, self.virtio_user) > + self.calculate_avg_throughput(case_info, "reconnet from virtio_u= ser", > Pkt_size=3DFalse) >=20 > # port restart > self.logger.info('now vhost port restart') > - self.port_restart() > - self.calculate_avg_throughput(case_info, "after port restart") > + self.port_restart_send_8k_packets() > + self.calculate_avg_throughput(case_info, "after port restart", > Pkt_size=3DFalse) >=20 > self.result_table_print() > self.check_packets_of_each_queue() > @@ -489,7 +601,7 @@ class TestLoopbackVirtioUserServerMode(TestCase): >=20 > def > test_server_mode_reconnect_with_virtio10_inorder_non_mergeable_path( > self): > """ > - reconnect test with virtio 1.0 inorder non_mergeable path and se= rver > mode > + Test Case 5: reconnect test with virtio 1.0 inorder non_mergeabl= e > path and server mode > """ > self.queue_number =3D 2 > self.nb_cores =3D 2 > @@ -524,34 +636,34 @@ class > TestLoopbackVirtioUserServerMode(TestCase): >=20 > def test_server_mode_reconnect_with_virtio10_mergeable_path(self): > """ > - reconnect test with virtio 1.0 mergeable path and server mode > + Test Case 3: reconnect test with virtio 1.0 mergeable path and s= erver > mode > """ > - self.queue_number =3D 2 > + self.queue_number =3D 8 > self.nb_cores =3D 2 > case_info =3D 'virtio1.0 mergeable path' > mode =3D "in_order=3D0,mrg_rxbuf=3D1" > extern_params =3D '--tx-offloads=3D0x0 --enable-hw-vlan-strip --= rss-ip' > self.lanuch_vhost_testpmd_with_multi_queue() > self.lanuch_virtio_user_testpmd_with_multi_queue(mode=3Dmode, > extern_params=3Dextern_params) > - self.start_to_send_packets(self.vhost, self.virtio_user) > - self.calculate_avg_throughput(case_info, "before reconnet") > + self.start_to_send_8k_packets(self.vhost, self.virtio_user) > + self.calculate_avg_throughput(case_info, "before reconnet", > Pkt_size=3DFalse) >=20 > # reconnet 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") > + self.start_to_send_8k_packets(self.virtio_user, self.vhost) > + self.calculate_avg_throughput(case_info, "reconnet from vhost", > Pkt_size=3DFalse) >=20 > # reconnet from virtio > self.logger.info('now reconnet from virtio_user') > self.relanuch_virtio_testpmd_with_multi_queue(mode=3Dmode, > extern_params=3Dextern_params) > - self.start_to_send_packets(self.vhost, self.virtio_user) > - self.calculate_avg_throughput(case_info, "reconnet from virtio_u= ser") > + self.start_to_send_8k_packets(self.vhost, self.virtio_user) > + self.calculate_avg_throughput(case_info, "reconnet from virtio_u= ser", > Pkt_size=3DFalse) >=20 > # port restart > self.logger.info('now vhost port restart') > - self.port_restart() > - self.calculate_avg_throughput(case_info, "after port restart") > + self.port_restart_send_8k_packets() > + self.calculate_avg_throughput(case_info, "after port restart", > Pkt_size=3DFalse) >=20 > self.result_table_print() > self.check_packets_of_each_queue() > @@ -559,7 +671,7 @@ class TestLoopbackVirtioUserServerMode(TestCase): >=20 > def > test_server_mode_reconnect_with_virtio10_non_mergeable_path(self): > """ > - reconnect test with virtio 1.0 non_mergeable path and server mod= e > + Test Case 6: reconnect test with virtio 1.0 non_mergeable path a= nd > server mode > """ > self.queue_number =3D 2 > self.nb_cores =3D 2 > @@ -594,7 +706,7 @@ class TestLoopbackVirtioUserServerMode(TestCase): >=20 > def test_server_mode_reconnect_with_virtio10_vector_rx_path(self): > """ > - reconnect test with virtio 1.0 vector_rx path and server mode > + Test Case 7: reconnect test with virtio 1.0 vector_rx path and s= erver > mode > """ > self.queue_number =3D 2 > self.nb_cores =3D 2 > @@ -626,12 +738,137 @@ class > TestLoopbackVirtioUserServerMode(TestCase): > self.check_packets_of_each_queue() > self.close_all_testpmd() >=20 > + def > test_server_mode_reconnect_with_packed_and_split_mergeable_path_pay > load_check(self): > + """ > + Test Case 13: loopback packed ring and split ring mergeable path > payload check test using server mode and multi-queues > + """ > + self.queue_number =3D 8 > + self.nb_cores =3D 1 > + extern_params =3D '--txd=3D1024 --rxd=3D1024' > + case_info =3D 'packed ring mergeable inorder path' > + mode =3D "mrg_rxbuf=3D1,in_order=3D1,packed_vq=3D1" > + > + > self.lanuch_vhost_testpmd_with_multi_queue(extern_params=3Dextern_para > ms, set_fwd_mac=3DFalse) > + self.logger.info(case_info) > + self.lanuch_virtio_user_testpmd_with_multi_queue(mode=3Dmode, > extern_params=3Dextern_params, set_fwd_mac=3DFalse) > + self.virtio_user_pmd.execute_cmd("set fwd csum") > + self.virtio_user_pmd.execute_cmd("start") > + #3. Attach pdump secondary process to primary process by same fi= le- > prefix > + self.vuser0_port =3D 'net_virtio_user0' > + self.launch_pdump_to_capture_pkt(self.vuser0_port) > + self.start_to_send_8k_packets_csum(self.vhost) > + > + #5. Check all the packets length is 8000 Byte in the pcap file > + self.pkt_len =3D 8000 > + self.check_packet_payload_valid(self.pkt_len) > + > + # reconnet from vhost > + self.relanuch_vhost_testpmd_send_8k_packets(extern_params) > + > + # reconnet from virtio > + self.logger.info('now reconnet from virtio_user with other path'= ) > + case_info =3D 'packed ring mergeable path' > + mode =3D "mrg_rxbuf=3D1,in_order=3D0,packed_vq=3D1" > + self.relanuch_virtio_testpmd_with_multi_path(mode, case_info, > extern_params) > + > + case_info =3D 'split ring mergeable inorder path' > + mode =3D "mrg_rxbuf=3D1,in_order=3D1" > + self.relanuch_virtio_testpmd_with_multi_path(mode, case_info, > extern_params) > + > + case_info =3D 'split ring mergeable path' > + mode =3D "mrg_rxbuf=3D1,in_order=3D0" > + self.relanuch_virtio_testpmd_with_multi_path(mode, case_info, > extern_params) > + > + self.close_all_testpmd() > + > + def > test_server_mode_reconnect_with_packed_and_split_mergeable_path_cbd > ma_payload_check(self): > + """ > + Test Case 14: loopback packed ring and split ring mergeable path > cbdma test payload check with server mode and multi-queues > + """ > + self.cbdma_nic_dev_num =3D 8 > + self.get_cbdma_ports_info_and_bind_to_dpdk() > + self.queue_number =3D 8 > + self.vdev =3D f"--vdev 'eth_vhost0,iface=3Dvhost- > net,queues=3D{self.queue_number},client=3D1,dmas=3D[txq0@{self.cbdma_dev_= in > fos[0]};txq1@{self.cbdma_dev_infos[1]};txq2@{self.cbdma_dev_infos[2]};txq > 3@{self.cbdma_dev_infos[3]};txq4@{self.cbdma_dev_infos[4]};txq5@{self.cb > dma_dev_infos[5]};txq6@{self.cbdma_dev_infos[6]};txq7@{self.cbdma_dev_ > infos[7]}]' " > + > + self.nb_cores =3D 1 > + extern_params =3D '--txd=3D1024 --rxd=3D1024' > + case_info =3D 'packed ring mergeable inorder path' > + mode =3D "mrg_rxbuf=3D1,in_order=3D1,packed_vq=3D1" > + > + > self.lanuch_vhost_testpmd_with_cbdma(extern_params=3Dextern_params) > + self.logger.info(case_info) > + self.lanuch_virtio_user_testpmd_with_multi_queue(mode=3Dmode, > extern_params=3Dextern_params, set_fwd_mac=3DFalse) > + self.virtio_user_pmd.execute_cmd("set fwd csum") > + self.virtio_user_pmd.execute_cmd("start") > + # 3. Attach pdump secondary process to primary process by same f= ile- > prefix > + self.vuser0_port =3D 'net_virtio_user0' > + self.launch_pdump_to_capture_pkt(self.vuser0_port) > + self.start_to_send_8k_packets_csum_cbdma(self.vhost) > + > + # 5. Check all the packets length is 6192 Byte in the pcap file > + self.pkt_len =3D 6192 > + self.check_packet_payload_valid(self.pkt_len) > + #reconnet from vhost > + self.relanuch_vhost_testpmd_send_8k_packets(extern_params, > cbdma=3DTrue) > + > + # reconnet from virtio > + self.logger.info('now reconnet from virtio_user with other path'= ) > + case_info =3D 'packed ring mergeable path' > + mode =3D "mrg_rxbuf=3D1,in_order=3D0,packed_vq=3D1" > + self.relanuch_virtio_testpmd_with_multi_path(mode, case_info, > extern_params, cbdma=3DTrue) > + > + case_info =3D 'split ring mergeable inorder path' > + mode =3D "mrg_rxbuf=3D1,in_order=3D1" > + self.relanuch_virtio_testpmd_with_multi_path(mode, case_info, > extern_params, cbdma=3DTrue) > + > + case_info =3D 'split ring mergeable path' > + mode =3D "mrg_rxbuf=3D1,in_order=3D0" > + self.relanuch_virtio_testpmd_with_multi_path(mode, case_info, > extern_params, cbdma=3DTrue) > + > + self.close_all_testpmd() > + > + def lanuch_vhost_testpmd_with_cbdma(self, extern_params=3D""): > + """ > + start testpmd with cbdma > + """ > + param =3D "--rxq=3D{} --txq=3D{} --nb-cores=3D{} {}".format(self= .queue_number, > self.queue_number, self.nb_cores, extern_params) > + self.vhost_pmd.start_testpmd(self.core_list_host, param=3Dparam, > no_pci=3DFalse, ports=3D[], eal_param=3Dself.vdev, prefix=3D'vhost', > fixed_prefix=3DTrue) > + > + def get_cbdma_ports_info_and_bind_to_dpdk(self): > + """ > + get all cbdma ports > + """ > + out =3D self.dut.send_expect('./usertools/dpdk-devbind.py --stat= us-dev > dma', '# ', 30) > + device_info =3D out.split('\n') > + for device in device_info: > + pci_info =3D re.search('\s*(0000:\S*:\d*.\d*)', device) > + if pci_info is not None: > + dev_info =3D pci_info.group(1) > + # the numa id of ioat dev, only add the device which on = same > socket with nic dev > + bus =3D int(dev_info[5:7], base=3D16) > + if bus >=3D 128: > + cur_socket =3D 1 > + else: > + cur_socket =3D 0 > + if self.ports_socket =3D=3D cur_socket: > + self.cbdma_dev_infos.append(pci_info.group(1)) > + self.verify(len(self.cbdma_dev_infos) >=3D 8, 'There no enough c= bdma > device to run this suite') > + self.device_str =3D ' > '.join(self.cbdma_dev_infos[0:self.cbdma_nic_dev_num]) > + self.dut.send_expect('./usertools/dpdk-devbind.py --force -- > bind=3D%s %s' % (self.drivername, self.device_str), '# ', 60) > + > + def bind_cbdma_device_to_kernel(self): > + if self.device_str is not None: > + self.dut.send_expect('modprobe ioatdma', '# ') > + self.dut.send_expect('./usertools/dpdk-devbind.py -u %s' % > self.device_str, '# ', 30) > + self.dut.send_expect('./usertools/dpdk-devbind.py --force -- > bind=3Dioatdma %s' % self.device_str, '# ', 60) > + > def tear_down(self): > """ > Run after each test case. > """ > self.dut.send_expect("killall -s INT %s" % self.testpmd_name, "#= ") > self.close_all_session() > + self.bind_cbdma_device_to_kernel() > time.sleep(2) >=20 > def tear_down_all(self): > -- > 2.33.1