On Tue, Feb 7, 2023 at 2:34 AM Stephen Hemminger
wrote:
>
> On Tue, 7 Feb 2023 01:54:43 +0530
> wrote:
>
> > +static struct rte_ml_dev ml_devices[RTE_MLDEV_MAX_DEVS];
> >
>
> This will reserve space for 64 devices, but almost all users
> will only have one. Maybe a level of indirection and alloca
06/02/2023 22:04, Stephen Hemminger:
> On Tue, 7 Feb 2023 01:54:43 +0530
> wrote:
>
> > +static struct rte_ml_dev ml_devices[RTE_MLDEV_MAX_DEVS];
> >
>
> This will reserve space for 64 devices, but almost all users
> will only have one. Maybe a level of indirection and allocate as needed?
>
> Y
On Tue, 7 Feb 2023 01:54:43 +0530
wrote:
> +static struct rte_ml_dev ml_devices[RTE_MLDEV_MAX_DEVS];
>
This will reserve space for 64 devices, but almost all users
will only have one. Maybe a level of indirection and allocate as needed?
You could even use a single allocation for the pmd and dev
From: Srikanth Yalavarthi
Added PMD functions to handle ML devices. The rte_mldev_pmd.*
files are for drivers only and should be private to DPDK, and
are not installed for application use.
Signed-off-by: Srikanth Yalavarthi
Signed-off-by: Jerin Jacob
---
lib/mldev/meson.build | 9 +++
4 matches
Mail list logo