On 13-Feb-19 9:10 AM, Shahaf Shuler wrote:
Enable users the option to call rte_vfio_dma_map with request to map
to the default vfio fd.

Signed-off-by: Shahaf Shuler <shah...@mellanox.com>
---
  lib/librte_eal/common/include/rte_vfio.h |  6 ++++--
  lib/librte_eal/linuxapp/eal/eal_vfio.c   | 14 ++++++++++++--
  2 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/lib/librte_eal/common/include/rte_vfio.h 
b/lib/librte_eal/common/include/rte_vfio.h
index cae96fab90..2a6827012f 100644
--- a/lib/librte_eal/common/include/rte_vfio.h
+++ b/lib/librte_eal/common/include/rte_vfio.h
@@ -347,7 +347,8 @@ rte_vfio_container_group_unbind(int container_fd, int 
iommu_group_num);
   * Perform DMA mapping for devices in a container.
   *
   * @param container_fd
- *   the specified container fd
+ *   the specified container fd. In case of -1 the default container
+ *   fd will be used.

I haven't looked at the patchset in depth yet, however, this changes the public API, so warrants a note in release notes.

--
Thanks,
Anatoly

Reply via email to