From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk0-f51.google.com (mail-vk0-f51.google.com [209.85.213.51]) by dpdk.org (Postfix) with ESMTP id 27D357CB3 for ; Mon, 11 Sep 2017 09:10:04 +0200 (CEST) Received: by mail-vk0-f51.google.com with SMTP id t10so8852649vke.0 for ; Mon, 11 Sep 2017 00:10:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=sTZgQWieLmCbwf1cCbofbqE5Au0E0m/VgqUIeQc9KOU=; b=UeCNASORVHa0GumHTsUpkhFcSpJCW7rAyRbvDMdQvQ2sbAKcetXwFqTB5mo1PoxGKz ryIcOnz/W1jdcP4qrz09/MHumHdN/cRxuBaliBCfMGGyPbEQAIb8xM8SJdwnry1UI/Fa 1B4U4O+FZzyQLyF6bI6/FsV72rlMXyvEHqx0zJ8I0EJxYJnANl9J/0/mccNF71eZkhHB Agab0dfKZRRB4SJHLwdtk5nGMP50mFLcR42q6B9t78uyL4wWcfVaopRoTWcUeq30dfBO 0EJtma64oV7t/Y9RXdpHxzxH/ghXLsPnhVWD2343/XOuiKPJf2GeQTQS3tJKRtbUPmfJ 8M2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=sTZgQWieLmCbwf1cCbofbqE5Au0E0m/VgqUIeQc9KOU=; b=h94i8dnGbMX1cO9XjnBISTh+2+NMk6IQrx8YhS5DwBlUqNExtk25dmTajfHGy5K+6z Von2lYk2+zFbGyozwSRuyFda+8cFvGoVL5GGZOsv9ExB9WtyvUvS+LaU99+x2dPsYpYK MxMSZV73LAvualVoIhUrL4wZFK9l5fXVJvBeMUVjBq601+G1lY1yO9BADNNv5ce0QQxl g28irsUke07aWzLZvHLF1ERyc8HeYlllCb+UKsh17OgtHljDHJIwzlF22rE1im4Ua9vv 0lC10CNqO6PVCdUdn5nw1rjG2ZMt2h+LKL34t51H+CGg7GgQK7K0kAe+GwqjPxZLsKfF hyEA== X-Gm-Message-State: AHPjjUhb3bJo/viHuF5m78u2Chp6lbwwooW6Lh5BzPex44bOU4BZV/DS J0Z9y3TMmC9sUt8xn2RwU/cD6/uPxg== X-Google-Smtp-Source: AOwi7QDu5qEQc0FFOzc7i2b/ftj0f7c+ym985IxFwiDv4r6vL5e3qaqs8suxZtUPMk7xE9ndHaHbBI0l1wwCLcBmSIk= X-Received: by 10.31.33.193 with SMTP id h184mr6612415vkh.18.1505113803507; Mon, 11 Sep 2017 00:10:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.172.8 with HTTP; Mon, 11 Sep 2017 00:10:02 -0700 (PDT) In-Reply-To: <9B0331B6EBBD0E4684FBFAEDA55776F93DEA374B@HASMSX110.ger.corp.intel.com> References: <20170908085538.1161cf68@xeon-e3> <9B0331B6EBBD0E4684FBFAEDA55776F93DEA374B@HASMSX110.ger.corp.intel.com> From: george.dit@gmail.com Date: Mon, 11 Sep 2017 00:10:02 -0700 Message-ID: To: "Rosen, Rami" Cc: Stephen Hemminger , "users@dpdk.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 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: Mon, 11 Sep 2017 07:10:04 -0000 Hi Stephen and Rami, I see your point, libpci seems to be the way to go. Thanks, Georgios On Sun, Sep 10, 2017 at 11:55 AM, Rosen, Rami wrote: > 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 > > > -- Georgios Katsikas Industrial Ph.D. Student Network Intelligence Group Decision, Networks, and Analytics (DNA) Lab RISE SICS E-Mail: georgios.katsikas@ri.se