xref: /dpdk/doc/guides/tools/testeventdev.rst (revision 7a7a04d3ce8eab9b53d23b673dfdc71b50fd523d)
1a9263e3cSJerin Jacob..  SPDX-License-Identifier: BSD-3-Clause
2a9263e3cSJerin Jacob    Copyright(c) 2017 Cavium, Inc
364b20e7fSGuduri Prathyusha
464b20e7fSGuduri Prathyushadpdk-test-eventdev Application
564b20e7fSGuduri Prathyusha==============================
664b20e7fSGuduri Prathyusha
764b20e7fSGuduri PrathyushaThe ``dpdk-test-eventdev`` tool is a Data Plane Development Kit (DPDK)
864b20e7fSGuduri Prathyushaapplication that allows exercising various eventdev use cases.
964b20e7fSGuduri PrathyushaThis application has a generic framework to add new eventdev based test cases to
1064b20e7fSGuduri Prathyushaverify functionality and measure the performance parameters of DPDK eventdev
1164b20e7fSGuduri Prathyushadevices.
1264b20e7fSGuduri Prathyusha
1364b20e7fSGuduri Prathyusha
1464b20e7fSGuduri PrathyushaRunning the Application
1564b20e7fSGuduri Prathyusha-----------------------
1664b20e7fSGuduri Prathyusha
1764b20e7fSGuduri PrathyushaThe application has a number of command line options:
1864b20e7fSGuduri Prathyusha
1964b20e7fSGuduri Prathyusha.. code-block:: console
2064b20e7fSGuduri Prathyusha
2164b20e7fSGuduri Prathyusha   dpdk-test-eventdev [EAL Options] -- [application options]
2264b20e7fSGuduri Prathyusha
2364b20e7fSGuduri PrathyushaEAL Options
2464b20e7fSGuduri Prathyusha~~~~~~~~~~~
2564b20e7fSGuduri Prathyusha
2664b20e7fSGuduri PrathyushaThe following are the EAL command-line options that can be used in conjunction
2764b20e7fSGuduri Prathyushawith the ``dpdk-test-eventdev`` application.
2864b20e7fSGuduri PrathyushaSee the DPDK Getting Started Guides for more information on these options.
2964b20e7fSGuduri Prathyusha
3064b20e7fSGuduri Prathyusha*   ``-c <COREMASK>`` or ``-l <CORELIST>``
3164b20e7fSGuduri Prathyusha
3264b20e7fSGuduri Prathyusha        Set the hexadecimal bitmask of the cores to run on. The corelist is a
3364b20e7fSGuduri Prathyusha        list of cores to use.
3464b20e7fSGuduri Prathyusha
3564b20e7fSGuduri Prathyusha*   ``--vdev <driver><id>``
3664b20e7fSGuduri Prathyusha
3764b20e7fSGuduri Prathyusha        Add a virtual eventdev device.
3864b20e7fSGuduri Prathyusha
3964b20e7fSGuduri PrathyushaApplication Options
4064b20e7fSGuduri Prathyusha~~~~~~~~~~~~~~~~~~~
4164b20e7fSGuduri Prathyusha
4264b20e7fSGuduri PrathyushaThe following are the application command-line options:
4364b20e7fSGuduri Prathyusha
4464b20e7fSGuduri Prathyusha* ``--verbose``
4564b20e7fSGuduri Prathyusha
4664b20e7fSGuduri Prathyusha        Set verbose level. Default is 1. Value > 1 displays more details.
4764b20e7fSGuduri Prathyusha
4864b20e7fSGuduri Prathyusha* ``--dev <n>``
4964b20e7fSGuduri Prathyusha
5064b20e7fSGuduri Prathyusha        Set the device id of the event device.
5164b20e7fSGuduri Prathyusha
5264b20e7fSGuduri Prathyusha* ``--test <name>``
5364b20e7fSGuduri Prathyusha
5464b20e7fSGuduri Prathyusha        Set test name, where ``name`` is one of the following::
5564b20e7fSGuduri Prathyusha
5664b20e7fSGuduri Prathyusha         order_queue
5764b20e7fSGuduri Prathyusha         order_atq
5864b20e7fSGuduri Prathyusha         perf_queue
5964b20e7fSGuduri Prathyusha         perf_atq
60a4f56123SPavan Nikhilesh         pipeline_atq
61a4f56123SPavan Nikhilesh         pipeline_queue
6264b20e7fSGuduri Prathyusha
6364b20e7fSGuduri Prathyusha* ``--socket_id <n>``
6464b20e7fSGuduri Prathyusha
6564b20e7fSGuduri Prathyusha        Set the socket id of the application resources.
6664b20e7fSGuduri Prathyusha
6764b20e7fSGuduri Prathyusha* ``--pool-sz <n>``
6864b20e7fSGuduri Prathyusha
6964b20e7fSGuduri Prathyusha        Set the number of mbufs to be allocated from the mempool.
7064b20e7fSGuduri Prathyusha
7164b20e7fSGuduri Prathyusha* ``--plcores <CORELIST>``
7264b20e7fSGuduri Prathyusha
7364b20e7fSGuduri Prathyusha        Set the list of cores to be used as producers.
7464b20e7fSGuduri Prathyusha
7564b20e7fSGuduri Prathyusha* ``--wlcores <CORELIST>``
7664b20e7fSGuduri Prathyusha
7764b20e7fSGuduri Prathyusha        Set the list of cores to be used as workers.
7864b20e7fSGuduri Prathyusha
7964b20e7fSGuduri Prathyusha* ``--stlist <type_list>``
8064b20e7fSGuduri Prathyusha
8164b20e7fSGuduri Prathyusha        Set the scheduled type of each stage where ``type_list`` size
8264b20e7fSGuduri Prathyusha        determines the number of stages used in the test application.
8364b20e7fSGuduri Prathyusha        Each type_list member can be one of the following::
8464b20e7fSGuduri Prathyusha
8564b20e7fSGuduri Prathyusha            P or p : Parallel schedule type
8664b20e7fSGuduri Prathyusha            O or o : Ordered schedule type
8764b20e7fSGuduri Prathyusha            A or a : Atomic schedule type
8864b20e7fSGuduri Prathyusha
8964b20e7fSGuduri Prathyusha        Application expects the ``type_list`` in comma separated form (i.e. ``--stlist o,a,a,a``)
9064b20e7fSGuduri Prathyusha
9164b20e7fSGuduri Prathyusha* ``--nb_flows <n>``
9264b20e7fSGuduri Prathyusha
9364b20e7fSGuduri Prathyusha        Set the number of flows to produce.
9464b20e7fSGuduri Prathyusha
9564b20e7fSGuduri Prathyusha* ``--nb_pkts <n>``
9664b20e7fSGuduri Prathyusha
9764b20e7fSGuduri Prathyusha        Set the number of packets to produce. 0 implies no limit.
9864b20e7fSGuduri Prathyusha
9964b20e7fSGuduri Prathyusha* ``--worker_deq_depth <n>``
10064b20e7fSGuduri Prathyusha
10164b20e7fSGuduri Prathyusha        Set the dequeue depth of the worker.
10264b20e7fSGuduri Prathyusha
10364b20e7fSGuduri Prathyusha* ``--fwd_latency``
10464b20e7fSGuduri Prathyusha
10564b20e7fSGuduri Prathyusha        Perform forward latency measurement.
10664b20e7fSGuduri Prathyusha
10764b20e7fSGuduri Prathyusha* ``--queue_priority``
10864b20e7fSGuduri Prathyusha
10964b20e7fSGuduri Prathyusha        Enable queue priority.
11064b20e7fSGuduri Prathyusha
111b01974daSPavan Nikhilesh* ``--prod_type_ethdev``
112b01974daSPavan Nikhilesh
113b01974daSPavan Nikhilesh        Use ethernet device as producer.
114f6dda591SJerin Jacob
115d008f20bSPavan Nikhilesh* ``--prod_type_timerdev``
116d008f20bSPavan Nikhilesh
117d008f20bSPavan Nikhilesh        Use event timer adapter as producer.
118d008f20bSPavan Nikhilesh
11917b22d0bSPavan Nikhilesh* ``--prod_type_timerdev_burst``
12017b22d0bSPavan Nikhilesh
12117b22d0bSPavan Nikhilesh       Use burst mode event timer adapter as producer.
12217b22d0bSPavan Nikhilesh
123de2bc16eSShijith Thotton* ``--prod_type_cryptodev``
124de2bc16eSShijith Thotton
125de2bc16eSShijith Thotton        Use crypto device as producer.
126de2bc16eSShijith Thotton
127b25a66c4SAmit Prakash Shukla* ``--prod_type_dmadev``
128b25a66c4SAmit Prakash Shukla
129b25a66c4SAmit Prakash Shukla        Use DMA device as producer.
130b25a66c4SAmit Prakash Shukla
13198c62921SPavan Nikhilesh* ``--timer_tick_nsec``
13298c62921SPavan Nikhilesh
13398c62921SPavan Nikhilesh       Used to dictate number of nano seconds between bucket traversal of the
13498c62921SPavan Nikhilesh       event timer adapter. Refer `rte_event_timer_adapter_conf`.
13598c62921SPavan Nikhilesh
13698c62921SPavan Nikhilesh* ``--max_tmo_nsec``
13798c62921SPavan Nikhilesh
13898c62921SPavan Nikhilesh       Used to configure event timer adapter max arm timeout in nano seconds.
13998c62921SPavan Nikhilesh
14098c62921SPavan Nikhilesh* ``--expiry_nsec``
14198c62921SPavan Nikhilesh
14298c62921SPavan Nikhilesh       Dictate the number of nano seconds after which the event timer expires.
14398c62921SPavan Nikhilesh
14498c62921SPavan Nikhilesh* ``--nb_timers``
14598c62921SPavan Nikhilesh
14698c62921SPavan Nikhilesh       Number of event timers each producer core will generate.
14798c62921SPavan Nikhilesh
14898c62921SPavan Nikhilesh* ``--nb_timer_adptrs``
14998c62921SPavan Nikhilesh
15098c62921SPavan Nikhilesh       Number of event timer adapters to be used. Each adapter is used in
15198c62921SPavan Nikhilesh       round robin manner by the producer cores.
15298c62921SPavan Nikhilesh
153f0959283SPavan Nikhilesh* ``--deq_tmo_nsec``
154f0959283SPavan Nikhilesh
155f0959283SPavan Nikhilesh       Global dequeue timeout for all the event ports if the provided dequeue
156f0959283SPavan Nikhilesh       timeout is out of the supported range of event device it will be
157f0959283SPavan Nikhilesh       adjusted to the highest/lowest supported dequeue timeout supported.
158f0959283SPavan Nikhilesh
159de2bc16eSShijith Thotton* ``--crypto_adptr_mode``
160de2bc16eSShijith Thotton
161de2bc16eSShijith Thotton        Set crypto adapter mode. Use 0 for OP_NEW (default) and 1 for
162de2bc16eSShijith Thotton        OP_FORWARD mode.
163de2bc16eSShijith Thotton
164b25a66c4SAmit Prakash Shukla* ``--dma_adptr_mode``
165b25a66c4SAmit Prakash Shukla
166b25a66c4SAmit Prakash Shukla        Set dma adapter mode. DMA adapter supports only OP_FORWARD mode.
167b25a66c4SAmit Prakash Shukla
1688f5b5495SAkhil Goyal* ``--crypto_op_type``
1698f5b5495SAkhil Goyal
1708f5b5495SAkhil Goyal        Set crypto operation type. Use 0 for symmetric crypto ops (default)
1718f5b5495SAkhil Goyal        and 1 for asymmetric crypto ops.
1728f5b5495SAkhil Goyal
173750ab9d5SAakash Sasidharan* ``--crypto_cipher_alg``
174750ab9d5SAakash Sasidharan
175750ab9d5SAakash Sasidharan        Cipher algorithm to be used. Default algorithm is NULL.
176750ab9d5SAakash Sasidharan
177750ab9d5SAakash Sasidharan* ``--crypto_cipher_key``
178750ab9d5SAakash Sasidharan
179750ab9d5SAakash Sasidharan        Key for the cipher algorithm selected.
180750ab9d5SAakash Sasidharan
181750ab9d5SAakash Sasidharan* ``--crypto_cipher_iv_sz``
182750ab9d5SAakash Sasidharan
183750ab9d5SAakash Sasidharan        IV size for the cipher algorithm
184750ab9d5SAakash Sasidharan
185fc8b96fbSPavan Nikhilesh* ``--mbuf_sz``
186fc8b96fbSPavan Nikhilesh
187fc8b96fbSPavan Nikhilesh       Set packet mbuf size. Can be used to configure Jumbo Frames. Only
188fc8b96fbSPavan Nikhilesh       applicable for `pipeline_atq` and `pipeline_queue` tests.
189fc8b96fbSPavan Nikhilesh
190fc8b96fbSPavan Nikhilesh* ``--max_pkt_sz``
191fc8b96fbSPavan Nikhilesh
19220841a25SRashmi Shetty       Set max packet mbuf size. Can be used to configure Rx/Tx scatter gather.
193fc8b96fbSPavan Nikhilesh       Only applicable for `pipeline_atq` and `pipeline_queue` tests.
194fc8b96fbSPavan Nikhilesh
19520841a25SRashmi Shetty* ``--prod_enq_burst_sz``
19620841a25SRashmi Shetty
19720841a25SRashmi Shetty       Set producer enqueue burst size. Can be used to configure the number of
19820841a25SRashmi Shetty       events the producer(s) will enqueue as a burst to the event device.
1999c3096d4SVolodymyr Fialko       Only applicable for `perf_queue` and `perf_atq` test in combination with
2009c3096d4SVolodymyr Fialko       CPU (default) or crypto device (``--prod_type_cryptodev``) producers.
20120841a25SRashmi Shetty
2022eaa37b8SPavan Nikhilesh* ``--nb_eth_queues``
2032eaa37b8SPavan Nikhilesh
2042eaa37b8SPavan Nikhilesh       Configure multiple Rx queues per each ethernet port.
2052eaa37b8SPavan Nikhilesh       Only applicable for `pipeline_atq` and `pipeline_queue` tests.
2062eaa37b8SPavan Nikhilesh
2072eaa37b8SPavan Nikhilesh* ``--enable_vector``
2082eaa37b8SPavan Nikhilesh
20969e807dfSVolodymyr Fialko       Enable event vector for Rx/Tx/crypto adapters.
21069e807dfSVolodymyr Fialko       Only applicable for `pipeline_*` and `perf_*` tests.
2112eaa37b8SPavan Nikhilesh
2122eaa37b8SPavan Nikhilesh* ``--vector_size``
2132eaa37b8SPavan Nikhilesh
21469e807dfSVolodymyr Fialko       Vector size to configure for the Rx/crypto adapter.
21569e807dfSVolodymyr Fialko       Only applicable for `pipeline_*` and `perf_*` tests.
2162eaa37b8SPavan Nikhilesh
2172eaa37b8SPavan Nikhilesh* ``--vector_tmo_ns``
2182eaa37b8SPavan Nikhilesh
21969e807dfSVolodymyr Fialko       Vector timeout nanoseconds to be configured for the Rx/crypto adapter.
22069e807dfSVolodymyr Fialko       Only applicable for `pipeline_*` and `perf_*` tests.
2212eaa37b8SPavan Nikhilesh
222dbd4defeSPavan Nikhilesh* ``--per_port_pool``
223dbd4defeSPavan Nikhilesh
224dbd4defeSPavan Nikhilesh       Configure unique mempool per ethernet device, the size of each pool
225dbd4defeSPavan Nikhilesh       is equal to `pool_sz`.
226c9043624SPavan Nikhilesh       Only applicable for `pipeline_atq` and `pipeline_queue` tests.
227c9043624SPavan Nikhilesh
228c9043624SPavan Nikhilesh* ``--tx_first``
229c9043624SPavan Nikhilesh
230c9043624SPavan Nikhilesh       Transmit given number of packets across all the ethernet device that
231c9043624SPavan Nikhilesh       are enabled in the test.
232c9043624SPavan Nikhilesh       Only applicable for `pipeline_atq` and `pipeline_queue` tests.
233c9043624SPavan Nikhilesh
234c9043624SPavan Nikhilesh* ``--tx_pkt_sz``
235c9043624SPavan Nikhilesh
236c9043624SPavan Nikhilesh       Packet size to use for `--tx_first`.
237c9043624SPavan Nikhilesh       Only applicable for `pipeline_atq` and `pipeline_queue` tests.
238dbd4defeSPavan Nikhilesh
239*7a7a04d3SPavan Nikhilesh* ``--preschedule``
240*7a7a04d3SPavan Nikhilesh
241*7a7a04d3SPavan Nikhilesh       Enable pre-scheduling of events.
242*7a7a04d3SPavan Nikhilesh       0 - Disable pre-scheduling.
243*7a7a04d3SPavan Nikhilesh       1 - Enable pre-scheduling.
244*7a7a04d3SPavan Nikhilesh       2 - Enable pre-schedule with adaptive mode (Default).
245*7a7a04d3SPavan Nikhilesh
246f0959283SPavan Nikhilesh
247f6dda591SJerin JacobEventdev Tests
248f6dda591SJerin Jacob--------------
249f6dda591SJerin Jacob
250f6dda591SJerin JacobORDER_QUEUE Test
251f6dda591SJerin Jacob~~~~~~~~~~~~~~~~
252f6dda591SJerin Jacob
253f6dda591SJerin JacobThis is a functional test case that aims at testing the following:
254f6dda591SJerin Jacob
255f6dda591SJerin Jacob#. Verify the ingress order maintenance.
256f6dda591SJerin Jacob#. Verify the exclusive(atomic) access to given atomic flow per eventdev port.
257f6dda591SJerin Jacob
258f6dda591SJerin Jacob.. _table_eventdev_order_queue_test:
259f6dda591SJerin Jacob
260f6dda591SJerin Jacob.. table:: Order queue test eventdev configuration.
261f6dda591SJerin Jacob
262f6dda591SJerin Jacob   +---+--------------+----------------+------------------------+
263f6dda591SJerin Jacob   | # | Items        | Value          | Comments               |
264f6dda591SJerin Jacob   |   |              |                |                        |
265f6dda591SJerin Jacob   +===+==============+================+========================+
266f6dda591SJerin Jacob   | 1 | nb_queues    | 2              | q0(ordered), q1(atomic)|
267f6dda591SJerin Jacob   |   |              |                |                        |
268f6dda591SJerin Jacob   +---+--------------+----------------+------------------------+
269f6dda591SJerin Jacob   | 2 | nb_producers | 1              |                        |
270f6dda591SJerin Jacob   |   |              |                |                        |
271f6dda591SJerin Jacob   +---+--------------+----------------+------------------------+
272f6dda591SJerin Jacob   | 3 | nb_workers   | >= 1           |                        |
273f6dda591SJerin Jacob   |   |              |                |                        |
274f6dda591SJerin Jacob   +---+--------------+----------------+------------------------+
275f6dda591SJerin Jacob   | 4 | nb_ports     | nb_workers +   | Workers use port 0 to  |
276f6dda591SJerin Jacob   |   |              | 1              | port n-1. Producer uses|
277f6dda591SJerin Jacob   |   |              |                | port n                 |
278f6dda591SJerin Jacob   +---+--------------+----------------+------------------------+
279f6dda591SJerin Jacob
280f6dda591SJerin Jacob.. _figure_eventdev_order_queue_test:
281f6dda591SJerin Jacob
282f6dda591SJerin Jacob.. figure:: img/eventdev_order_queue_test.*
283f6dda591SJerin Jacob
284f6dda591SJerin Jacob   order queue test operation.
285f6dda591SJerin Jacob
286f6dda591SJerin JacobThe order queue test configures the eventdev with two queues and an event
287f6dda591SJerin Jacobproducer to inject the events to q0(ordered) queue. Both q0(ordered) and
288f6dda591SJerin Jacobq1(atomic) are linked to all the workers.
289f6dda591SJerin Jacob
290f6dda591SJerin JacobThe event producer maintains a sequence number per flow and injects the events
291f6dda591SJerin Jacobto the ordered queue. The worker receives the events from ordered queue and
292f6dda591SJerin Jacobforwards to atomic queue. Since the events from an ordered queue can be
293f6dda591SJerin Jacobprocessed in parallel on the different workers, the ingress order of events
294f6dda591SJerin Jacobmight have changed on the downstream atomic queue enqueue. On enqueue to the
295f8dbaebbSSean Morrisseyatomic queue, the eventdev PMD reorders the event to the original
296f6dda591SJerin Jacobingress order(i.e producer ingress order).
297f6dda591SJerin Jacob
298f6dda591SJerin JacobWhen the event is dequeued from the atomic queue by the worker, this test
299f6dda591SJerin Jacobverifies the expected sequence number of associated event per flow by comparing
300f6dda591SJerin Jacobthe free running expected sequence number per flow.
301f6dda591SJerin Jacob
302f6dda591SJerin JacobApplication options
303f6dda591SJerin Jacob^^^^^^^^^^^^^^^^^^^
304f6dda591SJerin Jacob
305f6dda591SJerin JacobSupported application command line options are following::
306f6dda591SJerin Jacob
307f6dda591SJerin Jacob   --verbose
308f6dda591SJerin Jacob   --dev
309f6dda591SJerin Jacob   --test
310f6dda591SJerin Jacob   --socket_id
311f6dda591SJerin Jacob   --pool_sz
312f6dda591SJerin Jacob   --plcores
313f6dda591SJerin Jacob   --wlcores
314f6dda591SJerin Jacob   --nb_flows
315f6dda591SJerin Jacob   --nb_pkts
316f6dda591SJerin Jacob   --worker_deq_depth
317f0959283SPavan Nikhilesh   --deq_tmo_nsec
318f6dda591SJerin Jacob
319f6dda591SJerin JacobExample
320f6dda591SJerin Jacob^^^^^^^
321f6dda591SJerin Jacob
322f6dda591SJerin JacobExample command to run order queue test:
323f6dda591SJerin Jacob
324f6dda591SJerin Jacob.. code-block:: console
325f6dda591SJerin Jacob
326b3342d76SPavan Nikhilesh   sudo <build_dir>/app/dpdk-test-eventdev -c 0x1f -s 0x10 --vdev=event_sw0 -- \
327f6dda591SJerin Jacob                --test=order_queue --plcores 1 --wlcores 2,3
328f6dda591SJerin Jacob
329f6dda591SJerin Jacob
330dd37027fSJerin JacobORDER_ATQ Test
331dd37027fSJerin Jacob~~~~~~~~~~~~~~
332dd37027fSJerin Jacob
333dd37027fSJerin JacobThis test verifies the same aspects of ``order_queue`` test, the difference is
334dd37027fSJerin Jacobthe number of queues used, this test operates on a single ``all types queue(atq)``
335dd37027fSJerin Jacobinstead of two different queues for ordered and atomic.
336dd37027fSJerin Jacob
337dd37027fSJerin Jacob.. _table_eventdev_order_atq_test:
338dd37027fSJerin Jacob
339dd37027fSJerin Jacob.. table:: Order all types queue test eventdev configuration.
340dd37027fSJerin Jacob
341dd37027fSJerin Jacob   +---+--------------+----------------+------------------------+
342dd37027fSJerin Jacob   | # | Items        | Value          | Comments               |
343dd37027fSJerin Jacob   |   |              |                |                        |
344dd37027fSJerin Jacob   +===+==============+================+========================+
345dd37027fSJerin Jacob   | 1 | nb_queues    | 1              | q0(all types queue)    |
346dd37027fSJerin Jacob   |   |              |                |                        |
347dd37027fSJerin Jacob   +---+--------------+----------------+------------------------+
348dd37027fSJerin Jacob   | 2 | nb_producers | 1              |                        |
349dd37027fSJerin Jacob   |   |              |                |                        |
350dd37027fSJerin Jacob   +---+--------------+----------------+------------------------+
351dd37027fSJerin Jacob   | 3 | nb_workers   | >= 1           |                        |
352dd37027fSJerin Jacob   |   |              |                |                        |
353dd37027fSJerin Jacob   +---+--------------+----------------+------------------------+
354dd37027fSJerin Jacob   | 4 | nb_ports     | nb_workers +   | Workers use port 0 to  |
355dd37027fSJerin Jacob   |   |              | 1              | port n-1.Producer uses |
356dd37027fSJerin Jacob   |   |              |                | port n.                |
357dd37027fSJerin Jacob   +---+--------------+----------------+------------------------+
358dd37027fSJerin Jacob
359dd37027fSJerin Jacob.. _figure_eventdev_order_atq_test:
360dd37027fSJerin Jacob
361dd37027fSJerin Jacob.. figure:: img/eventdev_order_atq_test.*
362dd37027fSJerin Jacob
363dd37027fSJerin Jacob   order all types queue test operation.
364dd37027fSJerin Jacob
365dd37027fSJerin JacobApplication options
366dd37027fSJerin Jacob^^^^^^^^^^^^^^^^^^^
367dd37027fSJerin Jacob
368dd37027fSJerin JacobSupported application command line options are following::
369dd37027fSJerin Jacob
370dd37027fSJerin Jacob   --verbose
371dd37027fSJerin Jacob   --dev
372dd37027fSJerin Jacob   --test
373dd37027fSJerin Jacob   --socket_id
374dd37027fSJerin Jacob   --pool_sz
375dd37027fSJerin Jacob   --plcores
376dd37027fSJerin Jacob   --wlcores
377dd37027fSJerin Jacob   --nb_flows
378dd37027fSJerin Jacob   --nb_pkts
379dd37027fSJerin Jacob   --worker_deq_depth
380f0959283SPavan Nikhilesh   --deq_tmo_nsec
381dd37027fSJerin Jacob
382dd37027fSJerin JacobExample
383dd37027fSJerin Jacob^^^^^^^
384dd37027fSJerin Jacob
385dd37027fSJerin JacobExample command to run order ``all types queue`` test:
386dd37027fSJerin Jacob
387dd37027fSJerin Jacob.. code-block:: console
388dd37027fSJerin Jacob
389b3342d76SPavan Nikhilesh   sudo <build_dir>/app/dpdk-test-eventdev -c 0x1f -- \
390dd37027fSJerin Jacob                        --test=order_atq --plcores 1 --wlcores 2,3
391dd37027fSJerin Jacob
392dd37027fSJerin Jacob
39343bc2fefSJerin JacobPERF_QUEUE Test
39443bc2fefSJerin Jacob~~~~~~~~~~~~~~~
39543bc2fefSJerin Jacob
39643bc2fefSJerin JacobThis is a performance test case that aims at testing the following:
39743bc2fefSJerin Jacob
39843bc2fefSJerin Jacob#. Measure the number of events can be processed in a second.
39943bc2fefSJerin Jacob#. Measure the latency to forward an event.
40043bc2fefSJerin Jacob
40143bc2fefSJerin Jacob.. _table_eventdev_perf_queue_test:
40243bc2fefSJerin Jacob
40343bc2fefSJerin Jacob.. table:: Perf queue test eventdev configuration.
40443bc2fefSJerin Jacob
40543bc2fefSJerin Jacob   +---+--------------+----------------+-----------------------------------------+
40643bc2fefSJerin Jacob   | # | Items        | Value          | Comments                                |
40743bc2fefSJerin Jacob   |   |              |                |                                         |
40843bc2fefSJerin Jacob   +===+==============+================+=========================================+
40943bc2fefSJerin Jacob   | 1 | nb_queues    | nb_producers * | Queues will be configured based on the  |
41043bc2fefSJerin Jacob   |   |              | nb_stages      | user requested sched type list(--stlist)|
41143bc2fefSJerin Jacob   +---+--------------+----------------+-----------------------------------------+
41243bc2fefSJerin Jacob   | 2 | nb_producers | >= 1           | Selected through --plcores command line |
41343bc2fefSJerin Jacob   |   |              |                | argument.                               |
41443bc2fefSJerin Jacob   +---+--------------+----------------+-----------------------------------------+
41543bc2fefSJerin Jacob   | 3 | nb_workers   | >= 1           | Selected through --wlcores command line |
41643bc2fefSJerin Jacob   |   |              |                | argument                                |
41743bc2fefSJerin Jacob   +---+--------------+----------------+-----------------------------------------+
41843bc2fefSJerin Jacob   | 4 | nb_ports     | nb_workers +   | Workers use port 0 to port n-1.         |
41943bc2fefSJerin Jacob   |   |              | nb_producers   | Producers use port n to port p          |
42043bc2fefSJerin Jacob   +---+--------------+----------------+-----------------------------------------+
42143bc2fefSJerin Jacob
42243bc2fefSJerin Jacob.. _figure_eventdev_perf_queue_test:
42343bc2fefSJerin Jacob
42443bc2fefSJerin Jacob.. figure:: img/eventdev_perf_queue_test.*
42543bc2fefSJerin Jacob
42643bc2fefSJerin Jacob   perf queue test operation.
42743bc2fefSJerin Jacob
42843bc2fefSJerin JacobThe perf queue test configures the eventdev with Q queues and P ports, where
42943bc2fefSJerin JacobQ and P is a function of the number of workers, the number of producers and
43043bc2fefSJerin Jacobnumber of stages as mentioned in :numref:`table_eventdev_perf_queue_test`.
43143bc2fefSJerin Jacob
43243bc2fefSJerin JacobThe user can choose the number of workers, the number of producers and number of
43343bc2fefSJerin Jacobstages through the ``--wlcores``, ``--plcores`` and the ``--stlist`` application
43443bc2fefSJerin Jacobcommand line arguments respectively.
43543bc2fefSJerin Jacob
43620841a25SRashmi ShettyThe producer(s) injects the events to eventdev based on the first stage sched type
43720841a25SRashmi Shettylist requested by the user through ``--stlist`` command line argument. It can
43820841a25SRashmi Shettyinject a burst of events using ``--prod_enq_burst_sz`` command line argument.
43943bc2fefSJerin Jacob
44043bc2fefSJerin JacobBased on the number of stages to process(selected through ``--stlist``),
44143bc2fefSJerin JacobThe application forwards the event to next upstream queue and terminates when it
44243bc2fefSJerin Jacobreaches the last stage in the pipeline. On event termination, application
44343bc2fefSJerin Jacobincrements the number events processed and print periodically in one second
44443bc2fefSJerin Jacobto get the number of events processed in one second.
44543bc2fefSJerin Jacob
44643bc2fefSJerin JacobWhen ``--fwd_latency`` command line option selected, the application inserts
44743bc2fefSJerin Jacobthe timestamp in the event on the first stage and then on termination, it
44843bc2fefSJerin Jacobupdates the number of cycles to forward a packet. The application uses this
44943bc2fefSJerin Jacobvalue to compute the average latency to a forward packet.
45043bc2fefSJerin Jacob
451b01974daSPavan NikhileshWhen ``--prod_type_ethdev`` command line option is selected, the application
452b01974daSPavan Nikhileshuses the probed ethernet devices as producers by configuring them as Rx
453b01974daSPavan Nikhileshadapters instead of using synthetic producers.
454b01974daSPavan Nikhilesh
45543bc2fefSJerin JacobApplication options
45643bc2fefSJerin Jacob^^^^^^^^^^^^^^^^^^^
45743bc2fefSJerin Jacob
45843bc2fefSJerin JacobSupported application command line options are following::
45943bc2fefSJerin Jacob
46043bc2fefSJerin Jacob        --verbose
46143bc2fefSJerin Jacob        --dev
46243bc2fefSJerin Jacob        --test
46343bc2fefSJerin Jacob        --socket_id
46443bc2fefSJerin Jacob        --pool_sz
46543bc2fefSJerin Jacob        --plcores
46643bc2fefSJerin Jacob        --wlcores
46743bc2fefSJerin Jacob        --stlist
46843bc2fefSJerin Jacob        --nb_flows
46943bc2fefSJerin Jacob        --nb_pkts
47043bc2fefSJerin Jacob        --worker_deq_depth
47143bc2fefSJerin Jacob        --fwd_latency
47243bc2fefSJerin Jacob        --queue_priority
473b01974daSPavan Nikhilesh        --prod_type_ethdev
47417b22d0bSPavan Nikhilesh        --prod_type_timerdev_burst
475d008f20bSPavan Nikhilesh        --prod_type_timerdev
476de2bc16eSShijith Thotton        --prod_type_cryptodev
477b25a66c4SAmit Prakash Shukla        --prod_type_dmadev
47820841a25SRashmi Shetty        --prod_enq_burst_sz
47998c62921SPavan Nikhilesh        --timer_tick_nsec
48098c62921SPavan Nikhilesh        --max_tmo_nsec
48198c62921SPavan Nikhilesh        --expiry_nsec
48298c62921SPavan Nikhilesh        --nb_timers
48398c62921SPavan Nikhilesh        --nb_timer_adptrs
484f0959283SPavan Nikhilesh        --deq_tmo_nsec
485de2bc16eSShijith Thotton        --crypto_adptr_mode
486b25a66c4SAmit Prakash Shukla        --dma_adptr_mode
48743bc2fefSJerin Jacob
48843bc2fefSJerin JacobExample
48943bc2fefSJerin Jacob^^^^^^^
49043bc2fefSJerin Jacob
49143bc2fefSJerin JacobExample command to run perf queue test:
49243bc2fefSJerin Jacob
49343bc2fefSJerin Jacob.. code-block:: console
49443bc2fefSJerin Jacob
495b3342d76SPavan Nikhilesh   sudo <build_dir>/app/dpdk-test-eventdev -c 0xf -s 0x2 --vdev=event_sw0 -- \
49612a33b67SPavan Nikhilesh        --test=perf_queue --plcores=2 --wlcore=3 --stlist=p --nb_pkts=0
49743bc2fefSJerin Jacob
49820841a25SRashmi ShettyExample command to run perf queue test with producer enqueuing a burst of events:
49920841a25SRashmi Shetty
50020841a25SRashmi Shetty.. code-block:: console
50120841a25SRashmi Shetty
502b3342d76SPavan Nikhilesh   sudo <build_dir>/app/dpdk-test-eventdev -c 0xf -s 0x2 --vdev=event_sw0 -- \
50320841a25SRashmi Shetty        --test=perf_queue --plcores=2 --wlcore=3 --stlist=p --nb_pkts=0 \
50420841a25SRashmi Shetty        --prod_enq_burst_sz=32
50520841a25SRashmi Shetty
506b01974daSPavan NikhileshExample command to run perf queue test with ethernet ports:
507b01974daSPavan Nikhilesh
508b01974daSPavan Nikhilesh.. code-block:: console
509b01974daSPavan Nikhilesh
510b3342d76SPavan Nikhilesh   sudo build/app/dpdk-test-eventdev -c 0xf -s 0x2 --vdev=event_sw0 -- \
511b01974daSPavan Nikhilesh        --test=perf_queue --plcores=2 --wlcore=3 --stlist=p --prod_type_ethdev
512f6dda591SJerin Jacob
513d008f20bSPavan NikhileshExample command to run perf queue test with event timer adapter:
514d008f20bSPavan Nikhilesh
515d008f20bSPavan Nikhilesh.. code-block:: console
516d008f20bSPavan Nikhilesh
517b3342d76SPavan Nikhilesh   sudo  <build_dir>/app/dpdk-test-eventdev -c 0xfff1 \
518b3342d76SPavan Nikhilesh                -- --wlcores 4 --plcores 12 --test perf_queue --stlist=a \
519d008f20bSPavan Nikhilesh                --prod_type_timerdev --fwd_latency
520d008f20bSPavan Nikhilesh
521b25a66c4SAmit Prakash ShuklaExample command to run perf queue test with event DMA adapter:
522b25a66c4SAmit Prakash Shukla
523b25a66c4SAmit Prakash Shukla.. code-block:: console
524b25a66c4SAmit Prakash Shukla
525b25a66c4SAmit Prakash Shukla   sudo <build_dir>/app/dpdk-test-eventdev -c 0x1f -s 0x2 \
526b25a66c4SAmit Prakash Shukla               -- --test=perf_queue --plcores= 2 --wlcore=3 --stlist=a \
527b25a66c4SAmit Prakash Shukla               --prod_type_dmadev --dma_adptr_mode=1
528b25a66c4SAmit Prakash Shukla
529b3d4e665SJerin JacobPERF_ATQ Test
530b3d4e665SJerin Jacob~~~~~~~~~~~~~~~
531b3d4e665SJerin Jacob
532b3d4e665SJerin JacobThis is a performance test case that aims at testing the following with
533b3d4e665SJerin Jacob``all types queue`` eventdev scheme.
534b3d4e665SJerin Jacob
535b3d4e665SJerin Jacob#. Measure the number of events can be processed in a second.
536b3d4e665SJerin Jacob#. Measure the latency to forward an event.
537b3d4e665SJerin Jacob
538b3d4e665SJerin Jacob.. _table_eventdev_perf_atq_test:
539b3d4e665SJerin Jacob
540b3d4e665SJerin Jacob.. table:: Perf all types queue test eventdev configuration.
541b3d4e665SJerin Jacob
542b3d4e665SJerin Jacob   +---+--------------+----------------+-----------------------------------------+
543b3d4e665SJerin Jacob   | # | Items        | Value          | Comments                                |
544b3d4e665SJerin Jacob   |   |              |                |                                         |
545b3d4e665SJerin Jacob   +===+==============+================+=========================================+
546b3d4e665SJerin Jacob   | 1 | nb_queues    | nb_producers   | Queues will be configured based on the  |
547b3d4e665SJerin Jacob   |   |              |                | user requested sched type list(--stlist)|
548b3d4e665SJerin Jacob   +---+--------------+----------------+-----------------------------------------+
549b3d4e665SJerin Jacob   | 2 | nb_producers | >= 1           | Selected through --plcores command line |
550b3d4e665SJerin Jacob   |   |              |                | argument.                               |
551b3d4e665SJerin Jacob   +---+--------------+----------------+-----------------------------------------+
552b3d4e665SJerin Jacob   | 3 | nb_workers   | >= 1           | Selected through --wlcores command line |
553b3d4e665SJerin Jacob   |   |              |                | argument                                |
554b3d4e665SJerin Jacob   +---+--------------+----------------+-----------------------------------------+
555b3d4e665SJerin Jacob   | 4 | nb_ports     | nb_workers +   | Workers use port 0 to port n-1.         |
556b3d4e665SJerin Jacob   |   |              | nb_producers   | Producers use port n to port p          |
557b3d4e665SJerin Jacob   +---+--------------+----------------+-----------------------------------------+
558b3d4e665SJerin Jacob
559b3d4e665SJerin Jacob.. _figure_eventdev_perf_atq_test:
560b3d4e665SJerin Jacob
561b3d4e665SJerin Jacob.. figure:: img/eventdev_perf_atq_test.*
562b3d4e665SJerin Jacob
563b3d4e665SJerin Jacob   perf all types queue test operation.
564b3d4e665SJerin Jacob
565b3d4e665SJerin Jacob
566b3d4e665SJerin JacobThe ``all types queues(atq)`` perf test configures the eventdev with Q queues
567b3d4e665SJerin Jacoband P ports, where Q and P is a function of the number of workers and number of
568b3d4e665SJerin Jacobproducers as mentioned in :numref:`table_eventdev_perf_atq_test`.
569b3d4e665SJerin Jacob
570b3d4e665SJerin Jacob
571b3d4e665SJerin JacobThe atq queue test functions as same as ``perf_queue`` test. The difference
572b3d4e665SJerin Jacobis, It uses, ``all type queue scheme`` instead of separate queues for each
573b3d4e665SJerin Jacobstage and thus reduces the number of queues required to realize the use case
574b3d4e665SJerin Jacoband enables flow pinning as the event does not move to the next queue.
575b3d4e665SJerin Jacob
576b3d4e665SJerin Jacob
577b3d4e665SJerin JacobApplication options
578b3d4e665SJerin Jacob^^^^^^^^^^^^^^^^^^^
579b3d4e665SJerin Jacob
580b3d4e665SJerin JacobSupported application command line options are following::
581b3d4e665SJerin Jacob
582b3d4e665SJerin Jacob        --verbose
583b3d4e665SJerin Jacob        --dev
584b3d4e665SJerin Jacob        --test
585b3d4e665SJerin Jacob        --socket_id
586b3d4e665SJerin Jacob        --pool_sz
587b3d4e665SJerin Jacob        --plcores
588b3d4e665SJerin Jacob        --wlcores
589b3d4e665SJerin Jacob        --stlist
590b3d4e665SJerin Jacob        --nb_flows
591b3d4e665SJerin Jacob        --nb_pkts
592b3d4e665SJerin Jacob        --worker_deq_depth
593b3d4e665SJerin Jacob        --fwd_latency
594b01974daSPavan Nikhilesh        --prod_type_ethdev
59517b22d0bSPavan Nikhilesh        --prod_type_timerdev_burst
596d008f20bSPavan Nikhilesh        --prod_type_timerdev
597de2bc16eSShijith Thotton        --prod_type_cryptodev
598b25a66c4SAmit Prakash Shukla        --prod_type_dmadev
59998c62921SPavan Nikhilesh        --timer_tick_nsec
60098c62921SPavan Nikhilesh        --max_tmo_nsec
60198c62921SPavan Nikhilesh        --expiry_nsec
60298c62921SPavan Nikhilesh        --nb_timers
60398c62921SPavan Nikhilesh        --nb_timer_adptrs
604f0959283SPavan Nikhilesh        --deq_tmo_nsec
605de2bc16eSShijith Thotton        --crypto_adptr_mode
606b25a66c4SAmit Prakash Shukla        --dma_adptr_mode
607b3d4e665SJerin Jacob
608b3d4e665SJerin JacobExample
609b3d4e665SJerin Jacob^^^^^^^
610b3d4e665SJerin Jacob
611b3d4e665SJerin JacobExample command to run perf ``all types queue`` test:
612b3d4e665SJerin Jacob
613b3d4e665SJerin Jacob.. code-block:: console
614b3d4e665SJerin Jacob
615b3342d76SPavan Nikhilesh   sudo <build_dir>/app/dpdk-test-eventdev -c 0xf -- \
616b3d4e665SJerin Jacob                --test=perf_atq --plcores=2 --wlcore=3 --stlist=p --nb_pkts=0
617ba9de463SPavan Nikhilesh
618d008f20bSPavan NikhileshExample command to run perf ``all types queue`` test with event timer adapter:
619d008f20bSPavan Nikhilesh
620d008f20bSPavan Nikhilesh.. code-block:: console
621d008f20bSPavan Nikhilesh
622b3342d76SPavan Nikhilesh   sudo  <build_dir>/app/dpdk-test-eventdev -c 0xfff1 \
623b3342d76SPavan Nikhilesh                -- --wlcores 4 --plcores 12 --test perf_atq --verbose 20 \
624d008f20bSPavan Nikhilesh                --stlist=a --prod_type_timerdev --fwd_latency
625d008f20bSPavan Nikhilesh
626b25a66c4SAmit Prakash ShuklaExample command to run perf atq test with event DMA adapter:
627b25a66c4SAmit Prakash Shukla
628b25a66c4SAmit Prakash Shukla.. code-block:: console
629b25a66c4SAmit Prakash Shukla
630b25a66c4SAmit Prakash Shukla   sudo <build_dir>/app/dpdk-test-eventdev -c 0x1f -s 0x2 \
631b25a66c4SAmit Prakash Shukla               -- --test=perf_atq --plcores= 2 --wlcore=3 --stlist=a \
632b25a66c4SAmit Prakash Shukla               --prod_type_dmadev --dma_adptr_mode=1
633ba9de463SPavan Nikhilesh
634ba9de463SPavan NikhileshPIPELINE_QUEUE Test
635ba9de463SPavan Nikhilesh~~~~~~~~~~~~~~~~~~~
636ba9de463SPavan Nikhilesh
637ba9de463SPavan NikhileshThis is a pipeline test case that aims at testing the following:
638ba9de463SPavan Nikhilesh
639ba9de463SPavan Nikhilesh#. Measure the end-to-end performance of an event dev with a ethernet dev.
640ba9de463SPavan Nikhilesh#. Maintain packet ordering from Rx to Tx.
641ba9de463SPavan Nikhilesh
642ba9de463SPavan Nikhilesh.. _table_eventdev_pipeline_queue_test:
643ba9de463SPavan Nikhilesh
644ba9de463SPavan Nikhilesh.. table:: Pipeline queue test eventdev configuration.
645ba9de463SPavan Nikhilesh
646ba9de463SPavan Nikhilesh   +---+--------------+----------------+-----------------------------------------+
647ba9de463SPavan Nikhilesh   | # | Items        | Value          | Comments                                |
648ba9de463SPavan Nikhilesh   |   |              |                |                                         |
649ba9de463SPavan Nikhilesh   +===+==============+================+=========================================+
650ba9de463SPavan Nikhilesh   | 1 | nb_queues    | (nb_producers  | Queues will be configured based on the  |
651ba9de463SPavan Nikhilesh   |   |              | * nb_stages) + | user requested sched type list(--stlist)|
652a4f56123SPavan Nikhilesh   |   |              | nb_producers   | At the last stage of the schedule list  |
653a4f56123SPavan Nikhilesh   |   |              |                | the event is enqueued onto per port     |
654a4f56123SPavan Nikhilesh   |   |              |                | unique queue which is then Transmitted. |
655ba9de463SPavan Nikhilesh   +---+--------------+----------------+-----------------------------------------+
656ba9de463SPavan Nikhilesh   | 2 | nb_producers | >= 1           | Producers will be configured based on   |
657ba9de463SPavan Nikhilesh   |   |              |                | the number of detected ethernet devices.|
658ba9de463SPavan Nikhilesh   |   |              |                | Each ethdev will be configured as an Rx |
659ba9de463SPavan Nikhilesh   |   |              |                | adapter.                                |
660ba9de463SPavan Nikhilesh   +---+--------------+----------------+-----------------------------------------+
661ba9de463SPavan Nikhilesh   | 3 | nb_workers   | >= 1           | Selected through --wlcores command line |
662ba9de463SPavan Nikhilesh   |   |              |                | argument                                |
663ba9de463SPavan Nikhilesh   +---+--------------+----------------+-----------------------------------------+
664ba9de463SPavan Nikhilesh   | 4 | nb_ports     | nb_workers +   | Workers use port 0 to port n.           |
665a4f56123SPavan Nikhilesh   |   |              | (nb_produces * | Producers use port n+1 to port n+m,     |
666a4f56123SPavan Nikhilesh   |   |              | 2)             | depending on the Rx adapter capability. |
667a4f56123SPavan Nikhilesh   |   |              |                | Consumers use port n+m+1 to port n+o    |
668a4f56123SPavan Nikhilesh   |   |              |                | depending on the Tx adapter capability. |
669ba9de463SPavan Nikhilesh   +---+--------------+----------------+-----------------------------------------+
670ba9de463SPavan Nikhilesh
671ba9de463SPavan Nikhilesh.. _figure_eventdev_pipeline_queue_test_generic:
672ba9de463SPavan Nikhilesh
673ba9de463SPavan Nikhilesh.. figure:: img/eventdev_pipeline_queue_test_generic.*
674ba9de463SPavan Nikhilesh
675a4f56123SPavan Nikhilesh.. _figure_eventdev_pipeline_queue_test_internal_port:
676ba9de463SPavan Nikhilesh
677a4f56123SPavan Nikhilesh.. figure:: img/eventdev_pipeline_queue_test_internal_port.*
678ba9de463SPavan Nikhilesh
679ba9de463SPavan Nikhilesh   pipeline queue test operation.
680ba9de463SPavan Nikhilesh
681ba9de463SPavan NikhileshThe pipeline queue test configures the eventdev with Q queues and P ports,
682ba9de463SPavan Nikhileshwhere Q and P is a function of the number of workers, the number of producers
683ba9de463SPavan Nikhileshand number of stages as mentioned in :numref:`table_eventdev_pipeline_queue_test`.
684ba9de463SPavan Nikhilesh
685ba9de463SPavan NikhileshThe user can choose the number of workers and number of stages through the
686ba9de463SPavan Nikhilesh``--wlcores`` and the ``--stlist`` application command line arguments
687ba9de463SPavan Nikhileshrespectively.
688ba9de463SPavan Nikhilesh
689ba9de463SPavan NikhileshThe number of producers depends on the number of ethernet devices detected and
690ba9de463SPavan Nikhilesheach ethernet device is configured as a event_eth_rx_adapter that acts as a
691ba9de463SPavan Nikhileshproducer.
692ba9de463SPavan Nikhilesh
693ba9de463SPavan NikhileshThe producer(s) injects the events to eventdev based the first stage sched type
694ba9de463SPavan Nikhileshlist requested by the user through ``--stlist`` the command line argument.
695ba9de463SPavan Nikhilesh
696ba9de463SPavan NikhileshBased on the number of stages to process(selected through ``--stlist``),
697ba9de463SPavan NikhileshThe application forwards the event to next upstream queue and when it reaches
698ba9de463SPavan Nikhileshthe last stage in the pipeline if the event type is ``atomic`` it is enqueued
699ba9de463SPavan Nikhileshonto ethdev Tx queue else to maintain ordering the event type is set to
700ba9de463SPavan Nikhilesh``atomic`` and enqueued onto the last stage queue.
701ba9de463SPavan Nikhilesh
702a4f56123SPavan NikhileshIf the ethdev and eventdev pair have ``RTE_EVENT_ETH_TX_ADAPTER_CAP_INTERNAL_PORT``
703a4f56123SPavan Nikhileshcapability then the worker cores enqueue the packets to the eventdev directly
704a4f56123SPavan Nikhileshusing ``rte_event_eth_tx_adapter_enqueue`` else the worker cores enqueue the
705a4f56123SPavan Nikhileshpacket onto the ``SINGLE_LINK_QUEUE`` that is managed by the Tx adapter.
706a4f56123SPavan NikhileshThe Tx adapter dequeues the packet and transmits it.
707ba9de463SPavan Nikhilesh
708ba9de463SPavan NikhileshOn packet Tx, application increments the number events processed and print
709ba9de463SPavan Nikhileshperiodically in one second to get the number of events processed in one
710ba9de463SPavan Nikhileshsecond.
711ba9de463SPavan Nikhilesh
712ba9de463SPavan Nikhilesh
713ba9de463SPavan NikhileshApplication options
714ba9de463SPavan Nikhilesh^^^^^^^^^^^^^^^^^^^
715ba9de463SPavan Nikhilesh
716ba9de463SPavan NikhileshSupported application command line options are following::
717ba9de463SPavan Nikhilesh
718ba9de463SPavan Nikhilesh        --verbose
719ba9de463SPavan Nikhilesh        --dev
720ba9de463SPavan Nikhilesh        --test
721ba9de463SPavan Nikhilesh        --socket_id
722ba9de463SPavan Nikhilesh        --pool_sz
723ba9de463SPavan Nikhilesh        --wlcores
724ba9de463SPavan Nikhilesh        --stlist
725ba9de463SPavan Nikhilesh        --worker_deq_depth
726ba9de463SPavan Nikhilesh        --prod_type_ethdev
727f0959283SPavan Nikhilesh        --deq_tmo_nsec
7282eaa37b8SPavan Nikhilesh        --nb_eth_queues
7292eaa37b8SPavan Nikhilesh        --enable_vector
7302eaa37b8SPavan Nikhilesh        --vector_size
7312eaa37b8SPavan Nikhilesh        --vector_tmo_ns
732dbd4defeSPavan Nikhilesh        --per_port_pool
733c9043624SPavan Nikhilesh        --tx_first
734c9043624SPavan Nikhilesh        --tx_pkt_sz
735ba9de463SPavan Nikhilesh
736ba9de463SPavan Nikhilesh
737ba9de463SPavan Nikhilesh.. Note::
738ba9de463SPavan Nikhilesh
739ba9de463SPavan Nikhilesh    * The ``--prod_type_ethdev`` is mandatory for running this test.
740ba9de463SPavan Nikhilesh
741ba9de463SPavan NikhileshExample
742ba9de463SPavan Nikhilesh^^^^^^^
743ba9de463SPavan Nikhilesh
744ba9de463SPavan NikhileshExample command to run pipeline queue test:
745ba9de463SPavan Nikhilesh
746ba9de463SPavan Nikhilesh.. code-block:: console
747ba9de463SPavan Nikhilesh
74895fcf7bfSCiara Power    sudo <build_dir>/app/dpdk-test-eventdev -c 0xf -s 0x8 --vdev=event_sw0 -- \
749ba9de463SPavan Nikhilesh        --test=pipeline_queue --wlcore=1 --prod_type_ethdev --stlist=a
750d1b46dafSPavan Nikhilesh
7512eaa37b8SPavan NikhileshExample command to run pipeline atq test with vector events:
7522eaa37b8SPavan Nikhilesh
7532eaa37b8SPavan Nikhilesh.. code-block:: console
7542eaa37b8SPavan Nikhilesh
7552eaa37b8SPavan Nikhilesh    sudo <build_dir>/app/dpdk-test-eventdev -c 0xf -s 0x8 --vdev=event_sw0 -- \
7562eaa37b8SPavan Nikhilesh        --test=pipeline_queue --wlcore=1 --prod_type_ethdev --stlist=a \
7572eaa37b8SPavan Nikhilesh        --enable_vector  --vector_size 512
758d1b46dafSPavan Nikhilesh
759d1b46dafSPavan NikhileshPIPELINE_ATQ Test
760d1b46dafSPavan Nikhilesh~~~~~~~~~~~~~~~~~~~
761d1b46dafSPavan Nikhilesh
762d1b46dafSPavan NikhileshThis is a pipeline test case that aims at testing the following with
763d1b46dafSPavan Nikhilesh``all types queue`` eventdev scheme.
764d1b46dafSPavan Nikhilesh
765d1b46dafSPavan Nikhilesh#. Measure the end-to-end performance of an event dev with a ethernet dev.
766d1b46dafSPavan Nikhilesh#. Maintain packet ordering from Rx to Tx.
767d1b46dafSPavan Nikhilesh
768d1b46dafSPavan Nikhilesh.. _table_eventdev_pipeline_atq_test:
769d1b46dafSPavan Nikhilesh
770d1b46dafSPavan Nikhilesh.. table:: Pipeline atq test eventdev configuration.
771d1b46dafSPavan Nikhilesh
772d1b46dafSPavan Nikhilesh   +---+--------------+----------------+-----------------------------------------+
773d1b46dafSPavan Nikhilesh   | # | Items        | Value          | Comments                                |
774d1b46dafSPavan Nikhilesh   |   |              |                |                                         |
775d1b46dafSPavan Nikhilesh   +===+==============+================+=========================================+
776d1b46dafSPavan Nikhilesh   | 1 | nb_queues    | nb_producers + | Queues will be configured based on the  |
777d1b46dafSPavan Nikhilesh   |   |              | x              | user requested sched type list(--stlist)|
778a4f56123SPavan Nikhilesh   |   |              |                | where x = nb_producers in generic       |
779a4f56123SPavan Nikhilesh   |   |              |                | pipeline and 0 if all the ethdev        |
780a4f56123SPavan Nikhilesh   |   |              |                | being used have Internal port capability|
781d1b46dafSPavan Nikhilesh   +---+--------------+----------------+-----------------------------------------+
782d1b46dafSPavan Nikhilesh   | 2 | nb_producers | >= 1           | Producers will be configured based on   |
783d1b46dafSPavan Nikhilesh   |   |              |                | the number of detected ethernet devices.|
784d1b46dafSPavan Nikhilesh   |   |              |                | Each ethdev will be configured as an Rx |
785d1b46dafSPavan Nikhilesh   |   |              |                | adapter.                                |
786d1b46dafSPavan Nikhilesh   +---+--------------+----------------+-----------------------------------------+
787d1b46dafSPavan Nikhilesh   | 3 | nb_workers   | >= 1           | Selected through --wlcores command line |
788d1b46dafSPavan Nikhilesh   |   |              |                | argument                                |
789d1b46dafSPavan Nikhilesh   +---+--------------+----------------+-----------------------------------------+
790d1b46dafSPavan Nikhilesh   | 4 | nb_ports     | nb_workers +   | Workers use port 0 to port n.           |
791a4f56123SPavan Nikhilesh   |   |              | nb_producers + | Producers use port n+1 to port n+m,     |
792a4f56123SPavan Nikhilesh   |   |              | x              | depending on the Rx adapter capability. |
793a4f56123SPavan Nikhilesh   |   |              |                | x = nb_producers in generic pipeline and|
794a4f56123SPavan Nikhilesh   |   |              |                | 0 if all the ethdev being used have     |
795a4f56123SPavan Nikhilesh   |   |              |                | Internal port capability.               |
796a4f56123SPavan Nikhilesh   |   |              |                | Consumers may use port n+m+1 to port n+o|
797a4f56123SPavan Nikhilesh   |   |              |                | depending on the Tx adapter capability. |
798d1b46dafSPavan Nikhilesh   +---+--------------+----------------+-----------------------------------------+
799d1b46dafSPavan Nikhilesh
800d1b46dafSPavan Nikhilesh.. _figure_eventdev_pipeline_atq_test_generic:
801d1b46dafSPavan Nikhilesh
802d1b46dafSPavan Nikhilesh.. figure:: img/eventdev_pipeline_atq_test_generic.*
803d1b46dafSPavan Nikhilesh
804a4f56123SPavan Nikhilesh.. _figure_eventdev_pipeline_atq_test_internal_port:
805d1b46dafSPavan Nikhilesh
806a4f56123SPavan Nikhilesh.. figure:: img/eventdev_pipeline_atq_test_internal_port.*
807d1b46dafSPavan Nikhilesh
808d1b46dafSPavan Nikhilesh   pipeline atq test operation.
809d1b46dafSPavan Nikhilesh
810d1b46dafSPavan NikhileshThe pipeline atq test configures the eventdev with Q queues and P ports,
811d1b46dafSPavan Nikhileshwhere Q and P is a function of the number of workers, the number of producers
812d1b46dafSPavan Nikhileshand number of stages as mentioned in :numref:`table_eventdev_pipeline_atq_test`.
813d1b46dafSPavan Nikhilesh
814d1b46dafSPavan NikhileshThe atq queue test functions as same as ``pipeline_queue`` test. The difference
815d1b46dafSPavan Nikhileshis, It uses, ``all type queue scheme`` instead of separate queues for each
816d1b46dafSPavan Nikhileshstage and thus reduces the number of queues required to realize the use case.
817d1b46dafSPavan Nikhilesh
818d1b46dafSPavan Nikhilesh
819d1b46dafSPavan NikhileshApplication options
820d1b46dafSPavan Nikhilesh^^^^^^^^^^^^^^^^^^^
821d1b46dafSPavan Nikhilesh
822d1b46dafSPavan NikhileshSupported application command line options are following::
823d1b46dafSPavan Nikhilesh
824d1b46dafSPavan Nikhilesh        --verbose
825d1b46dafSPavan Nikhilesh        --dev
826d1b46dafSPavan Nikhilesh        --test
827d1b46dafSPavan Nikhilesh        --socket_id
828d1b46dafSPavan Nikhilesh        --pool_sz
829d1b46dafSPavan Nikhilesh        --wlcores
830d1b46dafSPavan Nikhilesh        --stlist
831d1b46dafSPavan Nikhilesh        --worker_deq_depth
832d1b46dafSPavan Nikhilesh        --prod_type_ethdev
833f0959283SPavan Nikhilesh        --deq_tmo_nsec
8342eaa37b8SPavan Nikhilesh        --nb_eth_queues
8352eaa37b8SPavan Nikhilesh        --enable_vector
8362eaa37b8SPavan Nikhilesh        --vector_size
8372eaa37b8SPavan Nikhilesh        --vector_tmo_ns
838dbd4defeSPavan Nikhilesh        --per_port_pool
839c9043624SPavan Nikhilesh        --tx_first
840c9043624SPavan Nikhilesh        --tx_pkt_sz
841d1b46dafSPavan Nikhilesh
842d1b46dafSPavan Nikhilesh
843d1b46dafSPavan Nikhilesh.. Note::
844d1b46dafSPavan Nikhilesh
845d1b46dafSPavan Nikhilesh    * The ``--prod_type_ethdev`` is mandatory for running this test.
846d1b46dafSPavan Nikhilesh
847d1b46dafSPavan NikhileshExample
848d1b46dafSPavan Nikhilesh^^^^^^^
849d1b46dafSPavan Nikhilesh
8502eaa37b8SPavan NikhileshExample command to run pipeline atq test:
851d1b46dafSPavan Nikhilesh
852d1b46dafSPavan Nikhilesh.. code-block:: console
853d1b46dafSPavan Nikhilesh
854b3342d76SPavan Nikhilesh    sudo <build_dir>/app/dpdk-test-eventdev -c 0xf -- \
855d1b46dafSPavan Nikhilesh        --test=pipeline_atq --wlcore=1 --prod_type_ethdev --stlist=a
8562eaa37b8SPavan Nikhilesh
8572eaa37b8SPavan NikhileshExample command to run pipeline atq test with vector events:
8582eaa37b8SPavan Nikhilesh
8592eaa37b8SPavan Nikhilesh.. code-block:: console
8602eaa37b8SPavan Nikhilesh
861b3342d76SPavan Nikhilesh    sudo <build_dir>/app/dpdk-test-eventdev -c 0xf -- \
8622eaa37b8SPavan Nikhilesh        --test=pipeline_atq --wlcore=1 --prod_type_ethdev --stlist=a \
8632eaa37b8SPavan Nikhilesh        --enable_vector  --vector_size 512
864