* |WARNING| pw112926-112925 [PATCH] [v2, 2/2] app/testpmd: add test for external RxQ
@ 2022-06-16 17:30 dpdklab
0 siblings, 0 replies; only message in thread
From: dpdklab @ 2022-06-16 17:30 UTC (permalink / raw)
To: test-report; +Cc: dpdk-test-reports
[-- Attachment #1: Type: text/plain, Size: 4166 bytes --]
Test-Label: iol-testing
Test-Status: WARNING
http://dpdk.org/patch/112926
_apply patch failure_
Submitter: Michael Baum <michaelba@nvidia.com>
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 <mlx5_common_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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-16 17:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-16 17:30 |WARNING| pw112926-112925 [PATCH] [v2, 2/2] app/testpmd: add test for external RxQ dpdklab
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).