From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by dpdk.org (Postfix) with ESMTP id 418D81B3C3 for ; Mon, 23 Oct 2017 10:49:56 +0200 (CEST) Received: by mail-wm0-f44.google.com with SMTP id t69so7979578wmt.2 for ; Mon, 23 Oct 2017 01:49:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=dkKX3hJa8jgML3p2G+1pkp8vF/s7bMaInl22EBYf6kg=; b=lGza8nuZWHTJcPfn5G0MU5Z52w/i964lSU43N92pWwFvtcGiAZLPZxBYjx4W9BvZDN 2CMOZ5RpdGyKBXwOrci8Cy5KyOf2pOoqRNMZqZV9A9jF3aK/3ObY+ewT6r7+4pm9xLUd 5dpNecQKzkG5lqQagmA6Idr0k2b94K1tASYYNAyt+cdQXw1Z/yHAtNKwVgPfdTGx4bpI 4xlN0GNsJOB5BNqAUtPuO0M/tczY+Z0F9UibKeW9i5UaxZyqRhYd1piS+nZ5vbycMfMj YWHD/jYEhTt2EIubiJDThCYB+31pLg6Sznsb7UP0PWRo0yqF4Imr4iuy9SBUGpK+s+FS yHhA== 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:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=dkKX3hJa8jgML3p2G+1pkp8vF/s7bMaInl22EBYf6kg=; b=YLA9ltLi+ZS3AX3wt6bMHU+4oeFXG81cqYHxhyrhO5pbb3DSA/OUxneZXOUhI1HqZf XJnXEE/hwXjeqkXaFMZ3JiWShQ2N0DW2j9zHcyuFJHyonObDZE94EwcLhzKmc7BgJXDp Xwyf641fKcEvHwym1a1/1TYtTul220D/nFS2tcQz1+QTgZtcOZjdSANqN7EQwU9G/6U3 MGVilIniXksqdPqdsPjJ0V9KHqFMUm0jx0wAtLdMmwjTX+xlmKkSxzDYaLB9fkVyUGF7 qwfqbO43v+Bx4/wfxBJlcEmqLb+mF23HXqoNFZVHXk7c3CsCkajphNY3m2M7XmgD5fs9 Zmfg== X-Gm-Message-State: AMCzsaWNX57HVeT2pIWBxKckSmqoShCAbgJo/muHTESysYXobe7hflog AJWWDuR8zEfJ9ozumbew+Dce/A== X-Google-Smtp-Source: ABhQp+SUgMGi64jkDOTMjrNuW+GM0Dy6/SXWE+Pn5KNj9FjCE1gpc6LlrLR4eS0i87Cjl1PN2cWBeA== X-Received: by 10.28.146.20 with SMTP id u20mr5297620wmd.49.1508748595789; Mon, 23 Oct 2017 01:49:55 -0700 (PDT) Received: from bidouze.vm.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id q81sm5643315wmd.27.2017.10.23.01.49.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Oct 2017 01:49:55 -0700 (PDT) Date: Mon, 23 Oct 2017 10:49:43 +0200 From: =?iso-8859-1?Q?Ga=EBtan?= Rivet To: "De Lara Guarch, Pablo" Cc: "Doherty, Declan" , "dev@dpdk.org" Message-ID: <20171023084943.GN3596@bidouze.vm.6wind.com> References: <98afeb56-69b4-dcff-df5b-897d279c5072@intel.com> <20171011143213.GF31685@bidouze.vm.6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] [PATCH v2 00/14] Move PCI away from the EAL 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: Mon, 23 Oct 2017 08:49:56 -0000 Hello Pablo, On Mon, Oct 23, 2017 at 08:44:31AM +0000, De Lara Guarch, Pablo wrote: > Hi Gaetan, > > > -----Original Message----- > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Gaëtan Rivet > > Sent: Wednesday, October 11, 2017 3:32 PM > > To: Doherty, Declan > > Cc: dev@dpdk.org > > Subject: Re: [dpdk-dev] [PATCH v2 00/14] Move PCI away from the EAL > > > > On Wed, Oct 11, 2017 at 03:19:31PM +0100, Doherty, Declan wrote: > > > On 18/09/2017 10:31 AM, Gaetan Rivet wrote: > > > >Hi all, > > > > > > > >Here is a new version of the PCI bus move out of the EAL. > > > > > > > >The EAL PCI implementation is divided in two parts: > > > > > > > > - librte_pci: library offering helpers to handle PCI objects > > > > - librte_bus_pci: bus driver for PCI devices > > > > > > > >This allows other libraries / tools to use PCI elements (location, > > > >mappings, parsing operations, etc) without forcing a dependency on a > > bus driver. > > > > > > > >The latter should not have to export helpers that others might need. > > > >It is focused on defining the rte_pci_device, rte_pci_driver objects > > > >and their handling. > > > > > > > >The cryptodev library has hard dependencies on rte_pci_devices (used > > > >by generic probe function). Other similar libs (ether and eventdev) > > > >avoided the issue by inlining such functions and expecting users to > > > >include the relevant headers once the PCI bus has already been built. > > > > > > > >@Declan: > > > >I proposed a solution that would avoid inlining those functions, > > > >which does not feel right. Let me know what you think of it or if you > > > >think of a better solution. I think it would be best to have > > > >cryptodev completely independent from PCI / vdev as far as the lib in > > > >concerned (the vdev bus will move as well). > > > > > > > > > > > > > Hey Gaetan, apologies for the delay in getting back to you on this, I > > > had been looking at this but got sidelined onto other issues before > > > usersapce and I'm only getting back to it now. I think that while your > > > solution works it just highlights the dependency which probably > > > shouldn't be there between the cryptodev library and PCI devices. I've > > > had a look, and the functions in the cryptodev which you moved don't > > > really provide that much useful functionality. I done some testing and > > > completely removed them and just update the QAT PMD which is the only > > > crypto PMD which was using them and it seems much cleaner to me. I'll > > > push a patch for this change later today and it will allow you to drop > > > the patch "cryptodev: move PCI specific helpers to drivers/crypto" from > > this set. > > > > > > Regards > > > Declan > > > > > > > > > > > > > Hi Declan, > > > > All right, seems good from my PoV. I will rebase onto your patch once it is > > sent. > > > > Could you take a look at Declan's patchset and tell him what you think? > http://dpdk.org/ml/archives/dev/2017-October/079827.html > > It might be a bit late, but if we think it is a better approach for cryptodev, > we could avoid creating a new PCI folder under drivers/crypto. > > Thanks! > Pablo > Thanks for the heads up :) I was working with a stand-in patch on my PCI move series, I will use yours instead and see if I have any problem. I am bound to send a new version soon, if all is fine I will add the dependency on your series. -- Gaëtan Rivet 6WIND