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 14A2EA00C5; Mon, 24 Oct 2022 11:25:17 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BFDE040696; Mon, 24 Oct 2022 11:25:16 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 12792400D6 for ; Mon, 24 Oct 2022 11:25:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666603515; x=1698139515; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=3el1r3Jq/OJsrzx41p27I25+Bl3eBIeixrRodq7c/u8=; b=iMs8OHUMMET1I8ELizVpES0uALnZ48i5YG42q4wu2YKM3yR+AoPcy8aO vDxmw81hKUzs8sd4e9OTweQAsdpWvgtiSCem5tsZIWyd0bvsgUbMjPpqu uisPRahLB2Mc/xv4xgYPsgJeL25uZ6v6e18bnv5PpoVXuPBQ5s5oJcjQv Ox8abOeL3HughT+bKN18K6rK8AQTKVX+jLRmcPTzhVvZhekpVPOVJ973J btsgum0QZUEB9VYE9lyH02/o3yVGQGu4sS6fVzr6Zf111/Fh9BYGvejud x4AIuh4phAsMa5wIoWkEQzH6XTbrDol1bRtxqOuje1PmQHtzONzRaSvdq w==; X-IronPort-AV: E=McAfee;i="6500,9779,10509"; a="294774956" X-IronPort-AV: E=Sophos;i="5.95,207,1661842800"; d="scan'208";a="294774956" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Oct 2022 02:25:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10509"; a="631201453" X-IronPort-AV: E=Sophos;i="5.95,207,1661842800"; d="scan'208";a="631201453" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga002.jf.intel.com with ESMTP; 24 Oct 2022 02:25:14 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) 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.2375.31; Mon, 24 Oct 2022 02:25:13 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) 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.2375.31; Mon, 24 Oct 2022 02:25:12 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Mon, 24 Oct 2022 02:25:12 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.175) 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.2375.31; Mon, 24 Oct 2022 02:25:11 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YIuAIBpnwy3b7JMW+N850ahxKeGDxmYcHKHrmGODUkyu2XGKMiBBhWLA1te8OxipqfniRnHB6Dy2u32D3EpBYwducLCwzquvRVRrVbmOcq/6L8OVajne1THJTN8+APyOF09dJ1Qjne76ff0/ojfLtIosx8hQBcQDpC2HwM6o41WzWOXNVBK6MS0xDHzabJoH8DgMSw2O/tm68Bt/LNEXV4V2Vtxg32ObAWxIqD7FCcaJ8GRqktGw9AeW8nkkGHYP2fxmVw58hozCEw55smSO9RJpZf7G5ElY/lLsHgRvY1oiB/oc9wtzpeNuj0iFb/hKzm+9aHO/jsTam9w3WHOm2Q== 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=6RZh5bHKKkb0uFmPQ0bKnPeWpK5bX+nhTIvYk87ooq0=; b=OqlPOfkz5w7h3TnqWU9b3Og3HaW0m50gx2VM2nX/iXAahXpVFAeptEjVLAf+BfP1FOUCqFpU0MAwdNkMpFMU6YTmUs6trgRJuxHR7G97vyUYssZX/6nDGgAvuqcDJGKLC+ta8aWfMvSF6+MxB45Vbb7ZsELAhHucfB0V+GRH7CNYU6EgQzMLrCmbkG1doISgiPIpCjDBkDPMWjrarBou2+IsVY3vUVL28Xi15F+MDuvlndwBOeAi9Xh3gh3aBAC3QXKdLpUSHmu0LLu8SQZrn4lFUj3/liHS9zKnclk38RF04/Y0rB5MVsgc+/FHwE9iu5/T+UveBM3N87r7NzoVmw== 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 Received: from PH7PR11MB6953.namprd11.prod.outlook.com (2603:10b6:510:204::6) by PH0PR11MB4901.namprd11.prod.outlook.com (2603:10b6:510:3a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.23; Mon, 24 Oct 2022 09:25:09 +0000 Received: from PH7PR11MB6953.namprd11.prod.outlook.com ([fe80::23da:cc93:ad21:d969]) by PH7PR11MB6953.namprd11.prod.outlook.com ([fe80::23da:cc93:ad21:d969%9]) with mapi id 15.20.5723.033; Mon, 24 Oct 2022 09:25:09 +0000 From: "Wang, YuanX" To: "Xia, Chenbo" , Maxime Coquelin CC: "dev@dpdk.org" , "Hu, Jiayu" , "Jiang, Cheng1" , "Ma, WenwuX" , "He, Xingguang" Subject: RE: [PATCH v5] net/vhost: support asynchronous data path Thread-Topic: [PATCH v5] net/vhost: support asynchronous data path Thread-Index: AQHY53p08zj36sBUjUqwUls4gcMTO64dP8UAgAAEslA= Date: Mon, 24 Oct 2022 09:25:09 +0000 Message-ID: References: <20220814150636.2260317-1-jiayu.hu@intel.com> <20221024151434.1051251-1-yuanx.wang@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH7PR11MB6953:EE_|PH0PR11MB4901:EE_ x-ms-office365-filtering-correlation-id: 3c7c9c6f-e693-4810-3858-08dab5a1a574 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: +KmwQKsMj2hz+xFQiJMK726BBOaNlRYK+AC1jQrHBYcsr5ajIDR7ph5L9Nq14LpC7QdVUrBT550gnlwIuNjrAfTdkry1ySYb4ahBw8aZcO9cG1VCmCG1kx1IJlMDS/3OPCk8Hy/q/qYDUgvCCFkbVaTBrBUrKcsPLEd/95jpXOUxlNx+IQSUmY4zOM8E9sDuuJlO/WMfBCgk1RKcI2LUlCEFkUAsUO/AFH5Z1slKL/rOLYj+6f7KCRbPVIu8ONA3YU47Jn1FoVI1RE3nLY0nIqVZszKGykrPFiDvwD5PyuU25fY4axjOALMnZm5XMCjLPNrveETYP7r5qL3c5jX4g1ePnVf5Fb+qVe8SXiZofJiCqkWqcSXQc+/I9v1Qm3EyHV3j4ABpS7J0HKRhYzdSSCcqmrDIsXCJPTyQyn0/P0F3HNVhhx/qlxboZQQCB7JwXaQIrZbfyC9Bm+DhJIueFEqG+jjaDQOOU/lfWhOzeQrp8X9F/SbHMPVI/iIPK+/INkpx7LjL3HUXdSz4i3b+kXS+p+XLwJnc3L9aOBpMZhslPiLsshMM8ONW90bmX170MXer3ZWxgfa8sPvUs4Q0OEs+ymEqIEJv8lhNXsKGZeZLwcOZ1SGxpuC7SygMqPQ/aabElv19cnvAtNjFP4oKiMEgdz5ehOV2MXDPRz4eWJZ9sX+Hgd8zxdA4iFIWN2VynIGjH7RyETGLHAg60CzlEIrZ48LGr7/FE2ToPR7fZ7Vv16KGgiQcQuRYFrBgEyxyXPA7LL/lwBVv4m5rCQ7TdQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH7PR11MB6953.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(39860400002)(366004)(136003)(396003)(346002)(376002)(451199015)(71200400001)(86362001)(83380400001)(478600001)(107886003)(6506007)(4326008)(8676002)(53546011)(7696005)(41300700001)(9686003)(26005)(5660300002)(316002)(76116006)(110136005)(64756008)(66446008)(66476007)(66556008)(66946007)(54906003)(52536014)(8936002)(38100700002)(122000001)(33656002)(55016003)(186003)(2906002)(38070700005)(82960400001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?GMMV/bVgNpg6bcCqlrPCHl4HqRpZK+yoKCdbQtBQndiEg1UGmhVgbuphja9A?= =?us-ascii?Q?VTGtDE5oPmTgJc1AT1JHZZ9NUX7D2Ttt+OmWN0TOX8bmQicefT1XiU2WUVM9?= =?us-ascii?Q?4koSJ4SGHRAcvojmQCp3KtWrA5SIMGcOJy1u0S+dggN72/9AeguNdeYPqIF5?= =?us-ascii?Q?QRD5rB23EVZFjquSLNh2Vo21FRPTxQb7++ErYGptJNLTw2KWcwZUZ24L7tMF?= =?us-ascii?Q?pZLN89gH5aXRdkj/JdOwhfWWZxC/AyrCwd1befUjGXCG+36kB+chqIZ5MB1r?= =?us-ascii?Q?Fd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QvpJzgO2iCbf5sDBrxnKQKr1s?= =?us-ascii?Q?idCyrceqesp3EEiMcf0rlcJxTZmE1RVDmi+ntiza65wdm/05Luc6u+fSk81J?= =?us-ascii?Q?wedBlQyW7e5mW0GLrzrkfyIbGjEYc/336Y7l2YJduQ/Dvh4dCS0cGJWMexlf?= =?us-ascii?Q?8wJzZbTkwnQcHqo7aBGnsGoDd13s1uJYB350t0jzn7CE2K68v41DdQW4jZPZ?= =?us-ascii?Q?rJ1p2VK87UgE6aTktpW/lsB3bBhd8PCrUSl1ZxPMMYH6mj/qz34XwgFdwLFO?= =?us-ascii?Q?VDmXRUcOBXYauhkFiT3QxCBfAc0pgWaeVxdXET3sGthaKuc3Sn6zVmjrLjcz?= =?us-ascii?Q?4bpA32tV7HOo7ejfAYuX87yHkPHNv4V/zy1RJFljJ/mnqLJEsmilP12um9ck?= =?us-ascii?Q?oZBWRVOS1iJMXl+L2aojcDRnWvSXEafQCaVGgK0d?= 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: PH7PR11MB6953.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3c7c9c6f-e693-4810-3858-08dab5a1a574 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Oct 2022 09:25:09.6096 (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: mDUY+jN5LR/K2ZPzP4zaOXsvH84R8FL+omoLlzxqFi8u3HLerQqZdKJSRKrRGxmQCFHG/SjDkvsntOaRkjP2Eg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB4901 X-OriginatorOrg: intel.com 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 Hi Chenbo, > -----Original Message----- > From: Xia, Chenbo > Sent: Monday, October 24, 2022 5:03 PM > To: Wang, YuanX ; Maxime Coquelin > > Cc: dev@dpdk.org; Hu, Jiayu ; Jiang, Cheng1 > ; Ma, WenwuX ; He, > Xingguang > Subject: RE: [PATCH v5] net/vhost: support asynchronous data path >=20 > Hi Yuan, >=20 > > -----Original Message----- > > From: Wang, YuanX > > Sent: Monday, October 24, 2022 11:15 PM > > To: Maxime Coquelin ; Xia, Chenbo > > > > Cc: dev@dpdk.org; Hu, Jiayu ; Jiang, Cheng1 > > ; Ma, WenwuX ; He, > > Xingguang ; Wang, YuanX > > > Subject: [PATCH v5] net/vhost: support asynchronous data path > > > > Vhost asynchronous data-path offloads packet copy from the CPU to the > > DMA engine. As a result, large packet copy can be accelerated by the > > DMA engine, and vhost can free CPU cycles for higher level functions. > > > > In this patch, we enable asynchronous data-path for vhostpmd. > > Asynchronous data path is enabled per tx/rx queue, and users need to > > specify the DMA device used by the tx/rx queue. Each tx/rx queue only > > supports to use one DMA device, but one DMA device can be shared > among > > multiple tx/rx queues of different vhost PMD ports. > > > > Two PMD parameters are added: > > - dmas: specify the used DMA device for a tx/rx queue. > > (Default: no queues enable asynchronous data path) > > - dma-ring-size: DMA ring size. > > (Default: 4096). > > > > Here is an example: > > --vdev > > > 'eth_vhost0,iface=3D./s0,dmas=3D[txq0@0000:00.01.0;rxq0@0000:00.01.1],dma= - > > ring-size=3D4096' > > > > Signed-off-by: Jiayu Hu > > Signed-off-by: Yuan Wang > > Signed-off-by: Wenwu Ma > > >=20 > Sorry that I just realize that we need to change release notes because th= is is > new feature for vhost PMD. Please mention the async support and new > driver api you added. Sure, will update docs in new version. Thanks, Yuan >=20 > Thanks, > Chenbo