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 21B4AA034F; Fri, 10 Sep 2021 09:36:42 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A693B40041; Fri, 10 Sep 2021 09:36:41 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 6F4AA4003E for ; Fri, 10 Sep 2021 09:36:40 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10102"; a="217850346" X-IronPort-AV: E=Sophos;i="5.85,282,1624345200"; d="scan'208";a="217850346" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Sep 2021 00:36:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,282,1624345200"; d="scan'208";a="696991254" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmsmga005.fm.intel.com with ESMTP; 10 Sep 2021 00:36:38 -0700 Received: from fmsmsx609.amr.corp.intel.com (10.18.126.89) by fmsmsx601.amr.corp.intel.com (10.18.126.81) 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:36:37 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx609.amr.corp.intel.com (10.18.126.89) 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:36:36 -0700 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (104.47.74.46) 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.12; Fri, 10 Sep 2021 00:36:31 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JI3pxCebdJC51jqXtqQa4MR/pQRGFtp75unTzmUUSCErEwRW8jeMPyG7LNGz5JfAS6ikB6V2Kmp1bbFLI+f+jsdA/wnenwEGiJhxkTO+u8ywWNGo3yth//yyzeZYEBS5blGnuQVuQJcOjXKlCaDsrMoHvBYoFwBn5m+2HdcZ9z/cmHZ4MgOgDrJD94+JasgA25EtZc5cCWX9XmFyl/lbbMQWSWQD1dXTMT29ogoVvc6aJWFJmiTchaGmzLU2X2sOu33BKJZkENRGKDJvs7Xw7P+dS4+1/SRGRg9JJTIYS68t0NfmBupvv8J934+s39K63vUYuWnsmqpjz3XUYMPZvg== 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=olG0SfWJRR5iTlBQTBzzp5UIgQ+5XBqrkRIq+dSUOlA=; b=WJc2DM5v80T1NeaZRyj5i9WUdbynOHqf6JqU7d58lQJxB2zS6ixI2vMGqywXX9ydOiHEJaGtN5GJPsB9LGjyEsAs8KHQs1HjuqkbjHm9HuQhJndGDClf1thPLo1G891dF4M/zg3+TOroZaTUQ9nk3G8RnzQUqQojogZ9gZCzp64dKsWNUrEl9HKWv2X5b3UCwJ/rjycdKxbNYoGuXO6jg9nm/smbBmmVpsbG99BJWdEHoZ/Fx3ig4IKoKmoar1tIdfLalKY9F81pTAaY1yz88kpe/4RM+5px6HT/dsVFu29JcGx1i/jb+oaxCzHdrGCCf3F0c8+nqnn0i2KZbY9BHA== 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=olG0SfWJRR5iTlBQTBzzp5UIgQ+5XBqrkRIq+dSUOlA=; b=CFnwZeLhUA8hUeLkfq644QnIOlDyWRex8HwiFKw/++kxtVCcSU8j4m2TI5Iju5GNgqkzxrMmSXYITdmm9IwyvDqKDuirbS2d7+8gIWEY8Lxo1MHriRbAlWWa4a9AUlsy81XFAWnV5PHXBYduX8OwTeW0RczxXCD1hLukwWpRJHc= Received: from DM6PR11MB3771.namprd11.prod.outlook.com (2603:10b6:5:13f::15) by DM5PR11MB0010.namprd11.prod.outlook.com (2603:10b6:4:6c::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.25; Fri, 10 Sep 2021 07:36:20 +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:36:20 +0000 From: "Yang, YvonneX" To: "Ma, WenwuX" , "dev@dpdk.org" CC: "maxime.coquelin@redhat.com" , "Xia, Chenbo" , "Jiang, Cheng1" , "Hu, Jiayu" , "Pai G, Sunil" , "Wang, YuanX" , "Wang, Yinan" Thread-Topic: [PATCH 1/4] vhost: support async dequeue for split ring Thread-Index: AQHXov0RQ0EHSExOWkqf6ZRVR2f4R6uc5rGw Date: Fri, 10 Sep 2021 07:36:20 +0000 Message-ID: References: <20210906204837.112466-1-wenwux.ma@intel.com> <20210906204837.112466-2-wenwux.ma@intel.com> In-Reply-To: <20210906204837.112466-2-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: 8321c6e1-4fbd-43c9-866b-08d9742daec7 x-ms-traffictypediagnostic: DM5PR11MB0010: 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:2657; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: S/9TApdmrIq61aDjxwPl85OXGW/RiBZ6s/ZUIBAviSjJvWycYZqoMGGuNTMaMj6ktuMCYZP7rFVb2xJcOmwXGYovONsZP0172vAptTOFR6TiTlev4aF5HtOhoG9s6CtzWdK7FztHRDNFRxMVBnUAqZmjtUrB0jlG3f7rXgOW4eba591MP2uGop0YvwgilkGi+OQ3BpCZtce/6lovOKwDy9Al+iXEPEQRGJnFhRzalIpaRLf4yWyHPZGIjlXgU1XO6W6gq4d3hJHaw5PHhkhEWe3FN9Wc7ixwh0zDm+cA5GrVSDs+SQLFvHKOo9/XvyzEMqT0WIzNoD/R0JlhTZSRdO6dBEED2NmDaBBi2ZxueugOTr+jS1Z8UufcSBWDrontdiQiYT60CM1qCa0SoAtOWjDOAE4cLLN2+VHF1UbV5+yU9neOmmfTPbUD0sPiFe/+5pBvjdfN+GRrq9HUqL4hbU52auo4rZbsDfbBEis/o9uMJX4XJhWY7iOrvWROv7Z92UXAIBrKEp4jElWF/etnAHWUwu7h6AKelln4Yl8281oX96QCY9sIkkCCRqRNAdCIHvKtBMKor++UXtEj9HxrWmRym2TUv+A0E56ol1h487t14gBaX1vX7g5yADvAdryZywUKBxoaJLFDLgVZX+tLCw8M1UwdvEoL8K+7VIA3DL/mMuqsK6HBPqQ9cm0juJVbQ7lV9Y2lBcOQcJXAgMY6RQ== 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)(39860400002)(396003)(376002)(136003)(366004)(346002)(8676002)(64756008)(66556008)(66946007)(186003)(55016002)(66446008)(107886003)(33656002)(66476007)(54906003)(122000001)(26005)(38100700002)(5660300002)(52536014)(478600001)(8936002)(76116006)(110136005)(53546011)(38070700005)(316002)(6506007)(71200400001)(86362001)(4326008)(7696005)(9686003)(83380400001)(2906002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?9hemo2ScsMJNKYo2Y7WFNnt540Sz70SmXOgS6LN3sv/UVthJ8FSr0ZdusnuP?= =?us-ascii?Q?74/1dL77EQKuGRGuPkNQpSB0uIxAldMjkRYH8NgAZCxcANNq2ZBxrAjmImNv?= =?us-ascii?Q?bbg5ja5lRBxwZu+a/YUwBBJIFiFEsrhCk+Rkh76OuRjzc0J2pUaddtj4u2XL?= =?us-ascii?Q?RzGqf39ljUZKgkOZE9yMWqFdBLGaNoquJ5VQlceyw2a9HwgkxUbvmQ3WoIe8?= =?us-ascii?Q?tNNxJ8xBI9nLTLSUOGOHrqdZFG0PCdDh33h+fUFlCNq6a7utd53PnWecfR7b?= =?us-ascii?Q?BLA9W76ahBe56Wdn0is2WcFiS2pvlK/9XyrvjzbEJ+j+Av7pvZzOIcZsBH7a?= =?us-ascii?Q?pi3XJHppCmaPEGYbZ7y0cx54Ms3QQG9KdFonjVZXaVLDmH6FFsCUJ9cJr5Cy?= =?us-ascii?Q?mHDKWG7qTVu0+3p/GkFpnRKxo6MDS59mGL0mu5oDeTu+N5Hy9ha85c/ndmLB?= =?us-ascii?Q?pvtxi8B2TAqiX5xDgTaiJv8qA2Fvkzc+FadDzMLNI+SapK2NGkMDIIwtrjt0?= =?us-ascii?Q?s+QEzztZ5/p0KwQAtzuYj3C6BmlK+HnJzOy24x7HDKNkHSiQQL7DR5oepGeT?= =?us-ascii?Q?KbqEierRUDSflBPTmR2R7FzKRgUUzYISfB0OMBP6dGuBEsOXmTy58mDr3RSo?= =?us-ascii?Q?e6gigYkuQMEN1yl0iYmY1VjjJR9Up3pGugVabpIvB35iot/FTdWur4M9iVOG?= =?us-ascii?Q?Ab4YTER3cd0FD5tgTcNio8YbzHBeWj6yLs2kfUnyceURjObreOjdoST3Nw0W?= =?us-ascii?Q?npu1Fa0S+gKx84gapnOIx4AKkElliS0RK92JCZSc2ix1EpCUKbitpcCwASfk?= =?us-ascii?Q?WCyNEqnbtMVXyCKgPaojDC1j96Rw6mLf8JPzzVCeiwQjP1oesabeR5QbdJd0?= =?us-ascii?Q?ANmy/8kO/8db3DpLsx5GZPhHM7A4kfN9/m2gGj9Rbuwk3QoL5UtuP8vJ+CtR?= =?us-ascii?Q?nJv+F9k4zTHfI82ga+b+RQPF0gjFmtPwroCJ+ObIkv9rjNyR7IofKFKxxAZR?= =?us-ascii?Q?bSJixwD2ACM5XPSQ3UOgDCRjLHqDBGksk09ogIW71UOiaiZqxGNym5YWMOt5?= =?us-ascii?Q?oGTO7OnafNkoMZhlNvNeU43M61u9fK2IbZF1bZoXq6GjK3EXaRckPU0FI9Ot?= =?us-ascii?Q?jQ481jLLwpBaamAjQ7aUlI8aDvvuu85MwJ248ptQwCbkKeHOnu08EQ4nlZYT?= =?us-ascii?Q?/I0l/lxFZfnYW1SZ57V01MdEHtKVmkpDscfZdbrlMLtPDYHXfiDhM2MdmTTy?= =?us-ascii?Q?Lj2gfMnOr42MyZtXlNSAwTXAMNfp9mnJw1byfZwimAAkGvMJbrN5kA+7VpVf?= =?us-ascii?Q?sRUDVDviUkiBv6rAP57UsQEH?= 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: 8321c6e1-4fbd-43c9-866b-08d9742daec7 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Sep 2021 07:36:20.2768 (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: CAQtGpUD1wRthYISgr9j0JvUYjv0qFFxWOljN2ospX32eBOO6mLH2VuOwVhkrR1cLNWnU5n35QJmhEXM/+RHvw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR11MB0010 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH 1/4] vhost: 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 > ; Wang, YuanX ; Ma, > WenwuX ; Wang, Yinan > Subject: [PATCH 1/4] vhost: support async dequeue for split ring >=20 > From: Yuan Wang >=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 async channel, thus saving precious CPU cycles. >=20 > Signed-off-by: Yuan Wang > Signed-off-by: Jiayu Hu > Signed-off-by: Wenwu Ma > Tested-by: Yinan Wang > --- > doc/guides/prog_guide/vhost_lib.rst | 9 + > lib/vhost/rte_vhost_async.h | 36 +- > lib/vhost/version.map | 3 + > lib/vhost/vhost.h | 3 +- > lib/vhost/virtio_net.c | 531 ++++++++++++++++++++++++++++ > 5 files changed, 579 insertions(+), 3 deletions(-) >=20 Tested-by: Yvonne Yang