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 4FA1DA09FF; Wed, 30 Dec 2020 04:05:52 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 355F42C55; Wed, 30 Dec 2020 04:05:51 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 0EAEE2B8C for ; Wed, 30 Dec 2020 04:05:47 +0100 (CET) IronPort-SDR: tfH5ELaeHlr3vfv92MWEv0OzERBTxuYSNm9RwwFaN/SZIZZO8gYws6qNIJ8+vHKH+Ml3rMOuUF CJW0IZyJVVYA== X-IronPort-AV: E=McAfee;i="6000,8403,9849"; a="155763198" X-IronPort-AV: E=Sophos;i="5.78,460,1599548400"; d="scan'208";a="155763198" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Dec 2020 19:05:46 -0800 IronPort-SDR: 7QWTTv0BJPftuRqLdfujNCMakjVmXfgAexNxBdrR2fpipVhST1CmtWcr5g/IdpLrmu1jscFgzb toP4MD1MOXxg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,460,1599548400"; d="scan'208";a="348050472" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by orsmga006.jf.intel.com with ESMTP; 29 Dec 2020 19:05:46 -0800 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) 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.1713.5; Tue, 29 Dec 2020 19:05:45 -0800 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) 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.1713.5 via Frontend Transport; Tue, 29 Dec 2020 19:05:45 -0800 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (104.47.74.43) by edgegateway.intel.com (192.55.55.68) 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:05:44 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mMHmWE5MvnQtMqJOeJ1m6fP1ruOMmZ5w7BdCS9Nak6spBBmbLO4wpCfjF4zEdrnLfTMre31o+Ti7pUQIvomh7Wlm5qHeuQN7MCn1uWlsVGBt+XJO0q0bZwc6SBmORt+Cw2XRvNo1fcJaHyG6iGiuRkvf7YXyd03PlFj7FN/CV1mz7tv79op0THyXzJZPivxRGHxCA90A6O1EBH4sZWxO20Ri+WLc8xXEn0qTKQeSGWaL9IjUI5fZIOB8gdi3MhMnIbtHMmz7GzQJPDDnnauvJED2m5EIZdW96r8YJAJuQF99fyzyxYbpcDMUgUmtbDEhUxVCGLGzq0/4LSg2n2kKpg== 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=8EagRyC8K+Aj8VvnDMmpnVhpfF4fHtlZHwupRzSI/lY=; b=GA2+FWgAHE2G8ncXZqfBmNLPocEyXt7TLC78JNIEnCPLcEoJVjj3SmfF5hVrkn+bvpVGgVRTQoxb4N2z3+6Vl5mHI67tUtMsnbaQK/h9TlmOVHCwmANdSd1zn39lito2T4NOLr593gvhww6SVuzsE+Mr7pythWf9Ga7P4Ii/HmjarcmevMa2DzkziuHWnRerm84plb+6ZjcJUYjRdwUyZQ2GcSykI/s4ZF2GVxAVBYxFV5/WoYpkZ+LVI4g9G5Xbpz9p17M3CDUcVGL646Nec8k5MQkqTyoal3bPMdGif5CYKHxs+OLtdyJs+mxURd0FwCO7qlndlnGcXdyLvGk8hQ== 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=8EagRyC8K+Aj8VvnDMmpnVhpfF4fHtlZHwupRzSI/lY=; b=MrCHOwiPsF20N+P4ZAsaVsJgWj/pFDY9w1jpLjNTcGOcZo5V/BnbJ25MmViaP9Anqk/BHmFbkERnn3mFF7ycPWyh9VZAIJUd0YfhPYYFNKUGuf0mXoSkt31LLOKaCUY1vZZkKAzk0ctdIhkGtullc0mG2aODvpzq3MN3cR8bHdQ= Received: from MN2PR11MB4063.namprd11.prod.outlook.com (2603:10b6:208:13f::22) by MN2PR11MB3744.namprd11.prod.outlook.com (2603:10b6:208:f5::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3700.28; Wed, 30 Dec 2020 03:05:43 +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:05: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 06/40] net/virtio: move PCI specific dev init to PCI ethdev init Thread-Index: AQHW1xU5AlW25kNS6kmK5kauSGtbHKoPAxGQ Date: Wed, 30 Dec 2020 03:05:41 +0000 Message-ID: References: <20201220211405.313012-1-maxime.coquelin@redhat.com> <20201220211405.313012-7-maxime.coquelin@redhat.com> In-Reply-To: <20201220211405.313012-7-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: 29dad451-b7c2-4dc7-b3fd-08d8ac6fcb03 x-ms-traffictypediagnostic: MN2PR11MB3744: 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: aUc0Ib3rzYwM0nbiwBLPBpX+4k9lKYL61zT+f41NuHIxHvEcbEczSfNOuVqtesVGAwuH50cbv1dMq8K4AMZXAWLD4Abo4z1NcxJPLRE7uBs3bHHeeK67n1HaDMNBQgCnSaOX4kKMUT+nytzt8TdvSTEGEZ2UKdd1lSITvepseJFKt7AtTvwdKyVT3N0bqvg/X707JutrfX/oXPoSvYCEmGsnbQgCZiECW3B4/Fa5lnSzeXJYm0ummbtVkBnZXnTgD6tdSgI9dwuVjD2KeC7fFUMzhKc7CsK/jZeq5SLtiFsaV1CkBZpFhhiFr7vUkZho98VcFkEUt4ZeeWQSF3znrxe6ABwnDbtSJdd7HgAI8H0GGxbATC8K6h1pqsoSox2SSAajIg9KDFLLSWBz3HAF0w== 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)(366004)(39860400002)(136003)(396003)(346002)(52536014)(6506007)(9686003)(71200400001)(478600001)(64756008)(33656002)(66946007)(86362001)(66446008)(186003)(53546011)(26005)(55016002)(110136005)(76116006)(316002)(66476007)(5660300002)(2906002)(66556008)(8676002)(8936002)(83380400001)(7696005); DIR:OU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TZmtYYngyTzJOQWZsS1JQbFNFUG82cytwdGhU?= =?utf-8?B?aUd3SWdPSi83L1Q0OEx6U0NmNjEyZjU1cGdnQ2JyelVod3JHY0h6MnFDQm4z?= =?utf-8?B?cUZVVG50NjBNSFZaRFd6ZFVyQUxyc2I0Ky8wKzhHVEZ0cDRUSXdqemNkekZR?= =?utf-8?B?alcybEdhY1F4NUVlNFl2QmJPaW0wUWlPTzYrRUQyb0pHOTN5Z29yM3VxUThr?= =?utf-8?B?S2xmZWR4bmVoTW1WdUkyZENUVzFYczMwcUFPUEFuTTdBYmxTeS9iTDFUa2c0?= =?utf-8?B?TVhMKzN2dFVoUU5ITCtkYVJkM1BaTmNsbzRrTzB5T29QdzZwTHBXd0ZTSFNJ?= =?utf-8?B?V05RcnVlb1VlVVNnSFZ1QXRwMkxTS3g3eGtlYm1aN0RMUkRRaTdmNTVyU05w?= =?utf-8?B?ZDdkYVZMOUFYZmhDUFMyZENhb04vSmlJYk5ySUtXWEF5WWx3VjFocEJYRTBG?= =?utf-8?Q?haBThAHVPFGA0=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: 29dad451-b7c2-4dc7-b3fd-08d8ac6fcb03 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Dec 2020 03:05:41.7311 (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: OJ1CtPbugZaJTcT/8Wg7nSoZRGiKipvtg1BfOvf1hFjIGGuWiwni7EYfuFybQ0sw3aBVM8kxeaqLgZXRLuwqbQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB3744 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH 06/40] net/virtio: move PCI specific dev init to PCI ethdev init 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 eGltZS5jb3F1ZWxpbkByZWRoYXQuY29tPg0KPiBTZW50OiBNb25kYXksIERlY2VtYmVyIDIxLCAy MDIwIDU6MTQgQU0NCj4gVG86IGRldkBkcGRrLm9yZzsgWGlhLCBDaGVuYm8gPGNoZW5iby54aWFA aW50ZWwuY29tPjsgb2xpdmllci5tYXR6QDZ3aW5kLmNvbTsNCj4gYW1vcmVub3pAcmVkaGF0LmNv bTsgZGF2aWQubWFyY2hhbmRAcmVkaGF0LmNvbQ0KPiBDYzogTWF4aW1lIENvcXVlbGluIDxtYXhp bWUuY29xdWVsaW5AcmVkaGF0LmNvbT4NCj4gU3ViamVjdDogW1BBVENIIDA2LzQwXSBuZXQvdmly dGlvOiBtb3ZlIFBDSSBzcGVjaWZpYyBkZXYgaW5pdCB0byBQQ0kgZXRoZGV2DQo+IGluaXQNCj4g DQo+IFRoaXMgcGF0Y2ggbW92ZXMgdGhlIFBDSSBzcGVjaWZpYyBpbml0aWFsaXphdGlvbiBmcm9t DQo+IGV0aF92aXJ0aW9fZGV2X2luaXQoKSB0byBldGhfdmlydGlvX3BjaV9pbml0KCkuDQo+IA0K PiBTaWduZWQtb2ZmLWJ5OiBNYXhpbWUgQ29xdWVsaW4gPG1heGltZS5jb3F1ZWxpbkByZWRoYXQu Y29tPg0KPiAtLS0NCj4gIGRyaXZlcnMvbmV0L3ZpcnRpby92aXJ0aW9fZXRoZGV2LmMgICAgIHwg NjMgKy0tL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