From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 3EAE8209EF; Wed, 21 Jun 2017 03:57:19 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 21 Jun 2017 03:57:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=GdSkzwVOlDkpIDQ X7Of8j85O6ZT3QGUTcBJDB8Es5Ko=; b=ZimhVm/ePOtu7/r+1dzTsdCIldGcpFt +tNC8xjTR75vYaTTHQCcFNKJ04L/UyUjrJtPxKUkOrFXDlxH64ioqmVB++9exmZo wRzk9BS7MWdp3zGnhPVokApXMCJUEWS5xLc4Fj+mdNf+pzIEwUQd5NqYQVviTcvV V2PkCxVEa7oY= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=GdSkzwVOlDkpIDQX7Of8j85O6ZT3QGUTcBJDB8Es5Ko=; b=nfuHEjAM 9YCBU+TmaKS7AsiGwTGrM4GiS6pHVOdmgc74b22y/Y2X6W9g9XKcIMdNYNlLzSrd EihUgDPw+4pY9evbfDNudenVJJVl7/sqRLIwDi1UG1l6bsGjo/T3ayDCr0Udr+qI 7y8lO8RNoXtb9bAmafuEFcpUS7WzEBNiJOc6ydsf9GGzfhN03Js1MLw/7KRpsI1c A/x/+DEr0rJhLrz/vKQsdgR+6kVsgU034kiUNnQ7HZWYYNKP3I08xa9fq9ithPpd iggzsGM2QwQ+AARaVQrpyqfbqVD9Eb16uS1R8GPumnDvlMn0eM+nnwWM0zLYeq/o WSbNy73BYnqzgw== X-ME-Sender: X-Sasl-enc: eCOpfvmiOq+OyNOTjbG9Mj6oxyYsNm5dVGwk7f0mCCuW 1498031838 Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id EB1A67E74F; Wed, 21 Jun 2017 03:57:18 -0400 (EDT) From: Thomas Monjalon To: Gaetan Rivet Cc: dev@dpdk.org Date: Wed, 21 Jun 2017 09:57:18 +0200 Message-ID: <8418992.7tWpiUoDtu@xps> In-Reply-To: <78a1d2393d08ec3152f01be35d29401447ce616f.1497999952.git.gaetan.rivet@6wind.com> References: <78a1d2393d08ec3152f01be35d29401447ce616f.1497999952.git.gaetan.rivet@6wind.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v3 5/9] pmdinfogen: move to drivers subdirectory X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2017 07:57:20 -0000 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.