[dpdk-dev] [PATCH v2 1/2] drivers: add common folder

Bruce Richardson bruce.richardson at intel.com
Tue Mar 20 18:01:20 CET 2018


On Tue, Mar 20, 2018 at 09:36:25PM +0530, Pavan Nikhilesh wrote:
> Hi Thomas,
> 
> On Tue, Mar 20, 2018 at 04:45:47PM +0100, Thomas Monjalon wrote:
> > 20/03/2018 15:40, Pavan Nikhilesh:
> > > Add driver/common folder and skeleton makefile for adding commonly
> > > used functions across mempool, event and net devices.
> >
> > I am not sure there is a real benefit of introducing such new
> > directory.  Is it only solving the choice of where you add files used
> > by several drivers?  Is drivers/bus/X/ the directory of choice for
> > platform shared files?
> 
> drivers/bus doesn't seem to be a appropriate abstraction common API's
> used across multiple PMD's.
> 
> This change is in regards with the discussion on ml:
> http://dpdk.org/ml/archives/dev/2018-March/092822.html
> 
> drivers/common seems to be a popular opinion but maybe we could use
> something like drivers/SoC or if you have something in mind please
> suggest.
> 
I think drivers/common is a better solution as it's not just platform buses
or SoC's that this occurs with. Even PCI devices can export multiple
functions, such as in the QAT case, which leads to the case where you have
shared code between different driver classes. I don't think the PCI bus
driver is a good place to put QAT shared code. :-)


More information about the dev mailing list