[PATCH] platform/mlx5: clarify device FD closure in mlx5 guide
Shani Peretz
shperetz at nvidia.com
Tue Feb 10 15:46:53 CET 2026
Document that PMD takes ownership of the duplicated cmd_fd
and closes it during device teardown.
Signed-off-by: Shani Peretz <shperetz at nvidia.com>
Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
---
doc/guides/platform/mlx5.rst | 1 +
1 file changed, 1 insertion(+)
diff --git a/doc/guides/platform/mlx5.rst b/doc/guides/platform/mlx5.rst
index f386980fdd..285d58be4f 100644
--- a/doc/guides/platform/mlx5.rst
+++ b/doc/guides/platform/mlx5.rst
@@ -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``.
--
2.34.1
More information about the dev
mailing list