From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (xvm-189-124.dc0.ghst.net [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3C201A09FF; Wed, 6 Jan 2021 13:03:49 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 10B52160956; Wed, 6 Jan 2021 13:03:49 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 8CC38160952 for ; Wed, 6 Jan 2021 13:03:46 +0100 (CET) IronPort-SDR: Lt3VCgHqvLVBps29rBh01Fk2DK3YtMJv7IFD9Q+7aackoL+Er358OkGP+wQwfX+jx+PsVyaojG Tn6cqmv9OneA== X-IronPort-AV: E=McAfee;i="6000,8403,9855"; a="157051149" X-IronPort-AV: E=Sophos;i="5.78,480,1599548400"; d="scan'208";a="157051149" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jan 2021 04:03:44 -0800 IronPort-SDR: f65d36ZLs0UDOMmhXDBT8SFBsvRIn/EWKHUCuUhFoYqdCvGsu72gTK4qEEnMgWFFnI+RoLrvbj cjM8ZTlMx5wg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,480,1599548400"; d="scan'208";a="387538032" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by orsmga007.jf.intel.com with ESMTP; 06 Jan 2021 04:03:43 -0800 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 6 Jan 2021 04:03:43 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Wed, 6 Jan 2021 04:03:43 -0800 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.168) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Wed, 6 Jan 2021 04:03:43 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hyVEMRf1zaNJgQJhQDmV1RGig7ReGAbVMbpRbkKSZ0U1QhFqvL43prGSmnYRNKwIGwsfWIKgkxsl26I1xyD9WRJkEisbdwnQi6QPnmA2pmR8/eTBW+Vyskr7ZPFql8vwqNo1F5GM0BH6E58FlD14L+IZCtNloGBdanevuwPF1wT6eOVhOSu94LqMfCgwr0yMOnwkw/I+xQ4IEMNGznzppVFWQXVXv8MkCU4CiIPW8/ku7SmEGZSf++FQ5rcw4P0OH89qK/V5ZAUySoa+KZiW3oEyrvnTVRnAtjug9JXbt6jKFY6+iRoy24kR3fft8nuw6znErZuqJEw0CrYgBwvXjg== 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=BnjUoY2zxOsXR4GEUwSpwe3e7s1n9FyuEqhGY5SHi6w=; b=L7eGoq6V2hmbJy94MjSYFLgEBDN8hg+KWihsT9YXiTFkefO6NTKheX5uwB30yXZ+TRIjXlQi8Puc8SG1YSJ6KfjYhfrvlFSzb6cdg+/S+Jjl0A29RpVfdIo3MsE9lJVRX86KUx9Mt7Nupi1qNQx+eLglbFZ6vLyoGy8hxdZ7DKPIJ2dCwhcFm0D4UKZz35xXdLOjZQiWFKKyAOBDZOeTYDJTSl73CxoTSvjIiDbwrTYAkT6+kTIwzo8t9fiSs1LN+KyB8HRkVDuiN9DIvR9BX4NlmH1CquH1+7FMaXq8ovpXdEhTQynXkWpjNAcgDgMyiO2CnGWtja1YUBY9J+OoRA== 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=BnjUoY2zxOsXR4GEUwSpwe3e7s1n9FyuEqhGY5SHi6w=; b=cGOob5SnjWD9QdDA7rDGl8vqqGYrtJzBINIbMSgfGgIbDwUHpuJTArgE8fVncIgoaNDNSwb/MbIdoj3pv8n7zSM1MHEpNB6kWKOWGQuXrSpZEM664SS9/FIEX4gGOseQ68YzyV2AlAtOy1leCdLpm02ZSF+YGiG8wbS3VtC8Nhk= Received: from MN2PR11MB4063.namprd11.prod.outlook.com (2603:10b6:208:13f::22) by MN2PR11MB3871.namprd11.prod.outlook.com (2603:10b6:208:13c::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3742.6; Wed, 6 Jan 2021 12:03:42 +0000 Received: from MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::74f2:ba7f:cb22:5272]) by MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::74f2:ba7f:cb22:5272%7]) with mapi id 15.20.3721.024; Wed, 6 Jan 2021 12:03:42 +0000 From: "Xia, Chenbo" To: Maxime Coquelin , "dev@dpdk.org" , "olivier.matz@6wind.com" , "amorenoz@redhat.com" , "david.marchand@redhat.com" Thread-Topic: [PATCH 28/40] net/virtio: add Virtio-user vring setting ops Thread-Index: AQHW1xVbYtYS/eCXbkmp5xovBygxA6oamUfQ Date: Wed, 6 Jan 2021 12:03:42 +0000 Message-ID: References: <20201220211405.313012-1-maxime.coquelin@redhat.com> <20201220211405.313012-29-maxime.coquelin@redhat.com> In-Reply-To: <20201220211405.313012-29-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.37] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4e430484-eb24-45d6-5e26-08d8b23b1ca4 x-ms-traffictypediagnostic: MN2PR11MB3871: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:227; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 4eW4OBrNJyD0X2Di7o0Q/1hpm+Aavq9imwKtu+/v8oNE187ljy9u7L4CY3f8jFcJ+Hr2pwc8BViNz4C6/ubdU1YdX0cCbewIknK/gMVUUHTiyIOI2tdnl1bQ3VdG51NbU4LOBwsA0n0Xne6O5u4NC9Vr+5h4VGA6yNDpATWmNf2di/lxJxcqeL/IwTQVAnUfqbTnSznPIvf8mYqoI9ovq/QjqfLc20Z4eQ/+VGvYn5TAh6BhMveMrmGHBl8ocvR1uI9SAZgLG1Fk82Eecm6cbPkjorkOe+l3zHLwOHNdpu5wKFrNx936QY7Q2c2uNqxt5q2YDbqIxC2nunxKNKHxFEGtQTN3cd7bo/ZZLfnFgERbfk+6Ftm09x4v+3+yqR1x1J6TtfJUd7repuSOee0UvA== 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)(396003)(39860400002)(366004)(136003)(376002)(346002)(7696005)(316002)(110136005)(2906002)(478600001)(86362001)(76116006)(52536014)(66476007)(66556008)(64756008)(66446008)(66946007)(55016002)(53546011)(6506007)(71200400001)(186003)(26005)(33656002)(8936002)(9686003)(8676002)(5660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QXlpbGNRTFc4Rzc2Y3phRXFkQXRrYTFjMEtEZFl4QXlLaWF5RVdCcUNG?= =?utf-8?B?dUkwZ1JGSmQzNWNjZk94QWdPNGh6ZytXTm5Hc20wUVVqNFMvTWZnWmJSWVhl?= =?utf-8?B?Zkg2eTYwaExFNmh5cFVCa0V6YmNqenFaZzlXVUN3NXJ0TUpXQ3cxU243Y3Yv?= =?utf-8?B?WTlxVW04blJEeGRYWVdMdzkvbFRBdHgxOW8ycnJvT2VGbm5yaG9wSUgwdXJD?= =?utf-8?B?bUJHbnAyblhHR0pIQ1RXaG5aS1BZeFNubG80aEplTmdGWEZIUkdDanhnNWRm?= =?utf-8?B?cGxLSk81aUJza1lmMDIrTjF2YTZ2YlpBWTdOVUdHSUdWb0lZMEFqREV6TjRy?= =?utf-8?B?eWx0OGNBK2pza2xGaGh2SmpIVkZwS0JuT0xMYVM5UGwzTmt4MVV2eHkrWWhm?= =?utf-8?B?QS82SUFjUmVybmZ5M014RG5xNm1uS0hmazB0N0lWd1hUUGh4bzFmZ3FYL3d2?= =?utf-8?Q?xDiY5pZElTL84=3D?= x-ms-exchange-transport-forked: True 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: 4e430484-eb24-45d6-5e26-08d8b23b1ca4 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Jan 2021 12:03:42.5114 (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: 1EUQA0uEHEYv2ORhuvUmXbXGk5oMt6B40BZgr7d2oRtXroxnW4aNyo50Q06RWcsW4vB84UV+W67ME1fH9Vj6xQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB3871 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH 28/40] net/virtio: add Virtio-user vring setting ops 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" SGkgTWF4aW1lLA0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IE1heGlt ZSBDb3F1ZWxpbiA8bWF4aW1lLmNvcXVlbGluQHJlZGhhdC5jb20+DQo+IFNlbnQ6IE1vbmRheSwg RGVjZW1iZXIgMjEsIDIwMjAgNToxNCBBTQ0KPiBUbzogZGV2QGRwZGsub3JnOyBYaWEsIENoZW5i byA8Y2hlbmJvLnhpYUBpbnRlbC5jb20+OyBvbGl2aWVyLm1hdHpANndpbmQuY29tOw0KPiBhbW9y ZW5vekByZWRoYXQuY29tOyBkYXZpZC5tYXJjaGFuZEByZWRoYXQuY29tDQo+IENjOiBNYXhpbWUg Q29xdWVsaW4gPG1heGltZS5jb3F1ZWxpbkByZWRoYXQuY29tPg0KPiBTdWJqZWN0OiBbUEFUQ0gg MjgvNDBdIG5ldC92aXJ0aW86IGFkZCBWaXJ0aW8tdXNlciB2cmluZyBzZXR0aW5nIG9wcw0KPiAN Cj4gVGhpcyBwYXRjaCBpbnRyb2R1Y2VzIG5ldyBjYWxsYmFja3MgZm9yIHNldHRpbmcNCj4gYW5k IGdldHRpbmcgdnJpbmcgc3RhdGUuDQo+IA0KPiBTaWduZWQtb2ZmLWJ5OiBNYXhpbWUgQ29xdWVs aW4gPG1heGltZS5jb3F1ZWxpbkByZWRoYXQuY29tPg0KDQo8c25pcD4NCg0KPiANCj4gQEAgLTMy Nyw2ICszNDMsMTAgQEAgc3RydWN0IHZpcnRpb191c2VyX2JhY2tlbmRfb3BzIHZpcnRpb19vcHNf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