From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id D04966841 for ; Sun, 10 Sep 2017 20:55:33 +0200 (CEST) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Sep 2017 11:55:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,374,1500966000"; d="scan'208";a="149672605" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga005.fm.intel.com with ESMTP; 10 Sep 2017 11:55:32 -0700 Received: from fmsmsx155.amr.corp.intel.com (10.18.116.71) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 10 Sep 2017 11:55:32 -0700 Received: from lcsmsx154.ger.corp.intel.com (10.186.165.229) by FMSMSX155.amr.corp.intel.com (10.18.116.71) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 10 Sep 2017 11:55:31 -0700 Received: from HASMSX110.ger.corp.intel.com ([169.254.6.223]) by LCSMSX154.ger.corp.intel.com ([169.254.7.81]) with mapi id 14.03.0319.002; Sun, 10 Sep 2017 21:55:29 +0300 From: "Rosen, Rami" To: Stephen Hemminger , "george.dit@gmail.com" CC: "users@dpdk.org" Thread-Topic: [dpdk-users] Retrieve NIC vendor name using PCI vendor ID Thread-Index: AQHTKKd5cPRuc4kDWECbUPUNUgr09KKq8joAgAOH8wA= Date: Sun, 10 Sep 2017 18:55:28 +0000 Message-ID: <9B0331B6EBBD0E4684FBFAEDA55776F93DEA374B@HASMSX110.ger.corp.intel.com> References: <20170908085538.1161cf68@xeon-e3> In-Reply-To: <20170908085538.1161cf68@xeon-e3> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.252.27.234] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-users] Retrieve NIC vendor name using PCI vendor ID 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: Sun, 10 Sep 2017 18:55:34 -0000 Hi, George, >There already is a standard library for this (libpci). >I see no reason to add this to DPDK. +1. Follow in pciutils execution of, for example, "lspci -d 8086:158b" Where you get, for example: 03:00.0 Ethernet controller: Intel Corporation Device 158b (rev 02) (or any other vendrID:DeviceID combo). I would guess that behinds the scenes it is done by pci_lookup_name(): https://github.com/pciutils/pciutils/blob/master/lib/names.c#L122 Regards, Rami Rosen