Skip to contentSkip to conversation

platform/mlx5: clarify device FD closure in mlx5 guide

PATCH In review Shani Peretz 2 participants 2 messages Feb 10 – Feb 24

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 platform/mlx5: clarify device FD closure in mlx5 guide

Document that PMD takes ownership of the duplicated cmd_fd and closes it during device teardown.

---
 doc/guides/platform/mlx5.rst | 1 +
 1 file changed, 1 insertion(+)
doc/guides/platform/mlx5.rst +1 -0
index f386980fdd..285d58be4f 100644
@@ -710,6 +710,7 @@ and below are the arguments supported by the common mlx5 layer.
   File descriptor of ``ibv_context`` created outside the PMD.
   PMD will use this FD to import remote CTX. The ``cmd_fd`` is obtained from
   the ``ibv_context->cmd_fd`` member, which must be dup'd before being passed.
+  The PMD closes the duplicated FD when the device is closed.
   This parameter is valid only if ``pd_handle`` parameter is specified.
 
   By default, the PMD will create a new ``ibv_context``.
Signature · 1 line
2.34.1