gpudev: export header file for external drivers
Checks
Commit Message
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")
Cc: stable@dpdk.org
Reported-by: David Marchand <david.marchand@redhat.com>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
---
lib/gpudev/meson.build | 4 ++++
1 file changed, 4 insertions(+)
Comments
On Thu, Mar 16, 2023 at 9:59 AM Thomas Monjalon <thomas@monjalon.net> wrote:
>
> 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")
> Cc: stable@dpdk.org
>
> Reported-by: David Marchand <david.marchand@redhat.com>
> Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
LGTM, thanks.
16/03/2023 10:23, David Marchand:
> On Thu, Mar 16, 2023 at 9:59 AM Thomas Monjalon <thomas@monjalon.net> wrote:
> >
> > 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")
> > Cc: stable@dpdk.org
> >
> > Reported-by: David Marchand <david.marchand@redhat.com>
> > Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
>
> LGTM, thanks.
Applied
19/03/2023 23:28, Thomas Monjalon:
> 16/03/2023 10:23, David Marchand:
> > On Thu, Mar 16, 2023 at 9:59 AM Thomas Monjalon <thomas@monjalon.net> wrote:
> > >
> > > 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")
> > > Cc: stable@dpdk.org
> > >
> > > Reported-by: David Marchand <david.marchand@redhat.com>
> > > Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
> >
> > 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.
"
@@ -5,6 +5,10 @@ headers = files(
'rte_gpudev.h',
)
+driver_sdk_headers = files(
+ 'gpudev_driver.h'
+)
+
sources = files(
'gpudev.c',
)