[dpdk-dev] [PATCH] eal: fix return value comment

wangyunjian wangyunjian at huawei.com
Sat Jun 6 11:17:20 CEST 2020


From: Yunjian Wang <wangyunjian at huawei.com>

Fix few comments and add detailed comments for return value.

Fixes: 279b581c897d ("vfio: expose functions")
Cc: stable at dpdk.org

Signed-off-by: Yunjian Wang <wangyunjian at huawei.com>
---
 lib/librte_eal/include/rte_vfio.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lib/librte_eal/include/rte_vfio.h b/lib/librte_eal/include/rte_vfio.h
index 20ed8c4..15172bf 100644
--- a/lib/librte_eal/include/rte_vfio.h
+++ b/lib/librte_eal/include/rte_vfio.h
@@ -156,7 +156,7 @@ int rte_vfio_setup_device(const char *sysfs_base, const char *dev_addr,
  *   kernel module name.
  *
  * @return
- *   !0 if true.
+ *   1 if true.
  *   0 otherwise.
  */
 int rte_vfio_is_enabled(const char *modname);
@@ -168,8 +168,9 @@ int rte_vfio_setup_device(const char *sysfs_base, const char *dev_addr,
  * an error on BSD.
  *
  * @return
- *   !0 if true.
- *   0 otherwise.
+ *   1 if true.
+ *   0 if false.
+ *   <0 for errors
  */
 int rte_vfio_noiommu_is_enabled(void);
 
-- 
1.8.3.1




More information about the dev mailing list