Test-Label: iol-testing Test-Status: WARNING http://dpdk.org/patch/112926 _apply patch failure_ Submitter: Michael Baum Date: Thursday, June 16 2022 17:10:17 Applied on: CommitID:7342e612052ae3ec875ae018548324d29abfa9c2 Apply patch set 112926-112925 failed: Checking patch app/test-pmd/cmdline.c... Checking patch app/test-pmd/testpmd.c... Hunk #1 succeeded at 3316 (offset -44 lines). Checking patch doc/guides/nics/mlx5.rst... error: while searching for: .. code-block:: console testpmd> mlx5 set port 1 host_shaper avail_thresh_triggered 0 rate 50 error: patch failed: doc/guides/nics/mlx5.rst:1777 Checking patch drivers/net/mlx5/mlx5_testpmd.c... error: drivers/net/mlx5/mlx5_testpmd.c: does not exist in index Checking patch drivers/net/mlx5/mlx5_testpmd.h... error: drivers/net/mlx5/mlx5_testpmd.h: does not exist in index Applied patch app/test-pmd/cmdline.c cleanly. Applied patch app/test-pmd/testpmd.c cleanly. Applying patch doc/guides/nics/mlx5.rst with 1 reject... Rejected hunk #1. diff a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst (rejected hunks) @@ -1777,3 +1777,47 @@ the command sets the current shaper to 5Gbps and disables avail_thresh_triggered .. code-block:: console testpmd> mlx5 set port 1 host_shaper avail_thresh_triggered 0 rate 50 + + +Testpmd +------- + +port attach with socket path +~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Attach a port specified by pci address or virtual device args and add extra +devargs to it, which is imported from external process:: + + testpmd> port attach (identifier) mlx5_socket=(path) + +where: + +* ``identifier``: pci address or virtual device args. +* ``path``: socket path to import arguments agreed by the external process. + +The mlx5 PMD enables to import CTX and PD created outside the PMD. +It gets as devargs the device's ``cmd_fd`` and ``pd_handle``, +then using those arguments to import objects. +See :ref:`mlx5 driver options ` for more information. + +When ``cmd_fd`` and ``pd_handle`` arguments are coming from another process, +the FD must be dup'd before being passed. +In this function, testpmd initializes IPC socket to get FD using SCM_RIGHTS. +It gets the external process socket path, then import the ``cmd_fd`` and +``pd_handle`` arguments and add them to devargs list. +After updating this, it calls the regular ``port attach`` function +with extended identifier. + +For example, to attach a port whose pci address is ``0000:0a:00.0`` and its +socket path is ``/var/run/import_ipc_socket``. + +.. code-block:: console + + testpmd> port attach 0000:0a:00.0 mlx5_socket=/var/run/import_ipc_socket + Attaching a new port... + testpmd: MLX5 socket path is /var/run/import_ipc_socket + testpmd: Attach port with extra devargs 0000:0a:00.0,cmd_fd=40,pd_handle=1 + EAL: Probe PCI driver: mlx5_pci (15b3:101d) device: 0000:0a:00.0 (socket 0) + Port 0 is attached. Now total ports is 1 + Done + Checking patch doc/guides/nics/mlx5.rst... error: while searching for: Port 0 is attached. Now total ports is 1 Done error: patch failed: doc/guides/nics/mlx5.rst:1821 Checking patch drivers/net/mlx5/mlx5_testpmd.c... error: drivers/net/mlx5/mlx5_testpmd.c: does not exist in index Applying patch doc/guides/nics/mlx5.rst with 1 reject... Rejected hunk #1. diff a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst (rejected hunks) @@ -1821,3 +1821,22 @@ socket path is ``/var/run/import_ipc_socket``. Port 0 is attached. Now total ports is 1 Done + +port map external RxQ +~~~~~~~~~~~~~~~~~~~~~ + +API for external RxQ mapping management. + +Map HW queue index (32 bit) to rte_flow queue index (16 bit) for external RxQ:: + + testpmd> port (port_id) ext_rxq map (rte_queue_id) (hw_queue_id) + +Unmap external Rx queue rte_flow index mapping:: + + testpmd> port (port_id) ext_rxq unmap (rte_queue_id) + +where: + +* ``rte_queue_id``: queue index in range [64536, 65535]. + This range is the highest 1000 numbers represented by 16 bits. +* ``hw_queue_id``: queue index given by HW in queue creation. https://lab.dpdk.org/results/dashboard/patchsets/22655/ UNH-IOL DPDK Community Lab