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 E5A51A034F; Fri, 10 Sep 2021 09:33:39 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AAD2F40041; Fri, 10 Sep 2021 09:33:39 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id B68294003E for ; Fri, 10 Sep 2021 09:33:37 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10102"; a="219155608" X-IronPort-AV: E=Sophos;i="5.85,282,1624345200"; d="scan'208";a="219155608" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Sep 2021 00:33:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,282,1624345200"; d="scan'208";a="514175195" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga001.jf.intel.com with ESMTP; 10 Sep 2021 00:33:36 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Fri, 10 Sep 2021 00:33:36 -0700 Received: from orsmsx608.amr.corp.intel.com (10.22.229.21) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Fri, 10 Sep 2021 00:33:35 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx608.amr.corp.intel.com (10.22.229.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Fri, 10 Sep 2021 00:33:35 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.172) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Fri, 10 Sep 2021 00:33:35 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J64C/X1GDC2qPp94SkS7LA34NIIMP8FahcCbW6ogoqIntRVoV5gNK//qmsz6sSLqcEzcrmC0ZGWSJ0HJIUqi0aEekzxeP09i1zgFadZUFz5KRLLtV8fgbepWFcTqWtHfXI5FZq3pGrkAIeus6ck5dFJezv8rCRxdytod154Ml2jwGbNKFON6EDSLL6EiHEtG+FEfPXYYLaC7ePUv+IPWOLRzPDui0eB4nBdptzO3nPtPvBWsTHdA+bMQE+EbEHbtl3uZd5ileq3jeBs5zIfNcrW3bbDyDsmKba01UGVP/d3JVxvmS+gOvPb6g8TXXGOFYWR5jdII6goCn5GasqHVow== 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; bh=xkjYH9m0cwuF1yX3Rak/VJ9sZLniKtB8zGvws5kEEm4=; b=V+VOK0lB/inNnRVyU++Ap4TzLgcxm98BOc5LwdZDz/6YWHoracVmoCZFJy9qigvNgi9IZvmqFzaG8Y5P6f9lM3v+SzE7Pl8WWDFeYJcIJsn21LSSev5MZcGkaGCHofZR687ZojE7rgoPLmWrdASS+KGwTcXksmHQmgzY0MOZ/goMgfYH5rSHz8ypTm+8NtJqg24/UJm+9T//ZpZvcgLT8RZHoeQjPXwzNFm/aNtv+9BNeCcNEREH9Qs69oj2IsZI43CBBxMXX3/3kfocpYL2KXHN2aG449mgr8HyUqkvwhVxElru34HOXpU+7p1nLe558X4JgkvSX7rquzO9wzU8xw== 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=xkjYH9m0cwuF1yX3Rak/VJ9sZLniKtB8zGvws5kEEm4=; b=uL6x0SZnxLEChwMB04mklLWEqAfIXAUc1agzYRiLD9Ba2huRSo+mX0vD7dtoq1Ax9rJM46+pfGagc3mbAJ8NgVt+jb1IEisMOE6LfLIwEoOiE02PdFvnrlz5tJ7XVyokMcmN4FRCj0gX4LQx9U/9QL2H2J7YBEqPgfgab8jWfQY= Received: from DM6PR11MB3771.namprd11.prod.outlook.com (2603:10b6:5:13f::15) by DM6PR11MB3628.namprd11.prod.outlook.com (2603:10b6:5:144::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.22; Fri, 10 Sep 2021 07:33:32 +0000 Received: from DM6PR11MB3771.namprd11.prod.outlook.com ([fe80::ac5b:17ce:f5a5:4ee]) by DM6PR11MB3771.namprd11.prod.outlook.com ([fe80::ac5b:17ce:f5a5:4ee%5]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 07:33:32 +0000 From: "Yang, YvonneX" To: "Ma, WenwuX" , "dev@dpdk.org" CC: "maxime.coquelin@redhat.com" , "Xia, Chenbo" , "Jiang, Cheng1" , "Hu, Jiayu" , "Pai G, Sunil" Thread-Topic: [PATCH 0/4] support async dequeue for split ring Thread-Index: AQHXov0QbOAlOKjL3ky3oNe62kGVq6uc5i/w Date: Fri, 10 Sep 2021 07:33:32 +0000 Message-ID: References: <20210906204837.112466-1-wenwux.ma@intel.com> In-Reply-To: <20210906204837.112466-1-wenwux.ma@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b9a60195-6430-4378-f374-08d9742d4a94 x-ms-traffictypediagnostic: DM6PR11MB3628: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3968; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: gZfE45rEIETUs3oD/zf8ehVcBcKlPK+aWiaLomNPN9bJhtLN615+e+oL2XPXona9r/iERTKjkYY7bnJB5Ymh+NRLFEt9yx61JSZmeHo8/poOyKslSbsuaRYqvev04P7zl5hLlbcPDB5VqlvWVz2/ICmqckb2MvgVd5vLW3crb0VEp0p5PllWIOfSjWzOrfcQyol4X6VWa0UV23CC8cpijcfEvcLSHgtIaJsb3lYhuOQdr1H2nVdUagHVnxOOJkawDb5PgvFq2jMZmtYg70t0EKlILXJSHq+kEVJjgIUoidnrbhM0vbFS6Sgh91KPJKCBbJGfU+0pSmnB1kgUNGvBzxVaEjG3Fubxt9ORdG0VlLY+EF022ezn9RSQkThl7BTbBEIOiSBwpnak8pgVTbAVk31r9drRWWlNc/hytBqk16ZG0FCBWgeMtIAHmiiJ7BHuqWQDD2uj8bQAT8OfhqWUDp94ee3NI9OjOLhcPn+H8ewLyWD4CH4B4uwmTp6mtG80ARw14HvUxxluAKHAAvgs5vJ0MiZn/Qh6eQ/4Nj0Ajim46a1X6S5ngpK/lT9J9rwJjIygsXTEwthZruPwN5lPgEOd6hM3u0F9kWLC4RTfA1BKcRzjxULf/WcqQRB3tYUovffPvbKv82J8HG/qNmBk93kj99RW8+XwcLD+mreJeKuoLgPtw+7wHclh9v/+3BaeSwepE0GdptEfwnIxcCSL5Oa+dJHaO95wm0cPyKPo8kHmeOLC+Lfi1mktVsHcgFVdJfk/hA33L6Q68C4ah6muwBipAwJRz+BGWUMhoUo/Ytc= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR11MB3771.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(107886003)(7696005)(6506007)(4326008)(316002)(52536014)(26005)(38070700005)(8676002)(53546011)(33656002)(508600001)(9686003)(186003)(54906003)(110136005)(2906002)(5660300002)(64756008)(38100700002)(66556008)(66446008)(122000001)(55016002)(76116006)(66476007)(86362001)(71200400001)(8936002)(83380400001)(66946007); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?ODXTK53Mn+2gRnbY+DZkHua0YX4ZPlvs4ZCk9MCpxaeEvaCev7mWExNhQyb2?= =?us-ascii?Q?WdzXA4pVTRktTDu0bI+G0ZKaIOFzz12EQZERw/4+0YH1nEWQ/EBFpDHiTGEq?= =?us-ascii?Q?FEN13B0shVqyESlz+d7ouFb+amapPL1XNM+0bWwerWtz89lQo3ZinLW4FRtf?= =?us-ascii?Q?pXNAvV1oUOk+D0pPeiqVzEGMvxIfIGIPSvRCZ8uCQTom+zTXqR4iV4TrcgW/?= =?us-ascii?Q?sBpnYSg+Q7V+7UaNgEjQz8yTlfmaQPGbEn67txrkA0KB4mV4FI8LEZcExKE4?= =?us-ascii?Q?DXqg/spgbTvJLlTvTFO2Q4CmSta7JedvFHxxRlIzgGg5CFqPfYttY+oxWA7H?= =?us-ascii?Q?X+kFSkfXTDawPeWEn3vI5aSLEksToa23EDZ1fZJpNpzUiLmbQrZYk5mgP9nh?= =?us-ascii?Q?pI6N/9gcbRuc2kx78okPmstYsmOwNsWOu9+kTlssgJeFu2tj0t30UAOATKoS?= =?us-ascii?Q?fkA3rn462yKSy3x1dJKNtrxrDID41pwNSLcVIn+Zj3DkI7ox4bs/AggxVmxc?= =?us-ascii?Q?wqvc7WoUqoRMbi6KPPNzJlXLOOur2vMgs17Pomzt2P9AhHooA1h3PqtXUyMH?= =?us-ascii?Q?QVOZGZB7WwGjL5qQQQBg9B490NIz0vJGusbDe5/TBEHLtOWEzhOMIlkf8SUP?= =?us-ascii?Q?/QIFu6vbH4UW+kJjH5qPO3BGRakGJzRjjhspjNzYPn3UBoAOIaukw1aLttC4?= =?us-ascii?Q?tNWYzMY6cOuQVyB9UfTbuua+iN8HgWkDvgFjsOo5MhuWRaSmV232FbIrTHsJ?= =?us-ascii?Q?Xr1VIMq5crWFjd+BCZ12PUBKszRwtmcHQf9/X4g64mKpJ6Km68YT9q34qv/S?= =?us-ascii?Q?M9kp8MFYP3iWmnUp+yCvKdQS3hq/GSqD534yCK3aMrPdCWhyjUCSG250E+AJ?= =?us-ascii?Q?WUnGEynDwObDlXVfVUBXCrFYTVyaCfsT6CmJJoOE7J8rYkoSKCwqAMV6jz2C?= =?us-ascii?Q?gXF3VgXLhk8SBq0Inkx50bEEOQm3bYDDmf21R1IPIuUa5iCn0s1JSA0LMZLw?= =?us-ascii?Q?2XXTPLqMgTHdBypBolUDm3IbX+UB6SmQJX7bfxx1B0TKwY9wMN1RThgBsPLC?= =?us-ascii?Q?sfR44A89J+0dHfTJi3xtnE9ahsiCVlbZA27puYyVRP64frEoBaRXjxQhZbT6?= =?us-ascii?Q?JvvE2hd8dmscp8wlYYAw/3zoMtD+eZWeZXJrL7zb3XC5IuW999nTwse3aqsA?= =?us-ascii?Q?rkA8ZibN6RdaEv7pDmXE+1rodr2oZ4bXRfRz8nlaqhRnSo3BdKEKma3Fix0a?= =?us-ascii?Q?VKZwOIiBrUnxwN63ZqYErIgOvMJWtxwcGTEn2RhPkl+UpVTryNFc1vDCbuZB?= =?us-ascii?Q?C3s=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB3771.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b9a60195-6430-4378-f374-08d9742d4a94 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Sep 2021 07:33:32.2052 (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: BVAMm244apwNq9j+lQK3odNcN1ezWJJZKMI8O/+6lkJmGfMwSxp/PL2UTgetvJqOb2lRWLw9ERPV5CU7bKCQlg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB3628 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH 0/4] support async dequeue for split ring X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: Ma, WenwuX > Sent: Tuesday, September 7, 2021 4:49 AM > To: dev@dpdk.org > Cc: maxime.coquelin@redhat.com; Xia, Chenbo ; > Jiang, Cheng1 ; Hu, Jiayu ; > Pai G, Sunil ; Yang, YvonneX > ; Ma, WenwuX > Subject: [PATCH 0/4] support async dequeue for split ring >=20 > This patch implements asynchronous dequeue data path for split ring. > A new asynchronous dequeue function is introduced. With this function, th= e > application can try to receive packets from the guest with offloading cop= ies > to the DMA engine, thus saving precious CPU cycles. >=20 > note: PATCH 2/4 depends on vhost patch from Jiayu Hu > (http://patches.dpdk.org/project/dpdk/patch/1629463466-450012-1-git- > send-email-jiayu.hu@intel.com/) >=20 > Wenwu Ma (3): > examples/vhost: refactor vhost enqueue and dequeue datapaths > examples/vhost: use a new API to query remaining ring space > examples/vhost: support vhost async dequeue data path >=20 > Yuan Wang (1): > vhost: support async dequeue for split ring >=20 > doc/guides/prog_guide/vhost_lib.rst | 9 + > doc/guides/sample_app_ug/vhost.rst | 9 +- > examples/vhost/ioat.c | 67 +++- > examples/vhost/ioat.h | 25 ++ > examples/vhost/main.c | 269 +++++++++----- > examples/vhost/main.h | 34 +- > examples/vhost/virtio_net.c | 16 +- > lib/vhost/rte_vhost_async.h | 36 +- > lib/vhost/version.map | 3 + > lib/vhost/vhost.h | 3 +- > lib/vhost/virtio_net.c | 531 ++++++++++++++++++++++++++++ > 11 files changed, 881 insertions(+), 121 deletions(-) >=20 > -- > 2.25.1 Tested-by: Yvonne Yang