From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id B9955160 for ; Tue, 24 Jul 2018 21:23:26 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Jul 2018 12:23:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,398,1526367600"; d="scan'208";a="218746869" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga004.jf.intel.com with ESMTP; 24 Jul 2018 12:23:15 -0700 Received: from hasmsx112.ger.corp.intel.com (10.184.198.40) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 24 Jul 2018 12:23:01 -0700 Received: from HASMSX110.ger.corp.intel.com ([169.254.6.45]) by HASMSX112.ger.corp.intel.com ([169.254.11.107]) with mapi id 14.03.0319.002; Tue, 24 Jul 2018 22:22:59 +0300 From: "Rosen, Rami" To: santhosh K.S , "dev@dpdk.org" Thread-Topic: [dpdk-dev] Accessing "device_id" from "rte_pci_device" Thread-Index: AQHUIzaazI1Jax8KXUmFO4j8Z8bgY6SewHFg Date: Tue, 24 Jul 2018 19:22:58 +0000 Message-ID: <9B0331B6EBBD0E4684FBFAEDA55776F9673376EC@HASMSX110.ger.corp.intel.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYzQ0ODAwYWYtZjYwYi00MzFkLWJlMDktZDY3YzNiY2IyYjE0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiMlluckpSckpnTHoyZjdEOSt3TDNacVFoUW9MOFpcL2ZkNEdLcE0zQVlLOVdQN2hKM2NIQ2ZxV1FDYTNPTmdvbnYifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.249.87.53] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] Accessing "device_id" from "rte_pci_device" 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: Tue, 24 Jul 2018 19:23:27 -0000 SGksIFNhbnRvc2gsDQoNCkluZGVlZCB0aGUgZm9sbG93aW5nIHBhdGNoIGZyb20gRmVycnVoIHJl bW92ZWQgdGhlIA0KcnRlX3BjaV9kZXZpY2UgZnJvbSB0aGUgcnRlX2V0aF9kZXZfaW5mbyBvYmpl Y3QsIGFuZCBpbnN0ZWFkIGFkZGVkIGFuIA0Kb2JqZWN0IG9mIHJ0ZV9kZXZpY2U6DQoNCmh0dHA6 Ly9wYXRjaHdvcmsuZHBkay5vcmcvcGF0Y2gvMzc2NTQvDQoNCkhvd2V2ZXIsIEkgc2VlIHRoYXQg dGhlIGRhdGUgdGhhdCB0aGlzIHBhdGNoIHdhcyBhcHBsaWVkIHRvIGRwZGstbmV4dC1uZXQvbWFz dGVyIGlzIA0KNC8xMC8yMDE4LiBBcmUgeW91IGFic29sdXRlbHkgc3VyZSB0aGUgcGF0Y2ggaXMg YXBwbGllZCBpbiBkcGRrLTE3LjExPyBJIGNoZWNrZWQga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