platform/mlx5: clarify device FD closure in mlx5 guide
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.
Signed-off-by Shani Peretz <[email protected]>
--- doc/guides/platform/mlx5.rst | 1 + 1 file changed, 1 insertion(+)
doc/guides/platform/mlx5.rst +1 -0
@@ -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
Hi,
Quoted 5 lines · Shani Peretz
Document that PMD takes ownership of the duplicated
cmd_fdand closes it during device teardown.Signed-off-by Shani Peretz <[email protected]>
Patch applied to next-net-mlx,
Kindest regards
Raslan Darawsheh