Re: [dpdk-dev] [PATCH v1 2/2] vfio: add errno on unsupported platforms

2021-09-21 Thread Xia, Chenbo
> -Original Message- > From: dev On Behalf Of Anatoly Burakov > Sent: Thursday, September 16, 2021 6:37 PM > To: dev@dpdk.org; Richardson, Bruce > Subject: [dpdk-dev] [PATCH v1 2/2] vfio: add errno on unsupported platforms > > Currently, when code is running

Re: [dpdk-dev] [PATCH v1 2/2] vfio: add errno on unsupported platforms

2021-09-16 Thread Bruce Richardson
On Thu, Sep 16, 2021 at 10:36:38AM +, Anatoly Burakov wrote: > Currently, when code is running on FreeBSD (or using fallback Linux > implementation), there is no way to distinguish between a geniune error > and a "VFIO is unsupported" error. Fix the dummy implemnetations to also > set the rte_e

[dpdk-dev] [PATCH v1 2/2] vfio: add errno on unsupported platforms

2021-09-16 Thread Anatoly Burakov
Currently, when code is running on FreeBSD (or using fallback Linux implementation), there is no way to distinguish between a geniune error and a "VFIO is unsupported" error. Fix the dummy implemnetations to also set the rte_errno flag. Signed-off-by: Anatoly Burakov --- lib/eal/freebsd/eal.c