Skip to contentSkip to conversation

gpudev: export header file for external drivers

PATCH In review Thomas Monjalon 2 participants 3 messages Mar 16, 2023 – Mar 19, 2023 1 message not in the archive Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpudev: export header file for external drivers

In DPDK 21.05, the option driver_sdk_headers was introduced to export required headers to allow building out-of-tree drivers.

In DPDK 21.11, the gpudev driver class was introduced, without this out-of-tree compatibility.

It is fixed by exporting gpudev_driver.h as part of the driver SDK.

Fixes 8b8036a66e3d ("gpudev: introduce GPU device class library")
---
 lib/gpudev/meson.build | 4 ++++
 1 file changed, 4 insertions(+)
lib/gpudev/meson.build +4 -0
index 89a118f357..40dd6c0ffc 100644
@@ -5,6 +5,10 @@ headers = files(
         'rte_gpudev.h',
 )
 
+driver_sdk_headers = files(
+        'gpudev_driver.h'
+)
+
 sources = files(
         'gpudev.c',
 )
Signature · 1 line
2.39.1
#1 lore raw
Quoted 7 lines · Thomas Monjalon

In DPDK 21.05, the option driver_sdk_headers was introduced to export required headers to allow building out-of-tree drivers.

In DPDK 21.11, the gpudev driver class was introduced, without this out-of-tree compatibility.

Quoted 7 lines

It is fixed by exporting gpudev_driver.h as part of the driver SDK.

Fixes 8b8036a66e3d ("gpudev: introduce GPU device class library")

LGTM, thanks.

Signature · 1 line
David Marchand

A message that is not in the archive (sent off-list or not yet received): 2906874.VdNmn5OnKV@thomas

#3 lore raw

19/03/2023 23:28, Thomas Monjalon:

Quoted 14 lines

16/03/2023 10:23, David Marchand:

Quoted 13 lines · Thomas Monjalon
Quoted 12 lines

In DPDK 21.05, the option driver_sdk_headers was introduced to export required headers to allow building out-of-tree drivers.

In DPDK 21.11, the gpudev driver class was introduced, without this out-of-tree compatibility.

It is fixed by exporting gpudev_driver.h as part of the driver SDK.

Fixes 8b8036a66e3d ("gpudev: introduce GPU device class library")
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

LGTM, thanks.

Applied

Forgot to send the v2 merged with this addition:
"
As a consequence of exporting this header file, C++ "extern C" guard must be added.
"