Re: [PATCH] vfio: add get device info API

2023-11-24 Thread Burakov, Anatoly
On 11/14/2023 11:48 AM, Mingjin Ye wrote: This patch adds an API to support getting device information. The driver can use the "rte_vfio_get_device_info" helper to get device information from EAL. Cc: sta...@dpdk.org Signed-off-by: Mingjin Ye --- lib/eal/include/rte_vfio.h | 26

Re: [PATCH] vfio: add get device info API

2023-11-15 Thread Stephen Hemminger
On Wed, 15 Nov 2023 07:54:20 + "Ye, MingjinX" wrote: > > > +int > > > +rte_vfio_get_device_info(const char *sysfs_base, const char *dev_addr, > > > + int *vfio_dev_fd, struct vfio_device_info > > *device_info); > > > > New api's must be experimental. > > Or is this just int

RE: [PATCH] vfio: add get device info API

2023-11-14 Thread Ye, MingjinX
ngjinX > Cc: dev@dpdk.org; Yang, Qiming ; > sta...@dpdk.org; Burakov, Anatoly > Subject: Re: [PATCH] vfio: add get device info API > > On Tue, 14 Nov 2023 10:48:16 + > Mingjin Ye wrote: > > > +/** > > + * Get device information > > + * > > +

Re: [PATCH] vfio: add get device info API

2023-11-14 Thread Chenbo Xia
> On Nov 14, 2023, at 18:23, Mingjin Ye wrote: > > External email: Use caution opening links or attachments > > > This patch adds an API to support getting device information. > > The driver can use the "rte_vfio_get_device_info" helper to get > device information from EAL. > > Cc: sta...@d

Re: [PATCH] vfio: add get device info API

2023-11-14 Thread Stephen Hemminger
On Tue, 14 Nov 2023 10:48:16 + Mingjin Ye wrote: > +/** > + * Get device information > + * > + * This function is only relevant to linux and will return > + * an error on BSD. > + * > + * @param sysfs_base > + * sysfs path prefix. > + * > + * @param dev_addr > + * device location. > + * >