vfio: set errno on unsupported OS
authorAnatoly Burakov <anatoly.burakov@intel.com>
Thu, 28 Oct 2021 14:15:19 +0000 (14:15 +0000)
committerDavid Marchand <david.marchand@redhat.com>
Mon, 8 Nov 2021 15:45:28 +0000 (16:45 +0100)
commit4fd15c6af0d4e065227a27cda9ec0ca1a563dc67
tree0ea7677389ff1ce30259ba56e42e83194d602b4a
parentda6e4cdca1144e2cc6f9f495a34d3085e707b78a
vfio: set errno on unsupported OS

Currently, when code is running on FreeBSD or Windows, there is no way
to distinguish between a geniune error and a "VFIO is unsupported"
error. Fix the dummy implementations to also set the rte_errno flag.

Fixes: 279b581c897d ("vfio: expose functions")
Fixes: c564a2a20093 ("vfio: expose clear group function for internal usages")
Fixes: 964b2f3bfb07 ("vfio: export some internal functions")
Fixes: ea2dc1066870 ("vfio: add multi container support")
Cc: stable@dpdk.org
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Chenbo Xia <chenbo.xia@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/eal/freebsd/eal.c
lib/eal/windows/eal.c