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 C9AD3A0C4A; Thu, 8 Jul 2021 09:15:28 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5B4E54069C; Thu, 8 Jul 2021 09:15:28 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id CD9F840687 for ; Thu, 8 Jul 2021 09:15:26 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10038"; a="209274817" X-IronPort-AV: E=Sophos;i="5.84,222,1620716400"; d="scan'208";a="209274817" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jul 2021 00:15:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,222,1620716400"; d="scan'208";a="564336196" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by fmsmga001.fm.intel.com with ESMTP; 08 Jul 2021 00:15:21 -0700 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Thu, 8 Jul 2021 00:15:20 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) 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.10 via Frontend Transport; Thu, 8 Jul 2021 00:15:20 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.174) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.4; Thu, 8 Jul 2021 00:15:18 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y3cA7c21Gmf4hep1XPUaHnJ8AQ/D2BarmZGu7wYl5etJUtMbqrhsYtwf/OIc56yMilhrk93Olz85qUZW7JrP+/UoceCXf85e4LJAjp4swqIbmPXjBIy0I0rkk0y7evfDaVfpxzZvP6fEoWGbmxYO6Gb9ngyW9SLJzBWAw7WaTGrcoUX8IxFt++Tm9Ps6H+Zn3RRleMrntcqJaWrfkfLgSJA1EXjJ+M6Da09OuNlNbGxKEVdGokQSS7WAr6KIh/m2Df+KAZxkjPXaBPfyEqZ0vhynGcgrnK77uOIwtxQVzBrleBaTCsvDnqL0rbwYrpwJBYHxBXVRi/ZsqooUaNrCuA== 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=SRaOXPtJhLSEHODbZnVjE+HMr9M2Fr1a373CxGWtyVA=; b=bX4J1LbreMUTqcYncK12gTYzhCca/hfIolr5kii8+y3+lvIZ7c9gDyccNVLBBzHqzK36jyhmQzwGnRXhNug4Ukyokm17SWmECICuiA5UoVVkR+YYsm5LtE3qbipkvaI7/laSRmRUvVGggIZ5f0N3MvpYjLRchhM1zdJbnCKsJYK753b+O7pPq5jslpcpLrZdmSVCTrVnIr+vKl70C9xStMm3Z1n2JB9+M0Q2UIfoL41mzf5FLdAAOccraYkyYloVFCS1qdk/rL/eBOkP5U3TV5MyGgc7Qdst0OzCWhPnHt1i8zjEnICnh7MyYIOoymtJvibM8AS+tGt7PeUJBlJE6w== 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=SRaOXPtJhLSEHODbZnVjE+HMr9M2Fr1a373CxGWtyVA=; b=MY/WBQVC4aXCQZ7mkX89LIx1xpCe3jQOgmnrmlcQvC+p3cIpz2FdLy5mjuFrETUrAH2u6z2UpW0SyV3KP/hPa8BpjaQHbdRoFINEnb/Q36ZFKGm+RFGllkk59iEurcclxy5bw48yaEsHug7zmyal8B4jraE/RJHPSB+F98Kbtmc= Received: from DM6PR11MB3819.namprd11.prod.outlook.com (2603:10b6:5:13f::31) by DM5PR1101MB2234.namprd11.prod.outlook.com (2603:10b6:4:5a::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.31; Thu, 8 Jul 2021 07:15:15 +0000 Received: from DM6PR11MB3819.namprd11.prod.outlook.com ([fe80::3dc3:868b:cec3:513b]) by DM6PR11MB3819.namprd11.prod.outlook.com ([fe80::3dc3:868b:cec3:513b%6]) with mapi id 15.20.4308.022; Thu, 8 Jul 2021 07:15:15 +0000 From: "Pai G, Sunil" To: "Jiang, Cheng1" , "maxime.coquelin@redhat.com" , "Xia, Chenbo" CC: "dev@dpdk.org" , "Hu, Jiayu" , "Yang, YvonneX" Thread-Topic: [dpdk-dev] [PATCH v2 1/3] vhost: add unsafe API to drain pkts in async vhost Thread-Index: AQHXYfNGO3Z9xPt3jk+5d2tEX85xwKs0XEhAgANRQ4CAAAGRMA== Date: Thu, 8 Jul 2021 07:15:15 +0000 Message-ID: References: <20210602042802.31943-1-cheng1.jiang@intel.com> <20210615141513.16163-1-cheng1.jiang@intel.com> <20210615141513.16163-2-cheng1.jiang@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 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: c4576b65-286b-4f1f-18c7-08d941e02261 x-ms-traffictypediagnostic: DM5PR1101MB2234: 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:7691; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 9iu/Uc6XjnQ8B1Z2eKQxFzbjYYi08t4cwG/8Cct4P4GJemQG4NP4/2tAHZqUu+4cNW9JBL/5rncxQMIWqzhOjG1vFEJNe8oNEaaZNmAaXYLGDNudQkhK9MzRCvnnCQ1prDUXLr2KM8qa7gz11iOfgpclggooxG+z0JbWl0aD+witVy1bU8O11pJovuQSegRMgwQWnqBB4iq+4FMO89/9vp11yCbSLoiyR37qvdjA461OGYtJFmVMNIh6IStASmiqaSuMJ7N1gMgQLbCpQjETl1QskyBI77ziYhTWoTqM3QSy3SLTwq+HGnLvBEXJg+AHlKrrnHYSpOpNOeqPYsyppKHjBMs0Ehv1kzIMXLOBZ/uP0i1hb+AXmVCDpUai6U6nD6m/F7LUiHFfsdbLJ9KPFr40jRCUT8TLO7yZd/YizfcvUStj1nTsvcl/uEmWC5Agib9IHay8ePKROo8I26RVWVeDTwOikZWpy2BmHBmbvo3k5e3o+Kkn5+GU/V1mlCE61s6xaXgS0Ut2+P9B1HOGWbDwb7VRdEpeJB7ctj2KFUSpTwBm49ZPvfe2l83R/E2bAFCfMFqQbjoQpslG+gPIwR4OQs64YkB3l/Hhl9hZ4+kJLlqhh0iDJRnmOUfxJC84ahwxlua+aRVnAHnPxaGyMQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR11MB3819.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(346002)(136003)(396003)(39860400002)(376002)(55016002)(4744005)(478600001)(186003)(64756008)(6506007)(9686003)(76116006)(66556008)(7696005)(2906002)(52536014)(26005)(71200400001)(8936002)(66946007)(66446008)(8676002)(316002)(110136005)(107886003)(33656002)(122000001)(86362001)(38100700002)(54906003)(4326008)(66476007)(5660300002)(6636002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?/RpjVuE2oUADIg8wgsqMJNaoA3s3+GnhxB5DJ49AI9qbpX/t6JdRDWHMQh8/?= =?us-ascii?Q?L9UN+I/RWMqr2ep2xWeBNppKruqEQiGDfbi53zNdveEjdhBsoQiGr12y48fR?= =?us-ascii?Q?Th3GuA3DmtWyLpKPDQXpEcyHVg3aAfK/psh2acdYOAApqyso6vDPMVUh9ltw?= =?us-ascii?Q?zUf4OTfIdKkyRRV+mwWwetOcRZsEU5y0PZsmJJEAM/yuT6yVmYMTSDjiTm3J?= =?us-ascii?Q?gQrbGuNi0pnHmdsu1MqbYxxHbM8y5zGPcKOBfpXhuAXYhf+3sF636yoGa0Ko?= =?us-ascii?Q?fq1OpriiOE9HxQ2QUuu7BDcn5UCpZ5o+III0gi2UuB8ZC1UNzCMYhff/eotp?= =?us-ascii?Q?ByjZ2bbss8b7Z//NNsN3cBbCYWSAFQjGJiNoI7jHP3gzsgBKI9m7nBDcS1Zo?= =?us-ascii?Q?ba+D7w546ao6U2qAh6LHZgYnk8PBz1hhRmlt0glerw74bQPelsHZLrTda1aV?= =?us-ascii?Q?P3/jXiorvYlAbn/nkziC+IhSB6PBX45/GoeqrN2L137gXc/uB+v/CdcsKjFz?= =?us-ascii?Q?yUfvlklHeTALR85/xMIZW+evqDBBT3XbpppYRk+NS+7nVRrz3N2GaKvzdEfN?= =?us-ascii?Q?MrubRvZNEeK2GnA/2uv9hQYam0hqw4zgC3zDP3nlsHp/X31VLCiIHSXk33Vi?= =?us-ascii?Q?TS49tLubLupzbhkDIfCn0V3rk6vyb9PLg2HIeJ40fSVm9qkiUZiF3k5go0J5?= =?us-ascii?Q?BBE44nGZT1umWsN5z2JP6Zdon5beu0NwnoAUqf95fIfyTp+z6F3Auna1N6H/?= =?us-ascii?Q?RGtX2mbQ7CfF+HGIR2Fjrl5VeRf44qHQt2Qf6ybccU83V4Mi1aCN6p46IkeO?= =?us-ascii?Q?nsaPUiiufCIUDxtHfoDD0X8QMhBImYZz80kTCviJ/APgaGBsjF1OMz9KmfEH?= =?us-ascii?Q?+NxMUQZau8WILrNm0WK5cnxwqP10fBemy4w0KJkXQF5vNJrGl8X1SrLRQCv3?= =?us-ascii?Q?mSIvRvCgJn+MoKvLrH2MARAbdGKLVkWWgOaNVk/DwYGxEkWYX4K0QF5NTQBL?= =?us-ascii?Q?2ggZDUfSMlRnWx8jfrBbZwLIvgFlDJdbsUXtUWbm1UCLPA8u1VltdplZuFOJ?= =?us-ascii?Q?MlEicT1wmIrsOFHtD8Tc0howA2MeZ9x3xl0KBG/D3UsoS3nx4Ujj2sAROzFk?= =?us-ascii?Q?sn3vgbDiP8jyWhvNSVTDGbktNWrQ01Rodo/J/7Sle1gkhxHCO8BK6779Xlv2?= =?us-ascii?Q?OTwhZaM7C7eoQtvQNOoXp0dHpi2uQxWhDipr54iXf3zNQag2yV/Y6LW3K/+w?= =?us-ascii?Q?1bSB9vhLD4+h84M7N196D32Zlv9KlKnzW/F9jGTIWCGEsM5GYh7XYRw6YcAv?= =?us-ascii?Q?KqxRR1pkjF3s7LmY2t/z5T3T?= 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: DM6PR11MB3819.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c4576b65-286b-4f1f-18c7-08d941e02261 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jul 2021 07:15:15.3395 (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: wISVdugQkVftVC3qxGqqzfCKHGegSzBM3GUSiXZ5eMT6VxyzDq7noV4sR61vGPTey2tmPVRkVA2FZWSxR6iFhg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1101MB2234 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v2 1/3] vhost: add unsafe API to drain pkts in async vhost 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" Hi Cheng,=20 Repsonse inline. > As for this one, I'm not sure why we need have the loop in the applicatio= n. > The function of this API is that caller need to drain all the inflight pk= ts, it > should be called only once to get the job done. > Don't you think? Perhaps yes, but my thought was to provide application the flexibility to c= hange the DMA device per call to check_completed_copies callback if it did = require it. >=20 > Thanks. > Cheng >=20 > > > > > + > > > + return n_pkts; > > > +} > > > + > > > > > > > >