Skip to content

Commit

Permalink
vfio: fix FreeBSD clear group stub
Browse files Browse the repository at this point in the history
[ upstream commit bf8b792 ]

On FreeBSD, `rte_vfio_clear_group()` was returning 0 even though this
function is not valid for FreeBSD, and is called out to return error in
doxygen comments.
Fix the return value to match documentation.

Fixes: c564a2a ("vfio: expose clear group function for internal usages")

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
  • Loading branch information
anatolyburakov authored and cpaelzer committed Nov 30, 2021
1 parent ed7ba18 commit 8bcb2f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/librte_eal/freebsd/eal/eal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,7 @@ int rte_vfio_noiommu_is_enabled(void)

int rte_vfio_clear_group(__rte_unused int vfio_group_fd)
{
return 0;
return -1;
}

int
Expand Down

0 comments on commit 8bcb2f4

Please sign in to comment.