Skip to contentSkip to conversation

vhost: remove dependency on PCI library

PATCH Superseded David Marchand 2 participants 4 messages Aug 31 – Sep 1 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vhost: remove dependency on PCI library

Since the async datapath code switched to dmadev, there is no reason to depend on the pci library.

Fixes 53d3f4778c1d ("vhost: integrate dmadev in asynchronous data-path")
---
 lib/vhost/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/vhost/meson.build +1 -1
index 6a24981d10..64698182cd 100644
@@ -44,4 +44,4 @@ headers = files(
 driver_sdk_headers = files(
         'vdpa_driver.h',
 )
-deps += ['ethdev', 'cryptodev', 'hash', 'pci', 'dmadev']
+deps += ['ethdev', 'cryptodev', 'hash', 'dmadev']
Signature · 1 line
2.54.0
#1 lore raw

PATCH v2 1/1 vhost: remove dependency on PCI library

Since the async datapath code switched to dmadev, there is no reason to depend on the pci library.

Fixes 53d3f4778c1d ("vhost: integrate dmadev in asynchronous data-path")

---
Changes since v1:
- fixed "internal" dependencies of examples,

---
 examples/vdpa/meson.build  | 1 +
 examples/vhost/meson.build | 1 +
 lib/vhost/meson.build      | 2 +-
 3 files changed, 3 insertions(+), 1 deletion(-)
examples/vdpa/meson.build +1 -0
index 45f8a6fa31..3a319dd539 100644
@@ -12,6 +12,7 @@ if not is_linux
 endif
 
 deps += 'vhost'
+deps += 'pci'
 allow_experimental_apis = true
 sources = files(
         'main.c',
examples/vhost/meson.build +1 -0
index e938be8f45..1cf061c597 100644
@@ -13,6 +13,7 @@ endif
 
 deps += 'vhost'
 deps += 'dmadev'
+deps += 'pci'
 allow_experimental_apis = true
 sources = files(
         'main.c',
lib/vhost/meson.build +1 -1
index 6a24981d10..64698182cd 100644
@@ -44,4 +44,4 @@ headers = files(
 driver_sdk_headers = files(
         'vdpa_driver.h',
 )
-deps += ['ethdev', 'cryptodev', 'hash', 'pci', 'dmadev']
+deps += ['ethdev', 'cryptodev', 'hash', 'dmadev']
Signature · 1 line
2.54.0
#2 lore raw
Quoted 10 lines · David Marchand

Since the async datapath code switched to dmadev, there is no reason to depend on the pci library.

Fixes 53d3f4778c1d ("vhost: integrate dmadev in asynchronous data-path")

---
Changes since v1:
- fixed "internal" dependencies of examples,

Quoted 6 lines
---
 examples/vdpa/meson.build  | 1 +
 examples/vhost/meson.build | 1 +
 lib/vhost/meson.build      | 2 +-
 3 files changed, 3 insertions(+), 1 deletion(-)

No objection to this patch, but rather than changing this now, would we not be better just waiting to see what happens with the sync datapath itself? If it gets removed from vhost lib, then a larger cleanup is likely which should encompass these changes and more.

#3 lore raw
Quoted 12 lines · Bruce Richardson
Quoted 10 lines · David Marchand

Since the async datapath code switched to dmadev, there is no reason to depend on the pci library.

Fixes 53d3f4778c1d ("vhost: integrate dmadev in asynchronous data-path")

---
Changes since v1:
- fixed "internal" dependencies of examples,

Quoted 8 lines
Quoted 6 lines
---
 examples/vdpa/meson.build  | 1 +
 examples/vhost/meson.build | 1 +
 lib/vhost/meson.build      | 2 +-
 3 files changed, 3 insertions(+), 1 deletion(-)

No objection to this patch, but rather than changing this now, would we not be better just waiting to see what happens with the sync datapath itself?

*a*sync I guess.

Quoted 2 lines

If it gets removed from vhost lib, then a larger cleanup is likely which should encompass these changes and more.

On second thought, I agree, it is not worth having as a simple (backportable) fix, it is only an internal dependency.

I don't mind merging it in the series
https://patchwork.dpdk.org/project/dpdk/list/?series=39064&state=*

Signature · 1 line
David Marchand