From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E3475A04B1; Wed, 30 Sep 2020 07:47:44 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2F3A01DA33; Wed, 30 Sep 2020 07:47:37 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id E8C911DA33 for ; Wed, 30 Sep 2020 07:47:34 +0200 (CEST) IronPort-SDR: gJS8yrBXCGGjFNvtKRkwhmG8ezABLkYOQmIowK3Xn7UP3YXFXGElvCzKvft+uEeJ7zJYwLVhzW AXc1BRNwe7Yg== X-IronPort-AV: E=McAfee;i="6000,8403,9759"; a="150029092" X-IronPort-AV: E=Sophos;i="5.77,321,1596524400"; d="scan'208";a="150029092" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2020 22:47:30 -0700 IronPort-SDR: 1GiVeWJ2zaMlyeQNGr3siyAjQbpspkNwUQRr1R0xXCai5sbDLaC0dG8BmvscRWz9Yx8H0RxaM1 AnGDOMQCLSaQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,321,1596524400"; d="scan'208";a="457533486" Received: from fmsmsx605.amr.corp.intel.com ([10.18.126.85]) by orsmga004.jf.intel.com with ESMTP; 29 Sep 2020 22:47:30 -0700 Received: from fmsmsx609.amr.corp.intel.com (10.18.126.89) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 29 Sep 2020 22:47:30 -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.1713.5 via Frontend Transport; Tue, 29 Sep 2020 22:47:30 -0700 Received: from NAM02-BL2-obe.outbound.protection.outlook.com (104.47.38.59) 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.1713.5; Tue, 29 Sep 2020 22:47:28 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ILxKRgNUZTpWpx+mWMlft7lEpwyC3z7tW6ea3J4MxlH0qxi74jAzteiOvIlCrIR2iLimAUCVkqqZU+PXatCmK+2FRo7ybgREy2KuMQq+jJ2YiJw801GC+wh/xEQeZeKWL6w6Sl60TK69QLjw4ciV8gKY4DTFrVpRRGgVVj5fihIWyWWnOpoJ+s3snQY5QG+8ZvyUwxBHgd/8NXq9keOqCaO1cF2cW334PclD83pI5LvUQZSA9lpuvdDt9qkM88+2m8QmsgV7d8iMynMMPHGXWIQW8gQQxbDlGxJrhqt1KF7GZDHBqIxyQZ7IEnYIj+kMbNB0uK5OaG2uofemtasdQw== 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=GC4gqZn/LItIGEyIkkbXCHuHhChLkIVHjfuqa47ivq0=; b=dy3xw+yCQvUIVb4L4R3v927+e9DouzZcUTG954WCfjW3UNhwRWiz7cJZS3lXYGm7pocyLZrpTJvgZ3vGT+c8se8FPxDYWpAMSBctvYMvOZy25Y33lhHAkoYEq/DqHoTXizw6+0j4uVGNgtHikP7bZHYUvEKwlfYkVLk3BzzuNmEwCMTfl6tybeTOzgeyYZFUcuKODwQOHd1fimR2tshvAY4bk14p6B+l79Vi6lEM1MKgGXTrirNy8KEgav6jfyxaySw8s4VakLh7mBCCer8o+PlsGwC4jkSQiicfWAcS8Cugo6oO1D/CO75G585yhtQ89V/ji612SFUVkZn01ohjjw== 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=GC4gqZn/LItIGEyIkkbXCHuHhChLkIVHjfuqa47ivq0=; b=QD0U4c62qnTZfSHzABjZWlqjWUcaKHyFRZokHr5xJmJcIspIkxWXf8u6cT+GR3B8PYdLVq0fUSX2rZu32E0A0GEH+X9+iD0xdWdjRjOp9VJNy2XlBLim7p0EDD2LwK7eAcCBA8CDOlMzbMWFJkmycdWeTlb9b/SuTvcKRMnQRgo= Received: from MN2PR11MB4063.namprd11.prod.outlook.com (2603:10b6:208:13f::22) by MN2PR11MB3885.namprd11.prod.outlook.com (2603:10b6:208:151::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.22; Wed, 30 Sep 2020 05:47:27 +0000 Received: from MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::1dc7:9f52:91c1:52da]) by MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::1dc7:9f52:91c1:52da%3]) with mapi id 15.20.3412.029; Wed, 30 Sep 2020 05:47:27 +0000 From: "Xia, Chenbo" To: Maxime Coquelin , "dev@dpdk.org" , "Fu, Patrick" , "amorenoz@redhat.com" Thread-Topic: [PATCH v3 2/8] net/virtio: introduce DMA ops Thread-Index: AQHWlnu2HC3TBYWJvkOc4iy5XziBd6mArVkg Date: Wed, 30 Sep 2020 05:47:27 +0000 Message-ID: References: <20200929161404.124580-1-maxime.coquelin@redhat.com> <20200929161404.124580-3-maxime.coquelin@redhat.com> In-Reply-To: <20200929161404.124580-3-maxime.coquelin@redhat.com> Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.102.204.38] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f2fa3883-2113-45ff-7903-08d865045075 x-ms-traffictypediagnostic: MN2PR11MB3885: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3173; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: xRKQ1rrTA5SdluvDKPErC/74iLclqPpTBzsYPLQoynH3w4otKXOn1nkwAueN1NQ2V/dJDy3p2asMcvcPVnIV5l5qCxqWiUYh7Gk4rNpA5W3OSET8X/0v8RVM7h0JgXv9LW77RHh8DvFmJGJ6QRPE+eCcSqHIGg/yOTttZnWPFPfm1peObki9Z0RbnXU0LaWrV+erB2CrKUzxsvKUZ7/Ww8GiGhfvQ4dKkzTPWyXDWHsQjTOOXZfLpd1NV9PGbckZETToOQfQDoIKTCXxtEFJfZ4cTaxOpSoqIe2fDb2AS6HFHKT9f28OpNGdefIN9+GoXincjCTpLfLWBxFaQePKVzZw14IjJ6vTPoh0JjNsEXIl4p603YKVd9hDw3TNApFO x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR11MB4063.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(366004)(136003)(376002)(396003)(39860400002)(33656002)(316002)(186003)(110136005)(8936002)(6506007)(52536014)(478600001)(53546011)(7696005)(66946007)(26005)(76116006)(5660300002)(55016002)(9686003)(8676002)(2906002)(83380400001)(71200400001)(86362001)(66476007)(64756008)(66446008)(66556008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: AQJb1Tnp3Od4CC0Fr/2c36lfajSBWNYIaSjiucdBrggkaGb5UPdAZUSfz6ISBhSlaL5cb6LY8aeXPS/CvQCWVGzkajvVgmgsEDU4esgqWbf+4lNGv0KOg1iJkMbrQeX4TEAPx0FIjCW7Oj6G4KZ1XtLeIpRgBV31BzxJ0cwUcRqSKyhXtNg50NZzXLepySJgZAEKc2GuBZUKJIhFNEaTKe9QfO7oeO9qnr3nu75tO2qjRk33zMcNJ1SjcHVMZoBNnj41bF5iraOL9+V0FcTPsB/1jRQmm15BzFSJf2Kg50vvEd2IlYjzfYr53yrTwnBseHH5/arL/FiwQiqeyDxcO4utkWP7vYoGgpcXIceoxGxgm5VyP2HG9cZdISPgqh59aiM6PTpMkcMrwvaZg5zLdNItPcWx3tSaRhh3pPqHBLgqHaLWW7/Dxtx3SHPAanOrwm6KQRVObQr0ch4+E86b+tR9Ugm2StnLa5Q6YvAou9YZntXZBN3G6iV4romNpTRrTEm8v/96lzcDYtcivzktWj9fObmykANe5CHYn0UbelJYxLv3+5DOYGwDlJa/T09TXzv4waPpaFDr6pTwmZcNm2YfvwaSgTr4gzpr4J3JH3L9e/ekubWMUxYPC8TiIl7nHQXEKeLBvIe/nwgBsYbhuA== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN2PR11MB4063.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f2fa3883-2113-45ff-7903-08d865045075 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Sep 2020 05:47:27.6046 (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: BIb7YF+6xFpgml9Rs5431uAtcShQzftFqZY+wnaWDRq/MNXesEqFdrzBz452ZvQWetSck5YIBmsiSVUhI2SuNg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB3885 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v3 2/8] net/virtio: introduce DMA ops X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBNYXhpbWUgQ29xdWVsaW4gPG1h eGltZS5jb3F1ZWxpbkByZWRoYXQuY29tPg0KPiBTZW50OiBXZWRuZXNkYXksIFNlcHRlbWJlciAz MCwgMjAyMCAxMjoxNCBBTQ0KPiBUbzogZGV2QGRwZGsub3JnOyBYaWEsIENoZW5ibyA8Y2hlbmJv LnhpYUBpbnRlbC5jb20+OyBGdSwgUGF0cmljaw0KPiA8cGF0cmljay5mdUBpbnRlbC5jb20+OyBh bW9yZW5vekByZWRoYXQuY29tDQo+IENjOiBNYXhpbWUgQ29xdWVsaW4gPG1heGltZS5jb3F1ZWxp bkByZWRoYXQuY29tPg0KPiBTdWJqZWN0OiBbUEFUQ0ggdjMgMi84XSBuZXQvdmlydGlvOiBpbnRy b2R1Y2UgRE1BIG9wcw0KPiANCj4gQWRkIERNQSBtYXAvdW5tYXAgY2FsbGJhY2tzIHRvIHRoZSB2 aXJ0aW9fdXNlciBwbWQsIHdoaWNoIGNvdWxkDQo+IGJlIGxldmVyYWdlZCBieSB2ZGV2IGJ1cyBk cml2ZXIgdG8gbWFwIG1lbW9yeSBmb3IgYmFja2VuZA0KPiBkZXZpY2VzIHdpdGggRE1BIGNhcGFi aWxpdHkuDQo+IA0KPiBTaWduZWQtb2ZmLWJ5OiBNYXhpbWUgQ29xdWVsaW4gPG1heGltZS5jb3F1 ZWxpbkByZWRoYXQuY29tPg0KPiAtLS0NCj4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