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 167DFA09FF; Wed, 30 Dec 2020 04:03:05 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C70232B8E; Wed, 30 Dec 2020 04:03:02 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id D20272B87 for ; Wed, 30 Dec 2020 04:02:59 +0100 (CET) IronPort-SDR: ziX83Qh9wFYDpuYnpwTKRVqogrUGJ1xQAngNtTudN6nl3PafoCMo6zRvyJEi042oihm5qU+HUi DA7/iVjSIVGQ== X-IronPort-AV: E=McAfee;i="6000,8403,9849"; a="240643950" X-IronPort-AV: E=Sophos;i="5.78,460,1599548400"; d="scan'208";a="240643950" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Dec 2020 19:02:58 -0800 IronPort-SDR: Q5xInXY9rUSAiciMwT57e0Jzah7Xd5cxGv6bawzyTTdNTBvz97y7rEPAX/yqxAlxULSN/J/Oki b7LoHqnG8qng== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,460,1599548400"; d="scan'208";a="419381879" Received: from orsmsx605.amr.corp.intel.com ([10.22.229.18]) by orsmga001.jf.intel.com with ESMTP; 29 Dec 2020 19:02:58 -0800 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 29 Dec 2020 19:02:58 -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; Tue, 29 Dec 2020 19:02:58 -0800 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.176) 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; Tue, 29 Dec 2020 19:02:58 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HHoxl7L9xwYrjOLZL8QNCJsAmLt+N0L4KGrzZcmn4t8ORGnO3uO+pzg91+AX/h7mTbNGH4XGwiRxGPYgF0qhIzr0/7rbQZAEp3azl7a621RvzWqi3IM8DAqdUy778TfAQev1NHj0l4aGkv6cXlE4VZPglDRd6xnk8PzEYOHpuPC3DNNL1lmSoWO6GskBBU2LWjNnbvXc4yoIEhzb538diuJZdgq6MupPN9HMZKuhq6NyE3C/Em1tVGbNqs3oxZ2US23KygFvefepfTWtSzXWiIMb+vmj1phvTlo/T4OqHhV5nrX2WmrTeQvD5N7YGuDTCs0WvF+85FPTQfz2VI9H9g== 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=xNLNYRnCdjjLwKmLFhgl7vihOie1fuTzewjTEiV1MAA=; b=Zqq+ixNrfkp+7jPzZNTO/ir6TRifUlXJHLZUkovsqIXjEY0lZ4P1XI6iPBBblhzNrtZLkGyJdLlYbhpMsDGyrzsFdTKWIAy10NRuUGWWRugjxGezoIShIXeAjLPu6LVN9Z0gFZ0Ati3tKrpQxVw8RGRsLlZd0W+EMGpeQCZLAd1MKK1CTcq8/q2QIrN4cUw4rhKzTEYOYULpuwiZqVJ0mUroq7wWuGvql6H0nLhhEtnBYLhXbtPuapVJoCuMneaSOswRg3nn5LV1ssqzCktf414a/7BBoOVy8A6T8IZ6AKuL2uQcQCXHuBdzeKmpgckFgagNriJsrTouUU9guTigvA== 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=xNLNYRnCdjjLwKmLFhgl7vihOie1fuTzewjTEiV1MAA=; b=HE3ilBXXPjYBpvAkQhqeBMWUvl0pXh+LtkCnEe+dQRJlU6AdZRwaDfnavRWR83j9KaHcGGE2Mz6TczQlxWNOJfyE7YHL9lJN8gpONQWK2x3pK2DQJ/HeXOAegJ52H/gtoeKk3FBYwqlWH2yeYkFu+u91LSJujIDqucZTf9rigA4= Received: from MN2PR11MB4063.namprd11.prod.outlook.com (2603:10b6:208:13f::22) by MN2PR11MB3791.namprd11.prod.outlook.com (2603:10b6:208:f9::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3700.31; Wed, 30 Dec 2020 03:02:33 +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.3700.031; Wed, 30 Dec 2020 03:02:33 +0000 From: "Xia, Chenbo" To: Maxime Coquelin , "dev@dpdk.org" , "olivier.matz@6wind.com" , "amorenoz@redhat.com" , "david.marchand@redhat.com" Thread-Topic: [PATCH 05/40] net/virtio: move PCI device init in dedicated file Thread-Index: AQHW1xUqYYubsTZehk24X+ev9chI66oPAJQA Date: Wed, 30 Dec 2020 03:02:33 +0000 Message-ID: References: <20201220211405.313012-1-maxime.coquelin@redhat.com> <20201220211405.313012-6-maxime.coquelin@redhat.com> In-Reply-To: <20201220211405.313012-6-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.198.147.218] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5adda1a9-b081-43ae-399c-08d8ac6f5a81 x-ms-traffictypediagnostic: MN2PR11MB3791: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:303; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 47ffc6if9jJq5bpdgZKdmT0qkSszXw/nVbylzC1k27vOWol2rdgaWWGIJ93t4/atMeb9Vo5m+cf6t67nUuWhIIc2vGldHjSN8tIjUECHk5APFbFTvwLbaffCzDOZPU7zRs+Tm7PDoqG+9kknwbavEXh1qQQhickS9B3IMZuPJ6mUFf9y6QswJv9i8PHWvkbQ0phvWUCQ5F5CszUd130wSKhonvoSgAT9DktWwkiZAEBjWOOmcYu5D/PHaHvg4+pzXybAUyCZOeTKDPOIoSRkFPz0kYCHrwIRnQ/mf5YoVxwxs1SP9epSvc4IaCKMWAmCSRJ2Bs0XSDJKnkZcfFbz3eb/E4pjbqOb558CKfZ2blGz168ixM1FlLYv44b71lAyfN4WxhZyIVnFpMvd2kI0Vg== 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)(376002)(39860400002)(396003)(366004)(136003)(346002)(64756008)(9686003)(71200400001)(30864003)(186003)(6506007)(52536014)(5660300002)(83380400001)(55016002)(110136005)(53546011)(33656002)(66476007)(66446008)(76116006)(8676002)(66556008)(2906002)(26005)(86362001)(316002)(7696005)(8936002)(478600001)(66946007); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?utf-8?B?V0xY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PYm5z?= =?utf-8?B?dkhNU2FzNERsNnpDRTc4dFByRTJqWWkzWGZPb1c4eHd4ckhBTXU0NnV4cXJh?= =?utf-8?B?RnE3eTlUalFPWHhDeTlhYXMxallOb29wVVA4dmtON0dTZUg1WEcrSkd2OEtv?= =?utf-8?B?azVWdDV1NG5aWEtleGhQanJIOHNPRXZWem10dk1zZE9BL0dhVWhTZUZWaXpj?= =?utf-8?B?cEVSM1dBaFl4alFMUHF6S3MxU2JIWG0zYTVQWm90aFU0OG9LNTZOMTRVc0di?= =?utf-8?B?Y3F0Z00zTC8xeFBKTTFtakVGYzlERzk2TU1DNXZIY05abTF0dEEzMzNnMVEv?= =?utf-8?B?Mm9WOXUvU1BwVHYwVVh0ZDRGdy93Z0FPMTlObkVsakhmb0lZTmwwWXpQdUM5?= =?utf-8?B?UmR0QUVRVEYvU29lUlAxUXJsTGhMdHYzSmpkaFh2cmE4RXhsWUFIZy9YMzkx?= =?utf-8?Q?y9IXxIVRjAwz0=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: 5adda1a9-b081-43ae-399c-08d8ac6f5a81 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Dec 2020 03:02:33.1611 (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: QrSdVFyV7OFeKpgkDPwb6n6PMRlfTpPu19vEji8Gtul8GsBvtpkBuaEvJIDIgL7avBEptABqbo6jy/ZPmB6Eog== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB3791 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH 05/40] net/virtio: move PCI device init in dedicated file 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" SGkgTWF4aW1lLA0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IE1heGlt ZSBDb3F1ZWxpbiA8bWF4aW1lLmNvcXVlbGluQHJlZGhhdC5jb20+DQo+IFNlbnQ6IE1vbmRheSwg RGVjZW1iZXIgMjEsIDIwMjAgNToxNCBBTQ0KPiBUbzogZGV2QGRwZGsub3JnOyBYaWEsIENoZW5i byA8Y2hlbmJvLnhpYUBpbnRlbC5jb20+OyBvbGl2aWVyLm1hdHpANndpbmQuY29tOw0KPiBhbW9y ZW5vekByZWRoYXQuY29tOyBkYXZpZC5tYXJjaGFuZEByZWRoYXQuY29tDQo+IENjOiBNYXhpbWUg Q29xdWVsaW4gPG1heGltZS5jb3F1ZWxpbkByZWRoYXQuY29tPg0KPiBTdWJqZWN0OiBbUEFUQ0gg MDUvNDBdIG5ldC92aXJ0aW86IG1vdmUgUENJIGRldmljZSBpbml0IGluIGRlZGljYXRlZCBmaWxl DQo+IA0KPiBUaGkgcGF0Y2ggbW92ZXMgdGhlIFBDSSBFdGhlcm5ldCBkZXZpY2UgcmVnaXN0cmF0 aW9uIGJpdHMNCg0Kcy9UaGkvVGhpcw0KDQo+IGluIGEgZGVkaWNhdGVkIHBhdGNoLiBJbiBmb2xs b3dpbmcgcGF0Y2hlcywgbW9yZSBjb2RlIHdpbGwNCj4gYmUgbW92ZWQgdGhlcmUsIHdpdGggdGhl IGdvYWwgb2YgbWFraW5nIHZpcnRpb19ldGhkZXYuYw0KPiB0cnVlbHkgYnVzLWFnbm9zdGljLg0K DQpzL3RydWVseS90cnVseQ0KDQpXaXRoIGFib3ZlIGZpeGVzOg0KDQpSZXZpZX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