From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0108.outbound.protection.outlook.com [104.47.32.108]) by dpdk.org (Postfix) with ESMTP id D22CC10C9C for ; Wed, 21 Dec 2016 17:35:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qlgc.onmicrosoft.com; s=selector1-qlogic-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=I/qQbAx69bdyw7tQiYnROUIP91lKGZzU4JMshTksIVA=; b=C7Sdv7sVo+AUIMHeWGbm3c10Tk/alXmx4sxfgu9OKXZb5TLwzr1gkWV5g0EVySPGvDdrAK655cXdzkvWALGy2fbxwqvoWa7aHEBPtPIQFTiHjA2OF/Q5wFDaZMSoyDpVIaUOdJw/VX6W3sVNbFYdGhLbNe2Q06peUgKssgAkhbo= Received: from CY1PR11MB0904.namprd11.prod.outlook.com (10.164.68.30) by CY1PR11MB0904.namprd11.prod.outlook.com (10.164.68.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.803.11; Wed, 21 Dec 2016 16:35:14 +0000 Received: from CY1PR11MB0904.namprd11.prod.outlook.com ([10.164.68.30]) by CY1PR11MB0904.namprd11.prod.outlook.com ([10.164.68.30]) with mapi id 15.01.0803.013; Wed, 21 Dec 2016 16:35:14 +0000 From: Harish Patil To: Jan Blunck , "dev@dpdk.org" CC: "shreyansh.jain@nxp.com" , "david.marchand@6wind.com" , "stephen@networkplumber.org" Thread-Topic: [dpdk-dev] [PATCH v4 14/23] qede: localize mapping of eth_dev to pci Thread-Index: AQHSW6g0QW9qmtHzDEy+bsAhwqOuBg== Date: Wed, 21 Dec 2016 16:35:13 +0000 Message-ID: References: <1482332986-7599-1-git-send-email-jblunck@infradead.org> <1482332986-7599-15-git-send-email-jblunck@infradead.org> In-Reply-To: <1482332986-7599-15-git-send-email-jblunck@infradead.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.6.9.160926 authentication-results: spf=none (sender IP is ) smtp.mailfrom=harish.patil@qlogic.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [75.54.224.17] x-ms-office365-filtering-correlation-id: 21f5758d-722f-4a56-23c7-08d429bf5753 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:CY1PR11MB0904; x-microsoft-exchange-diagnostics: 1; CY1PR11MB0904; 7:io/ruvGVRc6wEtjJkZ9yhC45GiYZRf1AGu1WJvpWLrwiuZo+cuqX6i4pyAy648NgcTeEp973YqpKqRxcTOE0DeyIQE7VkGGnq/+cJANO1AJ09RyEY4VEVEiTjBXyburzHxcnPS9iDw/iPgsvIyvbYM1A9MC6NJ08YJJs4hgwsr8rUIfdrz19YH3+mEc3fQX1EGwwHLjaPZnP6Yfa/0YsUnaj08WxPIl/ubGjIM+Yzl/9b0QVbgmeHhGus9vixTF+UFMRGJY2hMBYyrkCvFDfCRAaV34D+C1FRLptpdhNeanOoWSqQtj6BzISuma6dGS48/qNan/nn4opKVm0wOpx/1SHrNt7V10JYKVnBt4Fj5ht4myl7KRtbiP/DUosWBBPOcR1vcPuNgO1dsjns9ebv9PLw7n28QQ12qkSXZEuddr8oABHNRxxrqvBxO7/swfkWrWJI4KqHYIc5Jz7++35TQ== x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6041248)(20161123560025)(20161123555025)(20161123562025)(20161123564025)(20161123558021)(6072148); SRVR:CY1PR11MB0904; BCL:0; PCL:0; RULEID:; SRVR:CY1PR11MB0904; x-forefront-prvs: 01630974C0 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(7916002)(39450400003)(199003)(189002)(305945005)(4001350100001)(2501003)(97736004)(7736002)(36756003)(6436002)(92566002)(3280700002)(81156014)(6506006)(6512006)(66066001)(105586002)(83506001)(77096006)(25786008)(3660700001)(99286002)(8676002)(6486002)(38730400001)(81166006)(2950100002)(50986999)(106116001)(101416001)(76176999)(102836003)(3846002)(189998001)(5660300001)(86362001)(2906002)(68736007)(5001770100001)(2900100001)(8936002)(106356001)(4326007)(6116002)(229853002)(54356999)(9686002)(122556002)(8656002)(7059030); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR11MB0904; H:CY1PR11MB0904.namprd11.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: qlogic.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: qlogic.com X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Dec 2016 16:35:13.8724 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 0d68a1f9-1490-4d0e-8767-a87dab3ef2ba X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR11MB0904 Subject: Re: [dpdk-dev] [PATCH v4 14/23] qede: localize mapping of eth_dev to pci 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: , X-List-Received-Date: Wed, 21 Dec 2016 16:35:18 -0000 Pg0KPlRoaXMgc2ltcGxpZmllcyBsYXRlciBjaGFuZ2VzIHRvIGV0aGRldi4NCj4NCj5TaWduZWQt b2ZmLWJ5OiBKYW4gQmx1bmNrIDxqYmx1bmNrQGluZnJhZGVhZC5vcmc+DQo+LS0tDQo+IGRyaXZl cnMvbmV0L3FlZGUvcWVkZV9ldGhkZXYuYyB8IDE4ICsrKysrKysrKy0tLS0tLS0tLQ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