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 E14DFA0C50; Wed, 21 Jul 2021 04:31:49 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 700F840689; Wed, 21 Jul 2021 04:31:49 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 719E84014E for ; Wed, 21 Jul 2021 04:31:47 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10051"; a="198631338" X-IronPort-AV: E=Sophos;i="5.84,256,1620716400"; d="scan'208";a="198631338" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jul 2021 19:31:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,256,1620716400"; d="scan'208";a="432757139" Received: from fmsmsx606.amr.corp.intel.com ([10.18.126.86]) by orsmga002.jf.intel.com with ESMTP; 20 Jul 2021 19:31:25 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Tue, 20 Jul 2021 19:31:25 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10 via Frontend Transport; Tue, 20 Jul 2021 19:31:25 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.170) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.10; Tue, 20 Jul 2021 19:31:24 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q9XDJxdoGcNwJRwGvy+T60mHc3ZkNhoHvWyzfKQ83qXGPoIS/mX+voNpXw7TNyhRfbKGAIvVShGQNpSvWyOKteiajXXjFBmIm+HsYFzqki7n4RYdeX/FOH+9xPL+1Znpe+Jb4pb9Z73mxIJ4VpoW3HKwMfpIKQ1z0sFdC7KNODZbQTeyj/bQBc8MjWNbJeje0haYOw2P7WqPPEq2FNNNRgLWQAbVwug6uolP1JlpNrd1Y6CHtPjaFkEZbmy/ydcB2CI4AQftyRJgP2G7+hEufc25g2hLwyY5KV1wx1jmkStNvM81MZZ0FdPTCvR3LluS/a+galQ3WQvgXSA18+YjvA== 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-SenderADCheck; bh=keMTC+cXdDZPh4E696kSZTF5s5dUv256HYiOCDq/EwI=; b=O388BnfMvImfPZQqKnHz/pmFo6Y1n7qVBTchYj8c9QRngJfyz2tBIRpUZRapyKu7wKiUXuaG5KmLWglYKiMluKK0oKBnw6JGIxlU9Hs+xjY+E/z7Ck7xojdwxB61huHwMj81Zz2ilZWKx9LMICeNwjNBlpECmAU6aQw6AkfZrpM/gq1cNsrASJ8kLsjrkW0dZFKa75u65WP+5RIbiBz3Jejetnyn5RTPdg2Fr9uKYlts2I62KDPWs6J7u+cii22gtUBaXXk9BCpk5XXQ0AfshNZ9LqFsmuA2L4jvfM3Y3508bSqQsG/n6EaEwNEfoVzYR+ij3kXIqup41Jr79YA53Q== 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=keMTC+cXdDZPh4E696kSZTF5s5dUv256HYiOCDq/EwI=; b=cJtfi6gUC2j/lt6bZ/jNV77Uj5uRCAabizi2J2ss4mV/tLZoTQ12nOe8XSrf2rHaSyo4+Jn4cTMwlMEx+oL4SOVblLW1NuGQMXNXnLtVtNcopSy5FMfaufpOI2xAnTFRfRAaiYOHe/1fLn+L/IWY9qhT79bRYg02lAOwlgJXO5Q= Received: from BYAPR11MB2648.namprd11.prod.outlook.com (2603:10b6:a02:c7::10) by BY5PR11MB3960.namprd11.prod.outlook.com (2603:10b6:a03:185::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21; Wed, 21 Jul 2021 02:31:21 +0000 Received: from BYAPR11MB2648.namprd11.prod.outlook.com ([fe80::f8e4:c512:756d:b265]) by BYAPR11MB2648.namprd11.prod.outlook.com ([fe80::f8e4:c512:756d:b265%7]) with mapi id 15.20.4331.034; Wed, 21 Jul 2021 02:31:21 +0000 From: "Wang, Yinan" To: "Ma, WenwuX" , "dev@dpdk.org" CC: "maxime.coquelin@redhat.com" , "Xia, Chenbo" , "Jiang, Cheng1" , "Hu, Jiayu" , "Ma, WenwuX" Thread-Topic: [dpdk-dev] [PATCH v7 0/4] support async dequeue for split ring Thread-Index: AQHXfdgrZs50/FoTUUWCN37vzu0eqKtMtTGQ Date: Wed, 21 Jul 2021 02:31:21 +0000 Message-ID: References: <20210602083110.5530-1-yuanx.wang@intel.com> <20210721142051.29327-1-wenwux.ma@intel.com> In-Reply-To: <20210721142051.29327-1-wenwux.ma@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.5.1.3 dlp-product: dlpe-windows 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: 7900d5f1-3666-4350-c667-08d94befa09b x-ms-traffictypediagnostic: BY5PR11MB3960: 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:8882; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: tdYmu+BBND3iQMvW/bKwSzGZB8vDP6lwMNK8q+gK3m++fUyupe4wqhqiHrce1Jabj5NqaXIvWrwqx7Ggp924xsHEcnJGqjU+tLhTEHtycFUDHp8GImO/egSisEaR1u9mq+6Hh82HISXJ6z/DAgqg+vMAERv+HvOlQZ9VszrIX+sTiqVPJOAWxvqg6pLIHbhAN2gJcsqSqVfGUcpxZp3Ucq/gOMbKFKcJuLjpCIJXocKm8MIHQf5AxP8zmDHY9NFKLlgE449C96ShbDGlg5kmC/zU5dsjiTKiQ70pAtCURFXbqFM8DhOhYmVdZ7hdyYccSvznXpG6h9XopqFKlJTg3Pt/tEwMd5Xk0NWGV9ufHFsyxzvT3g7X4p9+D3QwFheHbJHmBj4gR9fNH7diRQtzSrk7QL+I7gtDIZIh129nUaWOWSsyyCDUN7spQiPO+iRI03NRLcBNwwy2Jko1w4JldEkBBqMv7tzESW1ZtDohnu0RDZ1KGKW0t4tm9+q1CFqtfAJfVpCHE3ip8wugMwQo/CKwjoZOUx7u7OKQM2JRE2ZEEJjRx4HzRQNJ1kQ8Jj9dqNhlSis/No8YRes0Jwr8BdnOv8DqDzPAaZI7kdHDOIoIm+RbNhNnzxWiLdF3f93mAB7X0b9Ri8RaWowy7T10Kg3jf0a6lDvuEyQGB802DABr0vyhltZWIIYmrGXhGFcHUGA5m0rjpiNlqD6F3XnOnQ== 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:(4636009)(39860400002)(396003)(376002)(366004)(346002)(136003)(55016002)(66556008)(316002)(53546011)(38100700002)(83380400001)(2906002)(7696005)(5660300002)(186003)(76116006)(6506007)(66476007)(64756008)(66446008)(86362001)(8676002)(66946007)(33656002)(71200400001)(107886003)(478600001)(9686003)(110136005)(26005)(52536014)(54906003)(122000001)(8936002)(4326008)(38070700004); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?lmOHI+wi5XTCbXpB3rLkIAhQQCg7nWOaC47L6Oqd3U+B1QVGy49z/tGp?= =?Windows-1252?Q?dfDOHQkISCKQJS63rVTWnt1bLQRT34LqBmeu2WsJuUGd1+zHmgnXN5Ti?= =?Windows-1252?Q?CHGhubNArmKYeZ/5QpudqBdKFbcDF3b7s1u7I/3zpO2z2GYsPRaznTMj?= =?Windows-1252?Q?BTyeoC5vndUXKS2tszPJE3adeayEqyACnCu/kV47VXV3bDZX5K3XTbtT?= =?Windows-1252?Q?zYSbEKDdlYtpIWfkZoaU2Y2kDbvQedqO4rGQN0z/URYfQNUwVAZ4wYHE?= =?Windows-1252?Q?tOeHAjQyyyk24sSSzDLKbeQQPfDzRVrEGcnEkT59WnEcajlz5P3m/Ph6?= =?Windows-1252?Q?NNKJEHaN9JXVkZiK8QYLYpgHoxpN0NfWkqrn2lM/iK12UFvnkL/yoiNB?= =?Windows-1252?Q?CPVIwUTWk2B47mDXkscdkm/SkQqUmYbICNSRngXnsOS1jBjg5ASNi01g?= =?Windows-1252?Q?tJVe4aTNJG1iQeCUf6Kl31+0lc517X+Edxr8U9R/313N4P2xrE4E9ZfK?= =?Windows-1252?Q?DvH3X+cqaMoMhp/EhOtkAjuBb3gltheEjgacOcxqRfE/ed6sELSjdzWt?= =?Windows-1252?Q?YCV0wGqAgbmU1v0T0gN1JsHrFGyaElfX6EDmuShhKrLoJg2ccPvP8STO?= =?Windows-1252?Q?cRZf8oZ7bTFsksQtUEGrpDQCDz2rf5M4VzsHwjJYEACzb3B49HgfRgbB?= =?Windows-1252?Q?eMhFZjL5QGwAc+pZjvPyDBAOW6Hi2bk51b7nX5WnI42+z5Ka4fL3OkWi?= =?Windows-1252?Q?hK+2kxEueMgcR71DQUlGkCUqLMBU6EhBo1ig7ebHWLUkReRKXwjGt3/s?= =?Windows-1252?Q?IUTCvXhG0ObqfsptowrQYD/KfgRc3xyFRhvi5ICndpJw/nohC9sJ36X8?= =?Windows-1252?Q?4+uqK4U0wU7zFWmQupFKoLk1ULAi2Kgv1VDZbBW9UA9oF255LAT920Nn?= =?Windows-1252?Q?KZu/JfL/K8m7EB7Vm0L6HgbfQ+ZqulXIQS++Jn1BSzbziiDnfufFc3YE?= =?Windows-1252?Q?7YQIZUFar9KSIdlhTNpIhgxRnOpWKafyll5JwTcqaJ4hSPMB8Wrinws5?= =?Windows-1252?Q?1IKWLERhio/xurUTrXRNExRxrJoSwYb5U/K1FjDPFta4qjA8NxZrrPr3?= =?Windows-1252?Q?eYi1w6Rkjw5E2ZmQRyBlAiIe430rkhP2xI2EPnOLsbZeJcNPgTb5xFP3?= =?Windows-1252?Q?R5b1k8ag2p5psAFEpa+L0V8o7hMe8ycAIBAn/Ioew9bASDwYBWbTcn28?= =?Windows-1252?Q?29RfP8wPPYUNFSb5Zt6Gn4wN1fUYtA6UeAsEDCtWL9JyxMtWy+Ks2sbD?= =?Windows-1252?Q?2oJ8o3Ei3nZWhZkVDEK3pYxwIDsMXq1OjlYRzAjsgK+pH/Qr9sG3p3zG?= =?Windows-1252?Q?atMtFlpEtbqRKrBY/DEQSz7Ck7hZXp5b5d8=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: 7900d5f1-3666-4350-c667-08d94befa09b X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Jul 2021 02:31:21.1657 (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: r5kJCNBG1NM8cwG5kNMPv0Uh2jiyRupTTBrRrF9dxxuJWixQwSz1PjdZ9b0KsKbMN5uoXkf5u5fQMFV69HLo1g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR11MB3960 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v7 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" Tested-by: Yinan Wang > -----Original Message----- > From: dev On Behalf Of Wenwu Ma > Sent: 2021?7?21? 22:21 > To: dev@dpdk.org > Cc: maxime.coquelin@redhat.com; Xia, Chenbo ; > Jiang, Cheng1 ; Hu, Jiayu ; > Ma, WenwuX > Subject: [dpdk-dev] [PATCH v7 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, > the application can try to receive packets from the guest with offloading > large copies to the DMA engine, thus saving precious CPU cycles. >=20 > v7: > - Add Reviewed-by to comments in examples/vhost. >=20 > v6: > - Allocate and free packets in bulk. > - struct async_inflight_info aligned to 32 bits. > - Change ASYNC_RX_VHOST to ASYNV_ENQUEUE_VHOST and > ASYNC_TX_VHOST to ASYNV_DEQUEUE_VHOST. >=20 > v5: > - DMA address use IOVA instead of VA. >=20 > v4: > - Fix wrong packet index issue in async dequeue improve > the performance of small packet copies. >=20 > v3: > - Fix compilation warning and error in arm platform. > - Restore the removed function virtio_dev_pktmbuf_alloc, > async dequeue allocate packets in separate. >=20 > v2: > - Refactor vhost datapath as preliminary patch for this series. > - The change of using new API in examples/vhost is put into a > dedicated patch. > - Check queue_id value before using it. > - Async dequeue performance enhancement. 160% performance > improvement > for v2 vs. v1. > - Async dequeue API name change from rte_vhost_try_dequeue_burst to > rte_vhost_async_try_dequeue_burst. > - The completed package updates the used ring directly. >=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 | 224 +++++++---- > examples/vhost/main.h | 33 +- > examples/vhost/virtio_net.c | 16 +- > lib/vhost/rte_vhost_async.h | 39 +- > lib/vhost/version.map | 3 + > lib/vhost/virtio_net.c | 586 ++++++++++++++++++++++++++++ > 10 files changed, 904 insertions(+), 107 deletions(-) >=20 > -- > 2.25.1