From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0122.outbound.protection.outlook.com [104.47.38.122]) by dpdk.org (Postfix) with ESMTP id A58DC10CAC for ; Wed, 21 Dec 2016 17:35:49 +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=jNFPe1FByqHN1sDec3xvAljYN2x+1QUGbs05QZf6qqg=; b=oknZx2lkMTF98TlfiQ0Xab0eYe/PLQA3fgWbWWdFl4JK06o/ygaPCWHcs/kWu2qofynkPCQIgmsOVD9a4MPUWpiaDzapm1o/IoiKPH7qBY+/EQKekn5bi+jlIZeSjf+fC3vRaPL7GFKpDhcYs+C8s0G2fDKjXqIOD//1u66NqMg= 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:47 +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:47 +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 12/23] bnx2x: localize mapping from eth_dev to pci Thread-Index: AQHSW6hIHxPnfwESIkS1NDHOeufovA== Date: Wed, 21 Dec 2016 16:35:47 +0000 Message-ID: References: <1482332986-7599-1-git-send-email-jblunck@infradead.org> <1482332986-7599-13-git-send-email-jblunck@infradead.org> In-Reply-To: <1482332986-7599-13-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: 4741228d-d8a1-4c22-c107-08d429bf6ae2 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:CY1PR11MB0904; x-microsoft-exchange-diagnostics: 1; CY1PR11MB0904; 7:Q15VCnI2vaDOb6wtKS7chC6pMHsux9FeaaHq6W/rNWbJxz/XBwvAhVp3cPSGRN35ZoeiGktIWRw8uO/3FFlwQX2d1+v/4OtCBf073DkzFss3w4FvY6tw/WqEIYG7P0G1xdxyGIIe8AJYryeY/ART51P1ncXDt3oyU/ryPuz3Fb5RejkLhPq3XOVBNYtHQgCG3Ns/AeeoxjbaKxw9jgb5dU+sI477AM5vJCoJD2CxU1dDNxVEWjN9YDtJkyr+M1+2qSOHZajOpTFo7sdFhwY2eA4bcTveHf3BYmtpuCTOIxu2y1nPTQwRWSsbbYjDGekZRbO1lXKyIfC8UV+OcEVRIAth3BoVN7gnnGjjExDFcGaB4O6op/Sr1QGwOgNEBwSELN2KERddI4ntC/cXtkxaQ2E3SlH+wPV+8eNCBvW3I731zIDt41cqyEpP2I3nwbD/DlIbVOLs3Cs+Nw5j1d/vyg== 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: <9993A6A77F3F7B439478E9A47207EE63@namprd11.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: qlogic.com X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Dec 2016 16:35:47.2088 (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 12/23] bnx2x: localize mapping from 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:50 -0000 Pg0KPlVzZSBkZXZpY2UgcHJpdmF0ZSBpbmZvcm1hdGlvbiB0byBtaW5pbWl6ZSB0aGUgcGxhY2Vz IHRoYXQgYXNzdW1lIGV0aF9kZXYNCj5jb250YWlucyBwY2lfZGV2Lg0KPg0KPlNpZ25lZC1vZmYt Ynk6IEphbiBCbHV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