Re: [dpdk-dev] [PATCH v2 02/12] mldev: support PMD functions for ML device

2023-02-06 Thread Jerin Jacob
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

Re: [dpdk-dev] [PATCH v2 02/12] mldev: support PMD functions for ML device

2023-02-06 Thread Thomas Monjalon
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

Re: [dpdk-dev] [PATCH v2 02/12] mldev: support PMD functions for ML device

2023-02-06 Thread 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? You could even use a single allocation for the pmd and dev

[dpdk-dev] [PATCH v2 02/12] mldev: support PMD functions for ML device

2023-02-06 Thread jerinj
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 +++