From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v3 5/9] pmdinfogen: move to drivers subdirectory Date: Wed, 21 Jun 2017 09:57:18 +0200 Message-ID: <8418992.7tWpiUoDtu@xps> References: <78a1d2393d08ec3152f01be35d29401447ce616f.1497999952.git.gaetan.rivet@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Gaetan Rivet Return-path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id A3763324E for ; Wed, 21 Jun 2017 09:57:19 +0200 (CEST) In-Reply-To: <78a1d2393d08ec3152f01be35d29401447ce616f.1497999952.git.gaetan.rivet@6wind.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 21/06/2017 01:36, Gaetan Rivet: > pmdinfogen has a dependency on the PCI bus. The latter must be built > first. I think it should not be moved outside of buildtools. The build order can be fixed by installing headers before any compilation like proposed in this RFC: http://dpdk.org/patch/25463 Another (probably better) solution is to keep basic definitions and helpers in EAL: - rte_pci.h keeps only some PCI definitions and helpers like rte_pci_addr and eal_parse_pci_BDF() in EAL - bus management is done in the PCI driver For pmdinfogen, we just need struct rte_pci_id. Other tools or applications will probably need this kind of basic struct and functions available in EAL.