From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0075.outbound.protection.outlook.com [104.47.2.75]) by dpdk.org (Postfix) with ESMTP id 621571396 for ; Thu, 23 Mar 2017 10:16:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=D8Hrw3pJ09sMecXahQeibbK9cqPyS4DYzmGB9rVFQQ0=; b=OkYHMx6ooniqRAOJkgFFkQahqAWux4bCG26m+RXX9hJOXbhFJZqjd6xd6NVAvm52IdDEmRdK2HBIBaRCiWd69G3n0MmeqBe6HS/ndc7dXWolbMIwOkBAovA/b8hN8RPFM0BvD1cXsZfUnGDI5noj80SlL0FmYlYpgCgXJJ7QxU8= Received: from VI1PR0401MB2464.eurprd04.prod.outlook.com (10.168.64.147) by VI1PR0401MB2463.eurprd04.prod.outlook.com (10.168.64.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.12; Thu, 23 Mar 2017 09:16:57 +0000 Received: from VI1PR0401MB2464.eurprd04.prod.outlook.com ([10.168.64.147]) by VI1PR0401MB2464.eurprd04.prod.outlook.com ([10.168.64.147]) with mapi id 15.01.0947.018; Thu, 23 Mar 2017 09:16:57 +0000 From: Shreyansh Jain To: Mike Shang CC: "users@dpdk.org" Thread-Topic: [dpdk-users] Getting pci id using port id with latest DPDK Thread-Index: AQHSo6m+oxXDOOse5Eu0UIy/awXVq6GiIwQg Date: Thu, 23 Mar 2017 09:16:56 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=nxp.com; x-originating-ip: [192.88.169.1] x-ms-office365-filtering-correlation-id: b66c57af-50dd-4d36-2cd7-08d471cd5ab4 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(48565401081); SRVR:VI1PR0401MB2463; x-microsoft-exchange-diagnostics: 1; VI1PR0401MB2463; 7:xIJiGhvCqTDtwAhAe3soLxlbBzAWGed/uzGYoO4AmGpDyWVZS+ybxf5OuqDjKn5DFLgDL7pwVzO5sXXxStTgEYJaahYDAb0mE8j540dUDmcUX0ceR8ZDeBT0UCTs3XvmbXIa9c+mRmHeyfBN22zL8NKu/8bqnl5FSOe7NBJSHD5Fz9Zu42f4Mlx9X72bp1YwHaiWS9KnGZ/gXkTGdRQLy2fXh4HDxa21bF4xA0P5wiUXpITYZ0xqfjZOoGBg86jEcRdvLhckQl26/mE1ZDmplM5P73Bx88vqgl9wowkesogXMxsbmvc7Xn4L3W842LwFK9Ua8d23iNynY7a6qA0KGQ== x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(185117386973197); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6055026)(6041248)(20161123555025)(20161123558025)(20161123562025)(20161123564025)(20161123560025)(6072148); SRVR:VI1PR0401MB2463; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0401MB2463; x-forefront-prvs: 0255DF69B9 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(39450400003)(39860400002)(39850400002)(39840400002)(39410400002)(377454003)(13464003)(6116002)(7736002)(1411001)(76176999)(33656002)(54356999)(6246003)(3280700002)(2950100002)(50986999)(8676002)(966004)(53936002)(305945005)(7696004)(74316002)(53546009)(25786009)(6916009)(2900100001)(66066001)(5660300001)(4326008)(110136004)(9686003)(122556002)(3660700001)(6506006)(8936002)(6436002)(3846002)(39060400002)(102836003)(81166006)(189998001)(55016002)(53376002)(2906002)(77096006)(38730400002)(86362001)(99286003)(229853002)(6306002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2463; H:VI1PR0401MB2464.eurprd04.prod.outlook.com; FPR:; SPF:None; MLV:ovrnspm; PTR:InfoNoRecords; LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Mar 2017 09:16:56.6941 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2463 Subject: Re: [dpdk-users] Getting pci id using port id with latest DPDK X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Mar 2017 09:16:58 -0000 PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiB1c2VycyBbbWFpbHRvOnVzZXJz LWJvdW5jZXNAZHBkay5vcmddIE9uIEJlaGFsZiBPZiBNaWtlIFNoYW5nDQo+IFNlbnQ6IFRodXJz ZGF5LCBNYXJjaCAyMywgMjAxNyAxOjE3IFBNDQo+IFRvOiB1c2Vyc0BkcGRrLm9yZw0KPiBTdWJq ZWN0OiBbZHBkay11c2Vyc10gR2V0dGluZyBwY2kgaWQgdXNpbmcgcG9ydCBpZCB3aXRoIGxhdGVz dCBEUERLDQo+IA0KPiBIaSwNCj4gSSBoYXZlIGxlZ2FjeSBjb2RlIHRoYXQgbmVlZHMgdG8gZ2V0 IHBjaSBpZCB1c2luZyBwb3J0IGlkIGluIG9yZGVyIHRvIG1ha2UNCj4gZGlmZmVyZW50IGNvbmZp ZyBmb3IgZGlmZmVyZW50IHBjaSBkZXZpY2UuIEluIHRoZSBwYXN0LCB3ZSBjYW4g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