From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=fZkKkLr8Bb6U4kj/Kgigy4xhZcnEHoSWRt/ONH78WIA=; b=guovjzYiZLar09ELtDazeMLT1/COuXt7yfgyC2vOa/lWLtMiARkVHlepr4axzJAdAE C+mvg+nL0lllVBx3E7aS9JJpXSj/1clf9afWwmrgJze9BR5fw1T60F4uWa41mJIszr3t y0gFQjGmTdAcg3lYHSh+N2Zhzcr08bSagOMz2vlYg2B8jR8OeBA5HDiKq+FsmAH//1CR +WaxcnUkbtaX/T5mEcOTXvvoDAZBsrs6elMaeOE3WLYklMpktPbFvVv/t15Ka2z5mDnk l4vw2dy7ptT/HYfjObUBBJcVb98skmiO5AN1+J3tfOH6yK+rr1Gog6B1RAynp2gPlj9d xf2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=fZkKkLr8Bb6U4kj/Kgigy4xhZcnEHoSWRt/ONH78WIA=; b=hg75Db5eCxqoxGQcx41DrjrrpL9SWmHun1v1nwznTBtPLUP//OlWmGRCP5OeozXBUq 87z1lEPqBI+hFWGLxnEFQVx3It+k7VkF1kXamPlIU3BHIzwbsm5vRTr1RZ6FkBh+u1NO ooW4XGoEz6ddTkP+1vTZDKaixmFKIuwB63SIax42iBIqnifJymEg5VfGwD64ZjQ6wg6c sKVPlb+p2H9Oz/IYgQD/+SILhVTmbs6jdU6Hhm5qzf+3J15hz4ZPfE17bk+oSR4uAd+G dmm0XZZ9bL10NGNtiW/on2XV+E1puk1oUIQjxBlvoeGjTup33YadHPtQf8x4dbg0M3wS L+KA== X-Gm-Message-State: ALyK8tLCmrsyobmWjzNv5skXlRtHCUR3R5a5UvyeRxsumHxGulja3qN3DcYoqvegeRbjU1SO X-Received: by 10.25.24.30 with SMTP id o30mr10123231lfi.58.1468576600256; Fri, 15 Jul 2016 02:56:40 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id d142sm1753484lfb.22.2016.07.15.02.56.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Jul 2016 02:56:39 -0700 (PDT) From: Thomas Monjalon To: Shreyansh jain , Jan Viktorin Cc: dev@dpdk.org, david.marchand@6wind.com Date: Fri, 15 Jul 2016 11:56:38 +0200 Message-ID: <3291851.1fECXE5TVn@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <5788AF6E.9080203@nxp.com> References: <1466510566-9240-1-git-send-email-shreyansh.jain@nxp.com> <20160714185546.6e483b40@jvn> <5788AF6E.9080203@nxp.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v6 12/17] pci: add a helper for device name X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jul 2016 09:56:40 -0000 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?