From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v6 12/17] pci: add a helper for device name Date: Fri, 15 Jul 2016 11:56:38 +0200 Message-ID: <3291851.1fECXE5TVn@xps13> References: <1466510566-9240-1-git-send-email-shreyansh.jain@nxp.com> <20160714185546.6e483b40@jvn> <5788AF6E.9080203@nxp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, david.marchand@6wind.com To: Shreyansh jain , Jan Viktorin Return-path: Received: from mail-lf0-f45.google.com (mail-lf0-f45.google.com [209.85.215.45]) by dpdk.org (Postfix) with ESMTP id 90E4C4A65 for ; Fri, 15 Jul 2016 11:56:40 +0200 (CEST) Received: by mail-lf0-f45.google.com with SMTP id f93so84512276lfi.2 for ; Fri, 15 Jul 2016 02:56:40 -0700 (PDT) In-Reply-To: <5788AF6E.9080203@nxp.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-07-15 15:09, Shreyansh jain: > On Thursday 14 July 2016 10:25 PM, Jan Viktorin wrote: > > What is meant by "resources" here? > > This has historic context (from earlier version of this patch). > But I could relate the word 'resources' to EAL representation of devices - whether PCI or Crypto. > Or, Resource == Device. We need to define a precise wording, especially for the words - interface - resource - device - driver - module Following are my thoughts: An interface is a view of a resource through an API (e.g. an ethdev port). A resource is a well identified hardware (e.g. a PCI device id). A device is a hardware function (e.g. a networking port). Note that some PCI NICs have only one PCI device id for several ports (Chelsio and Mellanox cases). That's why we need to distinguish device and resource. A driver is the code handling a device. I have read the word module in some patch proposals but I don't really know what it refers to. Is it a group of drivers in the same file/directory?