DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] build: make ring mempool driver mandatory
@ 2022-02-14 15:30 Bruce Richardson
  2022-02-15  9:25 ` Morten Brørup
  0 siblings, 1 reply; 3+ messages in thread
From: Bruce Richardson @ 2022-02-14 15:30 UTC (permalink / raw)
  To: dev; +Cc: Olivier Matz, Andrew Rybchenko, Bruce Richardson

The default mempool driver is one based on the rte_ring, and as such it
needs to be present to have just about any app (which doesn't override
the mempool) run. Given this state of affairs it is probably best to add
this default mempool driver to the always-enabled list to ensure we get
a runnable build in all cases. This means that, for example, to run some
NIC tests with testpmd in a minimal build, in most cases, all the user
should need to do is specify "-Denable_drivers=net/<nic_drv>" for the
build.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
 drivers/meson.build | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/meson.build b/drivers/meson.build
index d5f4e1c1f2..1d8123b00c 100644
--- a/drivers/meson.build
+++ b/drivers/meson.build
@@ -40,6 +40,8 @@ endif
 
 # these drivers must always be enabled, otherwise the build breaks
 always_enable = ['bus/pci', 'bus/vdev']
+# we always need a mempool driver, and ring is default, so make it mandatory
+always_enable += ['mempool/ring']
 enable_drivers += always_enable
 
 default_cflags = machine_args
-- 
2.32.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [PATCH] build: make ring mempool driver mandatory
  2022-02-14 15:30 [PATCH] build: make ring mempool driver mandatory Bruce Richardson
@ 2022-02-15  9:25 ` Morten Brørup
  2022-02-22 14:39   ` Thomas Monjalon
  0 siblings, 1 reply; 3+ messages in thread
From: Morten Brørup @ 2022-02-15  9:25 UTC (permalink / raw)
  To: Bruce Richardson, dev; +Cc: Olivier Matz, Andrew Rybchenko

> From: Bruce Richardson [mailto:bruce.richardson@intel.com]
> Sent: Monday, 14 February 2022 16.31
> 
> The default mempool driver is one based on the rte_ring, and as such it
> needs to be present to have just about any app (which doesn't override
> the mempool) run. Given this state of affairs it is probably best to
> add
> this default mempool driver to the always-enabled list to ensure we get
> a runnable build in all cases. This means that, for example, to run
> some
> NIC tests with testpmd in a minimal build, in most cases, all the user
> should need to do is specify "-Denable_drivers=net/<nic_drv>" for the
> build.
> 
> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> ---
>  drivers/meson.build | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/meson.build b/drivers/meson.build
> index d5f4e1c1f2..1d8123b00c 100644
> --- a/drivers/meson.build
> +++ b/drivers/meson.build
> @@ -40,6 +40,8 @@ endif
> 
>  # these drivers must always be enabled, otherwise the build breaks
>  always_enable = ['bus/pci', 'bus/vdev']
> +# we always need a mempool driver, and ring is default, so make it
> mandatory
> +always_enable += ['mempool/ring']
>  enable_drivers += always_enable
> 
>  default_cflags = machine_args
> --
> 2.32.0
> 

Acked-by: Morten Brørup <mb@smartsharesystems.com>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] build: make ring mempool driver mandatory
  2022-02-15  9:25 ` Morten Brørup
@ 2022-02-22 14:39   ` Thomas Monjalon
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2022-02-22 14:39 UTC (permalink / raw)
  To: Bruce Richardson; +Cc: dev, Olivier Matz, Andrew Rybchenko, Morten Brørup

15/02/2022 10:25, Morten Brørup:
> > From: Bruce Richardson [mailto:bruce.richardson@intel.com]
> > Sent: Monday, 14 February 2022 16.31
> > 
> > The default mempool driver is one based on the rte_ring, and as such it
> > needs to be present to have just about any app (which doesn't override
> > the mempool) run. Given this state of affairs it is probably best to
> > add
> > this default mempool driver to the always-enabled list to ensure we get
> > a runnable build in all cases. This means that, for example, to run
> > some
> > NIC tests with testpmd in a minimal build, in most cases, all the user
> > should need to do is specify "-Denable_drivers=net/<nic_drv>" for the
> > build.
> > 
> > Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> 
> Acked-by: Morten Brørup <mb@smartsharesystems.com>

Applied, thanks.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-02-22 14:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-14 15:30 [PATCH] build: make ring mempool driver mandatory Bruce Richardson
2022-02-15  9:25 ` Morten Brørup
2022-02-22 14:39   ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).