2 * SPDX-License-Identifier: BSD-3-Clause
3 * Copyright 2017 Cavium, Inc.
6 #include "test_pipeline_common.h"
8 /* See http://doc.dpdk.org/guides/tools/testeventdev.html for test details */
10 static __rte_always_inline int
11 pipeline_queue_nb_event_queues(struct evt_options *opt)
13 uint16_t eth_count = rte_eth_dev_count_avail();
15 return (eth_count * opt->nb_stages) + eth_count;
18 typedef int (*pipeline_queue_worker_t)(void *arg);
20 static __rte_noinline int
21 pipeline_queue_worker_single_stage_tx(void *arg)
23 PIPELINE_WORKER_SINGLE_STAGE_INIT;
24 uint8_t enq = 0, deq = 0;
26 while (t->done == false) {
27 deq = rte_event_dequeue_burst(dev, port, &ev, 1, 0);
34 if (ev.sched_type == RTE_SCHED_TYPE_ATOMIC) {
35 enq = pipeline_event_tx(dev, port, &ev, t);
36 ev.op = RTE_EVENT_OP_RELEASE;
40 pipeline_fwd_event(&ev, RTE_SCHED_TYPE_ATOMIC);
41 enq = pipeline_event_enqueue(dev, port, &ev, t);
44 pipeline_worker_cleanup(dev, port, &ev, enq, deq);
49 static __rte_noinline int
50 pipeline_queue_worker_single_stage_fwd(void *arg)
52 PIPELINE_WORKER_SINGLE_STAGE_INIT;
53 const uint8_t *tx_queue = t->tx_evqueue_id;
54 uint8_t enq = 0, deq = 0;
56 while (t->done == false) {
57 deq = rte_event_dequeue_burst(dev, port, &ev, 1, 0);
64 ev.queue_id = tx_queue[ev.mbuf->port];
65 rte_event_eth_tx_adapter_txq_set(ev.mbuf, 0);
66 pipeline_fwd_event(&ev, RTE_SCHED_TYPE_ATOMIC);
67 enq = pipeline_event_enqueue(dev, port, &ev, t);
70 pipeline_worker_cleanup(dev, port, &ev, enq, deq);
75 static __rte_noinline int
76 pipeline_queue_worker_single_stage_burst_tx(void *arg)
78 PIPELINE_WORKER_SINGLE_STAGE_BURST_INIT;
79 uint16_t nb_rx = 0, nb_tx = 0;
81 while (t->done == false) {
82 nb_rx = rte_event_dequeue_burst(dev, port, ev, BURST_SIZE, 0);
89 for (i = 0; i < nb_rx; i++) {
90 rte_prefetch0(ev[i + 1].mbuf);
91 if (ev[i].sched_type == RTE_SCHED_TYPE_ATOMIC) {
92 pipeline_event_tx(dev, port, &ev[i], t);
93 ev[i].op = RTE_EVENT_OP_RELEASE;
97 pipeline_fwd_event(&ev[i],
98 RTE_SCHED_TYPE_ATOMIC);
101 nb_tx = pipeline_event_enqueue_burst(dev, port, ev, nb_rx, t);
103 pipeline_worker_cleanup(dev, port, ev, nb_tx, nb_rx);
108 static __rte_noinline int
109 pipeline_queue_worker_single_stage_burst_fwd(void *arg)
111 PIPELINE_WORKER_SINGLE_STAGE_BURST_INIT;
112 const uint8_t *tx_queue = t->tx_evqueue_id;
113 uint16_t nb_rx = 0, nb_tx = 0;
115 while (t->done == false) {
116 nb_rx = rte_event_dequeue_burst(dev, port, ev, BURST_SIZE, 0);
123 for (i = 0; i < nb_rx; i++) {
124 rte_prefetch0(ev[i + 1].mbuf);
125 ev[i].queue_id = tx_queue[ev[i].mbuf->port];
126 rte_event_eth_tx_adapter_txq_set(ev[i].mbuf, 0);
127 pipeline_fwd_event(&ev[i], RTE_SCHED_TYPE_ATOMIC);
130 nb_tx = pipeline_event_enqueue_burst(dev, port, ev, nb_rx, t);
131 w->processed_pkts += nb_rx;
133 pipeline_worker_cleanup(dev, port, ev, nb_tx, nb_rx);
138 static __rte_noinline int
139 pipeline_queue_worker_single_stage_tx_vector(void *arg)
141 PIPELINE_WORKER_SINGLE_STAGE_INIT;
142 uint8_t enq = 0, deq = 0;
146 deq = rte_event_dequeue_burst(dev, port, &ev, 1, 0);
153 if (ev.sched_type == RTE_SCHED_TYPE_ATOMIC) {
154 vector_sz = ev.vec->nb_elem;
155 enq = pipeline_event_tx_vector(dev, port, &ev, t);
156 ev.op = RTE_EVENT_OP_RELEASE;
157 w->processed_pkts += vector_sz;
160 pipeline_fwd_event_vector(&ev, RTE_SCHED_TYPE_ATOMIC);
161 enq = pipeline_event_enqueue(dev, port, &ev, t);
164 pipeline_worker_cleanup(dev, port, &ev, enq, deq);
169 static __rte_noinline int
170 pipeline_queue_worker_single_stage_fwd_vector(void *arg)
172 PIPELINE_WORKER_SINGLE_STAGE_INIT;
173 const uint8_t *tx_queue = t->tx_evqueue_id;
174 uint8_t enq = 0, deq = 0;
178 deq = rte_event_dequeue_burst(dev, port, &ev, 1, 0);
185 ev.queue_id = tx_queue[ev.vec->port];
187 vector_sz = ev.vec->nb_elem;
188 pipeline_fwd_event_vector(&ev, RTE_SCHED_TYPE_ATOMIC);
189 enq = pipeline_event_enqueue(dev, port, &ev, t);
190 w->processed_pkts += vector_sz;
192 pipeline_worker_cleanup(dev, port, &ev, enq, deq);
197 static __rte_noinline int
198 pipeline_queue_worker_single_stage_burst_tx_vector(void *arg)
200 PIPELINE_WORKER_SINGLE_STAGE_BURST_INIT;
201 uint16_t nb_rx = 0, nb_tx = 0;
205 nb_rx = rte_event_dequeue_burst(dev, port, ev, BURST_SIZE, 0);
212 for (i = 0; i < nb_rx; i++) {
213 if (ev[i].sched_type == RTE_SCHED_TYPE_ATOMIC) {
214 vector_sz = ev[i].vec->nb_elem;
215 pipeline_event_tx_vector(dev, port, &ev[i], t);
216 ev[i].op = RTE_EVENT_OP_RELEASE;
217 w->processed_pkts += vector_sz;
220 pipeline_fwd_event_vector(
221 &ev[i], RTE_SCHED_TYPE_ATOMIC);
225 nb_tx = pipeline_event_enqueue_burst(dev, port, ev, nb_rx, t);
227 pipeline_worker_cleanup(dev, port, ev, nb_tx, nb_rx);
232 static __rte_noinline int
233 pipeline_queue_worker_single_stage_burst_fwd_vector(void *arg)
235 PIPELINE_WORKER_SINGLE_STAGE_BURST_INIT;
236 const uint8_t *tx_queue = t->tx_evqueue_id;
237 uint16_t nb_rx = 0, nb_tx = 0;
241 nb_rx = rte_event_dequeue_burst(dev, port, ev, BURST_SIZE, 0);
249 for (i = 0; i < nb_rx; i++) {
250 ev[i].queue_id = tx_queue[ev[i].vec->port];
251 ev[i].vec->queue = 0;
252 vector_sz += ev[i].vec->nb_elem;
253 pipeline_fwd_event_vector(&ev[i],
254 RTE_SCHED_TYPE_ATOMIC);
257 nb_tx = pipeline_event_enqueue_burst(dev, port, ev, nb_rx, t);
258 w->processed_pkts += vector_sz;
260 pipeline_worker_cleanup(dev, port, ev, nb_tx, nb_rx);
265 static __rte_noinline int
266 pipeline_queue_worker_multi_stage_tx(void *arg)
268 PIPELINE_WORKER_MULTI_STAGE_INIT;
269 const uint8_t *tx_queue = t->tx_evqueue_id;
270 uint8_t enq = 0, deq = 0;
272 while (t->done == false) {
273 deq = rte_event_dequeue_burst(dev, port, &ev, 1, 0);
280 cq_id = ev.queue_id % nb_stages;
282 if (ev.queue_id == tx_queue[ev.mbuf->port]) {
283 enq = pipeline_event_tx(dev, port, &ev, t);
284 ev.op = RTE_EVENT_OP_RELEASE;
290 pipeline_fwd_event(&ev, cq_id != last_queue ?
291 sched_type_list[cq_id] :
292 RTE_SCHED_TYPE_ATOMIC);
293 enq = pipeline_event_enqueue(dev, port, &ev, t);
295 pipeline_worker_cleanup(dev, port, &ev, enq, deq);
300 static __rte_noinline int
301 pipeline_queue_worker_multi_stage_fwd(void *arg)
303 PIPELINE_WORKER_MULTI_STAGE_INIT;
304 const uint8_t *tx_queue = t->tx_evqueue_id;
305 uint8_t enq = 0, deq = 0;
307 while (t->done == false) {
308 deq = rte_event_dequeue_burst(dev, port, &ev, 1, 0);
315 cq_id = ev.queue_id % nb_stages;
317 if (cq_id == last_queue) {
318 ev.queue_id = tx_queue[ev.mbuf->port];
319 rte_event_eth_tx_adapter_txq_set(ev.mbuf, 0);
320 pipeline_fwd_event(&ev, RTE_SCHED_TYPE_ATOMIC);
321 enq = pipeline_event_enqueue(dev, port, &ev, t);
325 pipeline_fwd_event(&ev, sched_type_list[cq_id]);
326 enq = pipeline_event_enqueue(dev, port, &ev, t);
329 pipeline_worker_cleanup(dev, port, &ev, enq, deq);
334 static __rte_noinline int
335 pipeline_queue_worker_multi_stage_burst_tx(void *arg)
337 PIPELINE_WORKER_MULTI_STAGE_BURST_INIT;
338 const uint8_t *tx_queue = t->tx_evqueue_id;
339 uint16_t nb_rx = 0, nb_tx = 0;
341 while (t->done == false) {
342 nb_rx = rte_event_dequeue_burst(dev, port, ev, BURST_SIZE, 0);
349 for (i = 0; i < nb_rx; i++) {
350 rte_prefetch0(ev[i + 1].mbuf);
351 cq_id = ev[i].queue_id % nb_stages;
353 if (ev[i].queue_id == tx_queue[ev[i].mbuf->port]) {
354 pipeline_event_tx(dev, port, &ev[i], t);
355 ev[i].op = RTE_EVENT_OP_RELEASE;
361 pipeline_fwd_event(&ev[i], cq_id != last_queue ?
362 sched_type_list[cq_id] :
363 RTE_SCHED_TYPE_ATOMIC);
365 nb_tx = pipeline_event_enqueue_burst(dev, port, ev, nb_rx, t);
367 pipeline_worker_cleanup(dev, port, ev, nb_tx, nb_rx);
372 static __rte_noinline int
373 pipeline_queue_worker_multi_stage_burst_fwd(void *arg)
375 PIPELINE_WORKER_MULTI_STAGE_BURST_INIT;
376 const uint8_t *tx_queue = t->tx_evqueue_id;
377 uint16_t nb_rx = 0, nb_tx = 0;
379 while (t->done == false) {
380 uint16_t processed_pkts = 0;
381 nb_rx = rte_event_dequeue_burst(dev, port, ev, BURST_SIZE, 0);
388 for (i = 0; i < nb_rx; i++) {
389 rte_prefetch0(ev[i + 1].mbuf);
390 cq_id = ev[i].queue_id % nb_stages;
392 if (cq_id == last_queue) {
393 ev[i].queue_id = tx_queue[ev[i].mbuf->port];
394 rte_event_eth_tx_adapter_txq_set(ev[i].mbuf, 0);
395 pipeline_fwd_event(&ev[i],
396 RTE_SCHED_TYPE_ATOMIC);
400 pipeline_fwd_event(&ev[i],
401 sched_type_list[cq_id]);
405 nb_tx = pipeline_event_enqueue_burst(dev, port, ev, nb_rx, t);
406 w->processed_pkts += processed_pkts;
408 pipeline_worker_cleanup(dev, port, ev, nb_tx, nb_rx);
413 static __rte_noinline int
414 pipeline_queue_worker_multi_stage_tx_vector(void *arg)
416 PIPELINE_WORKER_MULTI_STAGE_INIT;
417 const uint8_t *tx_queue = t->tx_evqueue_id;
418 uint8_t enq = 0, deq = 0;
422 deq = rte_event_dequeue_burst(dev, port, &ev, 1, 0);
429 cq_id = ev.queue_id % nb_stages;
431 if (ev.queue_id == tx_queue[ev.vec->port]) {
432 vector_sz = ev.vec->nb_elem;
433 enq = pipeline_event_tx_vector(dev, port, &ev, t);
434 w->processed_pkts += vector_sz;
435 ev.op = RTE_EVENT_OP_RELEASE;
440 pipeline_fwd_event_vector(&ev, cq_id != last_queue
441 ? sched_type_list[cq_id]
442 : RTE_SCHED_TYPE_ATOMIC);
443 enq = pipeline_event_enqueue(dev, port, &ev, t);
445 pipeline_worker_cleanup(dev, port, &ev, enq, deq);
450 static __rte_noinline int
451 pipeline_queue_worker_multi_stage_fwd_vector(void *arg)
453 PIPELINE_WORKER_MULTI_STAGE_INIT;
454 const uint8_t *tx_queue = t->tx_evqueue_id;
455 uint8_t enq = 0, deq = 0;
459 deq = rte_event_dequeue_burst(dev, port, &ev, 1, 0);
466 cq_id = ev.queue_id % nb_stages;
468 if (cq_id == last_queue) {
469 vector_sz = ev.vec->nb_elem;
470 ev.queue_id = tx_queue[ev.vec->port];
471 pipeline_fwd_event_vector(&ev, RTE_SCHED_TYPE_ATOMIC);
472 w->processed_pkts += vector_sz;
475 pipeline_fwd_event_vector(&ev, sched_type_list[cq_id]);
478 enq = pipeline_event_enqueue(dev, port, &ev, t);
480 pipeline_worker_cleanup(dev, port, &ev, enq, deq);
485 static __rte_noinline int
486 pipeline_queue_worker_multi_stage_burst_tx_vector(void *arg)
488 PIPELINE_WORKER_MULTI_STAGE_BURST_INIT;
489 const uint8_t *tx_queue = t->tx_evqueue_id;
490 uint16_t nb_rx = 0, nb_tx = 0;
494 nb_rx = rte_event_dequeue_burst(dev, port, ev, BURST_SIZE, 0);
501 for (i = 0; i < nb_rx; i++) {
502 cq_id = ev[i].queue_id % nb_stages;
504 if (ev[i].queue_id == tx_queue[ev[i].vec->port]) {
505 vector_sz = ev[i].vec->nb_elem;
506 pipeline_event_tx_vector(dev, port, &ev[i], t);
507 ev[i].op = RTE_EVENT_OP_RELEASE;
508 w->processed_pkts += vector_sz;
513 pipeline_fwd_event_vector(
514 &ev[i], cq_id != last_queue
515 ? sched_type_list[cq_id]
516 : RTE_SCHED_TYPE_ATOMIC);
519 nb_tx = pipeline_event_enqueue_burst(dev, port, ev, nb_rx, t);
521 pipeline_worker_cleanup(dev, port, ev, nb_tx, nb_rx);
526 static __rte_noinline int
527 pipeline_queue_worker_multi_stage_burst_fwd_vector(void *arg)
529 PIPELINE_WORKER_MULTI_STAGE_BURST_INIT;
530 const uint8_t *tx_queue = t->tx_evqueue_id;
531 uint16_t nb_rx = 0, nb_tx = 0;
535 nb_rx = rte_event_dequeue_burst(dev, port, ev, BURST_SIZE, 0);
542 for (i = 0; i < nb_rx; i++) {
543 cq_id = ev[i].queue_id % nb_stages;
545 if (cq_id == last_queue) {
546 ev[i].queue_id = tx_queue[ev[i].vec->port];
547 vector_sz = ev[i].vec->nb_elem;
548 pipeline_fwd_event_vector(
549 &ev[i], RTE_SCHED_TYPE_ATOMIC);
550 w->processed_pkts += vector_sz;
553 pipeline_fwd_event_vector(
554 &ev[i], sched_type_list[cq_id]);
558 nb_tx = pipeline_event_enqueue_burst(dev, port, ev, nb_rx, t);
560 pipeline_worker_cleanup(dev, port, ev, nb_tx, nb_rx);
566 worker_wrapper(void *arg)
568 struct worker_data *w = arg;
569 struct evt_options *opt = w->t->opt;
570 const bool burst = evt_has_burst_mode(w->dev_id);
571 const bool internal_port = w->t->internal_port;
572 const uint8_t nb_stages = opt->nb_stages;
573 /*vector/burst/internal_port*/
574 const pipeline_queue_worker_t
575 pipeline_queue_worker_single_stage[2][2][2] = {
576 [0][0][0] = pipeline_queue_worker_single_stage_fwd,
577 [0][0][1] = pipeline_queue_worker_single_stage_tx,
578 [0][1][0] = pipeline_queue_worker_single_stage_burst_fwd,
579 [0][1][1] = pipeline_queue_worker_single_stage_burst_tx,
580 [1][0][0] = pipeline_queue_worker_single_stage_fwd_vector,
581 [1][0][1] = pipeline_queue_worker_single_stage_tx_vector,
582 [1][1][0] = pipeline_queue_worker_single_stage_burst_fwd_vector,
583 [1][1][1] = pipeline_queue_worker_single_stage_burst_tx_vector,
585 const pipeline_queue_worker_t
586 pipeline_queue_worker_multi_stage[2][2][2] = {
587 [0][0][0] = pipeline_queue_worker_multi_stage_fwd,
588 [0][0][1] = pipeline_queue_worker_multi_stage_tx,
589 [0][1][0] = pipeline_queue_worker_multi_stage_burst_fwd,
590 [0][1][1] = pipeline_queue_worker_multi_stage_burst_tx,
591 [1][0][0] = pipeline_queue_worker_multi_stage_fwd_vector,
592 [1][0][1] = pipeline_queue_worker_multi_stage_tx_vector,
593 [1][1][0] = pipeline_queue_worker_multi_stage_burst_fwd_vector,
594 [1][1][1] = pipeline_queue_worker_multi_stage_burst_tx_vector,
598 return (pipeline_queue_worker_single_stage[opt->ena_vector]
600 [internal_port])(arg);
602 return (pipeline_queue_worker_multi_stage[opt->ena_vector]
604 [internal_port])(arg);
606 rte_panic("invalid worker\n");
610 pipeline_queue_launch_lcores(struct evt_test *test, struct evt_options *opt)
612 return pipeline_launch_lcores(test, opt, worker_wrapper);
616 pipeline_queue_eventdev_setup(struct evt_test *test, struct evt_options *opt)
621 int nb_stages = opt->nb_stages;
623 uint8_t tx_evport_id = 0;
624 uint8_t tx_evqueue_id[RTE_MAX_ETHPORTS];
625 uint8_t queue_arr[RTE_EVENT_MAX_QUEUES_PER_DEV];
626 uint8_t nb_worker_queues = 0;
628 struct rte_event_dev_info info;
629 struct test_pipeline *t = evt_test_priv(test);
631 nb_ports = evt_nr_active_lcores(opt->wlcores);
632 nb_queues = rte_eth_dev_count_avail() * (nb_stages);
634 /* One queue for Tx adapter per port */
635 nb_queues += rte_eth_dev_count_avail();
637 memset(tx_evqueue_id, 0, sizeof(uint8_t) * RTE_MAX_ETHPORTS);
638 memset(queue_arr, 0, sizeof(uint8_t) * RTE_EVENT_MAX_QUEUES_PER_DEV);
640 rte_event_dev_info_get(opt->dev_id, &info);
641 ret = evt_configure_eventdev(opt, nb_queues, nb_ports);
643 evt_err("failed to configure eventdev %d", opt->dev_id);
647 struct rte_event_queue_conf q_conf = {
648 .priority = RTE_EVENT_DEV_PRIORITY_NORMAL,
649 .nb_atomic_flows = opt->nb_flows,
650 .nb_atomic_order_sequences = opt->nb_flows,
652 /* queue configurations */
653 for (queue = 0; queue < nb_queues; queue++) {
656 q_conf.event_queue_cfg = 0;
657 slot = queue % (nb_stages + 1);
658 if (slot == nb_stages) {
659 q_conf.schedule_type = RTE_SCHED_TYPE_ATOMIC;
660 if (!t->internal_port) {
661 q_conf.event_queue_cfg =
662 RTE_EVENT_QUEUE_CFG_SINGLE_LINK;
664 tx_evqueue_id[prod++] = queue;
666 q_conf.schedule_type = opt->sched_type_list[slot];
667 queue_arr[nb_worker_queues] = queue;
671 ret = rte_event_queue_setup(opt->dev_id, queue, &q_conf);
673 evt_err("failed to setup queue=%d", queue);
678 if (opt->wkr_deq_dep > info.max_event_port_dequeue_depth)
679 opt->wkr_deq_dep = info.max_event_port_dequeue_depth;
681 /* port configuration */
682 const struct rte_event_port_conf p_conf = {
683 .dequeue_depth = opt->wkr_deq_dep,
684 .enqueue_depth = info.max_event_port_dequeue_depth,
685 .new_event_threshold = info.max_num_events,
688 if (!t->internal_port) {
689 ret = pipeline_event_port_setup(test, opt, queue_arr,
690 nb_worker_queues, p_conf);
694 ret = pipeline_event_port_setup(test, opt, NULL, nb_queues,
700 * The pipelines are setup in the following manner:
702 * eth_dev_count = 2, nb_stages = 2.
707 * event queue pipelines:
708 * eth0 -> q0 -> q1 -> (q2->tx)
709 * eth1 -> q3 -> q4 -> (q5->tx)
711 * q2, q5 configured as ATOMIC | SINGLE_LINK
714 ret = pipeline_event_rx_adapter_setup(opt, nb_stages + 1, p_conf);
718 ret = pipeline_event_tx_adapter_setup(opt, p_conf);
722 if (!evt_has_distributed_sched(opt->dev_id)) {
724 rte_event_dev_service_id_get(opt->dev_id, &service_id);
725 ret = evt_service_setup(service_id);
727 evt_err("No service lcore found to run event dev.");
732 /* Connect the tx_evqueue_id to the Tx adapter port */
733 if (!t->internal_port) {
734 RTE_ETH_FOREACH_DEV(prod) {
735 ret = rte_event_eth_tx_adapter_event_port_get(prod,
738 evt_err("Unable to get Tx adptr[%d] evprt[%d]",
743 if (rte_event_port_link(opt->dev_id, tx_evport_id,
744 &tx_evqueue_id[prod],
746 evt_err("Unable to link Tx adptr[%d] evprt[%d]",
753 ret = rte_event_dev_start(opt->dev_id);
755 evt_err("failed to start eventdev %d", opt->dev_id);
760 RTE_ETH_FOREACH_DEV(prod) {
761 ret = rte_eth_dev_start(prod);
763 evt_err("Ethernet dev [%d] failed to start."
764 " Using synthetic producer", prod);
770 RTE_ETH_FOREACH_DEV(prod) {
771 ret = rte_event_eth_rx_adapter_start(prod);
773 evt_err("Rx adapter[%d] start failed", prod);
777 ret = rte_event_eth_tx_adapter_start(prod);
779 evt_err("Tx adapter[%d] start failed", prod);
784 memcpy(t->tx_evqueue_id, tx_evqueue_id, sizeof(uint8_t) *
791 pipeline_queue_opt_dump(struct evt_options *opt)
793 pipeline_opt_dump(opt, pipeline_queue_nb_event_queues(opt));
797 pipeline_queue_opt_check(struct evt_options *opt)
799 return pipeline_opt_check(opt, pipeline_queue_nb_event_queues(opt));
803 pipeline_queue_capability_check(struct evt_options *opt)
805 struct rte_event_dev_info dev_info;
807 rte_event_dev_info_get(opt->dev_id, &dev_info);
808 if (dev_info.max_event_queues < pipeline_queue_nb_event_queues(opt) ||
809 dev_info.max_event_ports <
810 evt_nr_active_lcores(opt->wlcores)) {
811 evt_err("not enough eventdev queues=%d/%d or ports=%d/%d",
812 pipeline_queue_nb_event_queues(opt),
813 dev_info.max_event_queues,
814 evt_nr_active_lcores(opt->wlcores),
815 dev_info.max_event_ports);
821 static const struct evt_test_ops pipeline_queue = {
822 .cap_check = pipeline_queue_capability_check,
823 .opt_check = pipeline_queue_opt_check,
824 .opt_dump = pipeline_queue_opt_dump,
825 .test_setup = pipeline_test_setup,
826 .mempool_setup = pipeline_mempool_setup,
827 .ethdev_setup = pipeline_ethdev_setup,
828 .eventdev_setup = pipeline_queue_eventdev_setup,
829 .launch_lcores = pipeline_queue_launch_lcores,
830 .ethdev_rx_stop = pipeline_ethdev_rx_stop,
831 .eventdev_destroy = pipeline_eventdev_destroy,
832 .mempool_destroy = pipeline_mempool_destroy,
833 .ethdev_destroy = pipeline_ethdev_destroy,
834 .test_result = pipeline_test_result,
835 .test_destroy = pipeline_test_destroy,
838 EVT_TEST_REGISTER(pipeline_queue);