From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f170.google.com (mail-pf0-f170.google.com [209.85.192.170]) by dpdk.org (Postfix) with ESMTP id AE657968 for ; Fri, 8 Sep 2017 17:55:47 +0200 (CEST) Received: by mail-pf0-f170.google.com with SMTP id g13so5147129pfm.2 for ; Fri, 08 Sep 2017 08:55:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=XyBxyqBjijVLghtc1sXRGjPrU232LF1HbWiAvRy8wFo=; b=nchCvnTd2SO7i/EnyWHExCLL80lMK0PgGomgM2QmWsiT/S5APwaNcpvziRwFhg/mrD fQLh4pMMbjvKlbs7pcqG/40MpFCUBs7U8ERYp/+99WDIkvx+V5JlujpbgjSO7XyCl6nm 36buyds4vLF2QiPvC8kthK2kapusDTzLb5dtT2iCknl9/wp5dMkx1N4mjqCojtJ++iqt MLS9slEh/Er4dpWZJhDKV/5R7xvpV8kyyLcKyH8FAjQ8cjjBmNgMkPvSa0+TbBMe+O0J ds+78/Q4kOYnC8v3gYxNXDI6Npk7DYkZ/5a04IhqAsFZsF1/FYK1aa8e4picIUC9IQZ9 TKSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=XyBxyqBjijVLghtc1sXRGjPrU232LF1HbWiAvRy8wFo=; b=IGJe2o8fx2wej3uSPIcZD1Ec8yTwpS0bBBTsi21MtJaE1K+6QQ3ElZA981V8z4DSlI 0UZA0mVggKAAaVXNOPhiqOgzezsOT2Q9vHxvFh5/RtJliaZwyCZCfatNcVMwcBJQbyAu Ti2pHQefHkqDljUKfFW5IXWa7oRruiQIavrd4krJmuHRG5t89udkeRdSa7EI5abb+0tf PfFIKnh18R2prg7UQ3CHM+VL6jzvLwOFTxrQsScoc/3W+W+s9xdNhHfACIMHNwhNVXZP u80coCeGhosOJGuar/UirXmGf/3iBLTbfOUtdk3SIwvz+S8ii4wJpZneVSXj4HkWaVBD s9Wg== X-Gm-Message-State: AHPjjUjRakhsjI0tf+1URWmfOMmmQfdZUjVoY6q3GqbRJnW09eBshr8G Qi3w4hvV5TXixl01 X-Google-Smtp-Source: ADKCNb7mt8xPrNjWwoB1W3zyHfU3lpduX5DSYpEtYv3rotgQQmAFjidavq9ySdj/9oKc1+xkuoGXuA== X-Received: by 10.84.246.129 with SMTP id m1mr3977093pll.352.1504886146834; Fri, 08 Sep 2017 08:55:46 -0700 (PDT) Received: from xeon-e3 (76-14-207-240.or.wavecable.com. [76.14.207.240]) by smtp.gmail.com with ESMTPSA id o5sm4505876pfh.67.2017.09.08.08.55.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Sep 2017 08:55:46 -0700 (PDT) Date: Fri, 8 Sep 2017 08:55:38 -0700 From: Stephen Hemminger To: george.dit@gmail.com Cc: users@dpdk.org Message-ID: <20170908085538.1161cf68@xeon-e3> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Fri, 08 Sep 2017 15:55:48 -0000 On Fri, 8 Sep 2017 06:35:59 -0700 george.dit@gmail.com wrote: > Hi all, > > I would like to ask how one could retrieve the name of a NIC's vendor using > the PCI vendor ID. > For example, is there any mapping between PCI_VENDOR_ID_INTEL and a const > char* that returns e.g., "Intel"? > > Moreover, why are the vendor IDs redefined by DPDK instead of being reused > from Linux > ? > It would be more convenient if a single RTE library could expose those IDs > to the applications. Currently I see those IDs being spread across the > different drivers. > > Thanks in advance, There already is a standard library for this (libpci). I see no reason to add this to DPDK.