Skip to contentSkip to conversation

build: make ring mempool driver mandatory

PATCH Applied Bruce Richardson 3 participants 3 messages Feb 14, 2022 – Feb 22, 2022 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 build: make ring mempool driver mandatory

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.

---
 drivers/meson.build | 2 ++
 1 file changed, 2 insertions(+)
drivers/meson.build +2 -0
index d5f4e1c1f2..1d8123b00c 100644
@@ -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
Signature · 1 line
2.32.0
Acked-by on v1 1/1
#1 lore raw
Quoted 32 lines

From: Bruce Richardson [mailto:[email protected]]
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.

---
 drivers/meson.build | 2 ++
 1 file changed, 2 insertions(+)
drivers/meson.build +1 -0
index d5f4e1c1f2..1d8123b00c 100644
@@ -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

Quoted 4 lines

default_cflags = machine_args
--
2.32.0

#2 lore raw

15/02/2022 10:25, Morten Brørup:

Quoted 14 lines
Quoted 14 lines

From: Bruce Richardson [mailto:[email protected]]
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.

Quoted 3 lines
Quoted 1 line

Applied, thanks.