1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2018 Intel Corporation
7 #include <rte_bus_vdev.h>
8 #include <rte_common.h>
9 #include <rte_ethdev.h>
10 #include <rte_eth_ring.h>
11 #include <rte_eventdev.h>
12 #include <rte_event_eth_tx_adapter.h>
14 #include <rte_mempool.h>
15 #include <rte_service.h>
19 #define MAX_NUM_QUEUE RTE_PMD_RING_MAX_RX_RINGS
20 #define TEST_INST_ID 0
24 #define ETH_NAME_LEN 32
25 #define NUM_ETH_PAIR 1
26 #define NUM_ETH_DEV (2 * NUM_ETH_PAIR)
28 #define PAIR_PORT_INDEX(p) ((p) + NUM_ETH_PAIR)
29 #define PORT(p) default_params.port[(p)]
30 #define TEST_ETHDEV_ID PORT(0)
31 #define TEST_ETHDEV_PAIR_ID PORT(PAIR_PORT_INDEX(0))
33 #define EDEV_RETRY 0xffff
35 struct event_eth_tx_adapter_test_params {
36 struct rte_mempool *mp;
37 uint16_t rx_rings, tx_rings;
38 struct rte_ring *r[NUM_ETH_DEV][MAX_NUM_QUEUE];
39 int port[NUM_ETH_DEV];
42 static int event_dev_delete;
43 static struct event_eth_tx_adapter_test_params default_params;
44 static uint64_t eid = ~0ULL;
48 port_init_common(uint8_t port, const struct rte_eth_conf *port_conf,
49 struct rte_mempool *mp)
51 const uint16_t rx_ring_size = RING_SIZE, tx_ring_size = RING_SIZE;
55 if (!rte_eth_dev_is_valid_port(port))
58 default_params.rx_rings = MAX_NUM_QUEUE;
59 default_params.tx_rings = MAX_NUM_QUEUE;
61 /* Configure the Ethernet device. */
62 retval = rte_eth_dev_configure(port, default_params.rx_rings,
63 default_params.tx_rings, port_conf);
67 for (q = 0; q < default_params.rx_rings; q++) {
68 retval = rte_eth_rx_queue_setup(port, q, rx_ring_size,
69 rte_eth_dev_socket_id(port), NULL, mp);
74 for (q = 0; q < default_params.tx_rings; q++) {
75 retval = rte_eth_tx_queue_setup(port, q, tx_ring_size,
76 rte_eth_dev_socket_id(port), NULL);
81 /* Start the Ethernet port. */
82 retval = rte_eth_dev_start(port);
86 /* Display the port MAC address. */
87 struct rte_ether_addr addr;
88 rte_eth_macaddr_get(port, &addr);
89 printf("Port %u MAC: %02" PRIx8 " %02" PRIx8 " %02" PRIx8
90 " %02" PRIx8 " %02" PRIx8 " %02" PRIx8 "\n",
92 addr.addr_bytes[0], addr.addr_bytes[1],
93 addr.addr_bytes[2], addr.addr_bytes[3],
94 addr.addr_bytes[4], addr.addr_bytes[5]);
96 /* Enable RX in promiscuous mode for the Ethernet device. */
97 rte_eth_promiscuous_enable(port);
103 port_init(uint8_t port, struct rte_mempool *mp)
105 struct rte_eth_conf conf = { 0 };
106 return port_init_common(port, &conf, mp);
109 #define RING_NAME_LEN 20
110 #define DEV_NAME_LEN 20
115 char ring_name[ETH_NAME_LEN];
117 struct rte_ring * const *c1;
118 struct rte_ring * const *c2;
121 if (!default_params.mp)
122 default_params.mp = rte_pktmbuf_pool_create("mbuf_pool",
124 0, RTE_MBUF_DEFAULT_BUF_SIZE, rte_socket_id());
126 if (!default_params.mp)
129 for (i = 0; i < NUM_ETH_DEV; i++) {
130 for (j = 0; j < MAX_NUM_QUEUE; j++) {
131 snprintf(ring_name, sizeof(ring_name), "R%u%u", i, j);
132 default_params.r[i][j] = rte_ring_create(ring_name,
135 RING_F_SP_ENQ | RING_F_SC_DEQ);
136 TEST_ASSERT((default_params.r[i][j] != NULL),
137 "Failed to allocate ring");
142 * To create two pseudo-Ethernet ports where the traffic is
143 * switched between them, that is, traffic sent to port 1 is
144 * read back from port 2 and vice-versa
146 for (i = 0; i < NUM_ETH_PAIR; i++) {
147 char dev_name[DEV_NAME_LEN];
150 c1 = default_params.r[i];
151 c2 = default_params.r[PAIR_PORT_INDEX(i)];
153 snprintf(dev_name, DEV_NAME_LEN, "%u-%u", i, i + NUM_ETH_PAIR);
154 p = rte_eth_from_rings(dev_name, c1, MAX_NUM_QUEUE,
155 c2, MAX_NUM_QUEUE, SOCKET0);
156 TEST_ASSERT(p >= 0, "Port creation failed %s", dev_name);
157 err = port_init(p, default_params.mp);
158 TEST_ASSERT(err == 0, "Port init failed %s", dev_name);
159 default_params.port[i] = p;
161 snprintf(dev_name, DEV_NAME_LEN, "%u-%u", i + NUM_ETH_PAIR, i);
162 p = rte_eth_from_rings(dev_name, c2, MAX_NUM_QUEUE,
163 c1, MAX_NUM_QUEUE, SOCKET0);
164 TEST_ASSERT(p > 0, "Port creation failed %s", dev_name);
165 err = port_init(p, default_params.mp);
166 TEST_ASSERT(err == 0, "Port init failed %s", dev_name);
167 default_params.port[PAIR_PORT_INDEX(i)] = p;
177 char name[ETH_NAME_LEN];
179 for (i = 0; i < RTE_DIM(default_params.port); i++) {
180 rte_eth_dev_stop(default_params.port[i]);
181 rte_eth_dev_get_name_by_port(default_params.port[i], name);
182 rte_vdev_uninit(name);
183 for (j = 0; j < RTE_DIM(default_params.r[i]); j++)
184 rte_ring_free(default_params.r[i][j]);
189 testsuite_setup(void)
191 const char *vdev_name = "event_sw0";
193 int err = init_ports();
194 TEST_ASSERT(err == 0, "Port initialization failed err %d\n", err);
196 if (rte_event_dev_count() == 0) {
197 printf("Failed to find a valid event device,"
198 " testing with event_sw0 device\n");
199 err = rte_vdev_init(vdev_name, NULL);
200 TEST_ASSERT(err == 0, "vdev %s creation failed %d\n",
202 event_dev_delete = 1;
207 #define DEVICE_ID_SIZE 64
210 testsuite_teardown(void)
213 rte_mempool_free(default_params.mp);
214 default_params.mp = NULL;
215 if (event_dev_delete)
216 rte_vdev_uninit("event_sw0");
220 tx_adapter_create(void)
223 struct rte_event_dev_info dev_info;
224 struct rte_event_port_conf tx_p_conf;
228 struct rte_event_dev_config config = {
229 .nb_event_queues = 1,
233 struct rte_event_queue_conf wkr_q_conf = {
234 .schedule_type = RTE_SCHED_TYPE_ORDERED,
235 .priority = RTE_EVENT_DEV_PRIORITY_NORMAL,
236 .nb_atomic_flows = 1024,
237 .nb_atomic_order_sequences = 1024,
240 memset(&tx_p_conf, 0, sizeof(tx_p_conf));
241 err = rte_event_dev_info_get(TEST_DEV_ID, &dev_info);
242 config.nb_event_queue_flows = dev_info.max_event_queue_flows;
243 config.nb_event_port_dequeue_depth =
244 dev_info.max_event_port_dequeue_depth;
245 config.nb_event_port_enqueue_depth =
246 dev_info.max_event_port_enqueue_depth;
247 config.nb_events_limit =
248 dev_info.max_num_events;
250 err = rte_event_dev_configure(TEST_DEV_ID, &config);
251 TEST_ASSERT(err == 0, "Event device initialization failed err %d\n",
255 err = rte_event_queue_setup(TEST_DEV_ID, 0, &wkr_q_conf);
256 TEST_ASSERT(err == 0, "Event queue setup failed %d\n", err);
258 err = rte_event_port_setup(TEST_DEV_ID, 0, NULL);
259 TEST_ASSERT(err == 0, "Event port setup failed %d\n", err);
261 priority = RTE_EVENT_DEV_PRIORITY_LOWEST;
262 err = rte_event_port_link(TEST_DEV_ID, 0, &queue_id, &priority, 1);
263 TEST_ASSERT(err == 1, "Error linking port %s\n",
264 rte_strerror(rte_errno));
265 err = rte_event_dev_info_get(TEST_DEV_ID, &dev_info);
266 TEST_ASSERT(err == 0, "Expected 0 got %d", err);
268 tx_p_conf.new_event_threshold = dev_info.max_num_events;
269 tx_p_conf.dequeue_depth = dev_info.max_event_port_dequeue_depth;
270 tx_p_conf.enqueue_depth = dev_info.max_event_port_enqueue_depth;
271 err = rte_event_eth_tx_adapter_create(TEST_INST_ID, TEST_DEV_ID,
273 TEST_ASSERT(err == 0, "Expected 0 got %d", err);
279 tx_adapter_free(void)
281 rte_event_eth_tx_adapter_free(TEST_INST_ID);
285 tx_adapter_create_free(void)
288 struct rte_event_dev_info dev_info;
289 struct rte_event_port_conf tx_p_conf;
291 err = rte_event_dev_info_get(TEST_DEV_ID, &dev_info);
292 TEST_ASSERT(err == 0, "Expected 0 got %d", err);
294 tx_p_conf.new_event_threshold = dev_info.max_num_events;
295 tx_p_conf.dequeue_depth = dev_info.max_event_port_dequeue_depth;
296 tx_p_conf.enqueue_depth = dev_info.max_event_port_enqueue_depth;
298 err = rte_event_eth_tx_adapter_create(TEST_INST_ID, TEST_DEV_ID,
300 TEST_ASSERT(err == -EINVAL, "Expected -EINVAL got %d", err);
302 err = rte_event_eth_tx_adapter_create(TEST_INST_ID, TEST_DEV_ID,
304 TEST_ASSERT(err == 0, "Expected 0 got %d", err);
306 err = rte_event_eth_tx_adapter_create(TEST_INST_ID,
307 TEST_DEV_ID, &tx_p_conf);
308 TEST_ASSERT(err == -EEXIST, "Expected -EEXIST %d got %d", -EEXIST, err);
310 err = rte_event_eth_tx_adapter_free(TEST_INST_ID);
311 TEST_ASSERT(err == 0, "Expected 0 got %d", err);
313 err = rte_event_eth_tx_adapter_free(TEST_INST_ID);
314 TEST_ASSERT(err == -EINVAL, "Expected -EINVAL %d got %d", -EINVAL, err);
316 err = rte_event_eth_tx_adapter_free(1);
317 TEST_ASSERT(err == -EINVAL, "Expected -EINVAL %d got %d", -EINVAL, err);
323 tx_adapter_queue_add_del(void)
328 err = rte_event_eth_tx_adapter_caps_get(TEST_DEV_ID, TEST_ETHDEV_ID,
330 TEST_ASSERT(err == 0, "Expected 0 got %d", err);
333 err = rte_event_eth_tx_adapter_queue_add(TEST_INST_ID,
334 rte_eth_dev_count_total(),
336 TEST_ASSERT(err == -EINVAL, "Expected -EINVAL got %d", err);
338 err = rte_event_eth_tx_adapter_queue_add(TEST_INST_ID,
341 TEST_ASSERT(err == 0, "Expected 0 got %d", err);
343 err = rte_event_eth_tx_adapter_queue_add(TEST_INST_ID,
346 TEST_ASSERT(err == 0, "Expected 0 got %d", err);
348 err = rte_event_eth_tx_adapter_queue_del(TEST_INST_ID,
351 TEST_ASSERT(err == 0, "Expected 0 got %d", err);
353 err = rte_event_eth_tx_adapter_queue_del(TEST_INST_ID,
356 TEST_ASSERT(err == 0, "Expected 0 got %d", err);
358 err = rte_event_eth_tx_adapter_queue_del(TEST_INST_ID,
361 TEST_ASSERT(err == 0, "Expected 0 got %d", err);
363 err = rte_event_eth_tx_adapter_queue_add(1, TEST_ETHDEV_ID, -1);
364 TEST_ASSERT(err == -EINVAL, "Expected -EINVAL got %d", err);
366 err = rte_event_eth_tx_adapter_queue_del(1, TEST_ETHDEV_ID, -1);
367 TEST_ASSERT(err == -EINVAL, "Expected -EINVAL got %d", err);
373 tx_adapter_start_stop(void)
377 err = rte_event_eth_tx_adapter_queue_add(TEST_INST_ID, TEST_ETHDEV_ID,
379 TEST_ASSERT(err == 0, "Expected 0 got %d", err);
381 err = rte_event_eth_tx_adapter_start(TEST_INST_ID);
382 TEST_ASSERT(err == 0, "Expected 0 got %d", err);
384 err = rte_event_eth_tx_adapter_stop(TEST_INST_ID);
385 TEST_ASSERT(err == 0, "Expected 0 got %d", err);
387 err = rte_event_eth_tx_adapter_queue_del(TEST_INST_ID, TEST_ETHDEV_ID,
389 TEST_ASSERT(err == 0, "Expected 0 got %d", err);
391 err = rte_event_eth_tx_adapter_start(TEST_INST_ID);
392 TEST_ASSERT(err == 0, "Expected 0 got %d", err);
394 err = rte_event_eth_tx_adapter_stop(TEST_INST_ID);
395 TEST_ASSERT(err == 0, "Expected 0 got %d", err);
397 err = rte_event_eth_tx_adapter_start(1);
399 err = rte_event_eth_tx_adapter_stop(1);
400 TEST_ASSERT(err == -EINVAL, "Expected -EINVAL got %d", err);
407 tx_adapter_single(uint16_t port, uint16_t tx_queue_id,
408 struct rte_mbuf *m, uint8_t qid,
411 struct rte_event event;
416 event.queue_id = qid;
417 event.op = RTE_EVENT_OP_NEW;
418 event.event_type = RTE_EVENT_TYPE_CPU;
419 event.sched_type = sched_type;
423 rte_event_eth_tx_adapter_txq_set(m, tx_queue_id);
426 while (rte_event_enqueue_burst(TEST_DEV_ID, 0, &event, 1) != 1) {
432 TEST_ASSERT(l < EDEV_RETRY, "Unable to enqueue to eventdev");
434 while (l++ < EDEV_RETRY) {
437 ret = rte_service_run_iter_on_app_lcore(eid, 0);
438 TEST_ASSERT(ret == 0, "failed to run service %d", ret);
441 ret = rte_service_run_iter_on_app_lcore(tid, 0);
442 TEST_ASSERT(ret == 0, "failed to run service %d", ret);
444 if (rte_eth_rx_burst(TEST_ETHDEV_PAIR_ID, tx_queue_id,
446 TEST_ASSERT_EQUAL(r, m, "mbuf comparison failed"
447 " expected %p received %p", m, r);
452 TEST_ASSERT(0, "Failed to receive packet");
457 tx_adapter_service(void)
459 struct rte_event_eth_tx_adapter_stats stats;
462 uint8_t ev_port, ev_qid;
463 struct rte_mbuf bufs[RING_SIZE];
464 struct rte_mbuf *pbufs[RING_SIZE];
465 struct rte_event_dev_info dev_info;
466 struct rte_event_dev_config dev_conf;
467 struct rte_event_queue_conf qconf;
473 memset(&dev_conf, 0, sizeof(dev_conf));
474 err = rte_event_eth_tx_adapter_caps_get(TEST_DEV_ID, TEST_ETHDEV_ID,
476 TEST_ASSERT(err == 0, "Failed to get adapter cap err %d\n", err);
478 internal_port = !!(cap & RTE_EVENT_ETH_TX_ADAPTER_CAP_INTERNAL_PORT);
482 err = rte_event_eth_tx_adapter_queue_add(TEST_INST_ID, TEST_ETHDEV_ID,
484 TEST_ASSERT(err == 0, "Expected 0 got %d", err);
486 err = rte_event_eth_tx_adapter_event_port_get(TEST_INST_ID,
488 TEST_ASSERT_SUCCESS(err, "Failed to get event port %d", err);
490 err = rte_event_dev_attr_get(TEST_DEV_ID, RTE_EVENT_DEV_ATTR_PORT_COUNT,
492 TEST_ASSERT_SUCCESS(err, "Port count get failed");
494 err = rte_event_dev_attr_get(TEST_DEV_ID,
495 RTE_EVENT_DEV_ATTR_QUEUE_COUNT, &qcnt);
496 TEST_ASSERT_SUCCESS(err, "Queue count get failed");
498 err = rte_event_dev_info_get(TEST_DEV_ID, &dev_info);
499 TEST_ASSERT_SUCCESS(err, "Dev info failed");
501 dev_conf.nb_event_queue_flows = dev_info.max_event_queue_flows;
502 dev_conf.nb_event_port_dequeue_depth =
503 dev_info.max_event_port_dequeue_depth;
504 dev_conf.nb_event_port_enqueue_depth =
505 dev_info.max_event_port_enqueue_depth;
506 dev_conf.nb_events_limit =
507 dev_info.max_num_events;
508 dev_conf.nb_event_queues = qcnt + 1;
509 dev_conf.nb_event_ports = pcnt;
510 err = rte_event_dev_configure(TEST_DEV_ID, &dev_conf);
511 TEST_ASSERT(err == 0, "Event device initialization failed err %d\n",
515 qconf.nb_atomic_flows = dev_info.max_event_queue_flows;
516 qconf.nb_atomic_order_sequences = 32;
517 qconf.schedule_type = RTE_SCHED_TYPE_ATOMIC;
518 qconf.priority = RTE_EVENT_DEV_PRIORITY_HIGHEST;
519 qconf.event_queue_cfg = RTE_EVENT_QUEUE_CFG_SINGLE_LINK;
520 err = rte_event_queue_setup(TEST_DEV_ID, ev_qid, &qconf);
521 TEST_ASSERT_SUCCESS(err, "Failed to setup queue %u", ev_qid);
524 * Setup ports again so that the newly added queue is visible
527 for (i = 0; i < pcnt; i++) {
530 uint8_t queues[RTE_EVENT_MAX_QUEUES_PER_DEV];
531 uint8_t priorities[RTE_EVENT_MAX_QUEUES_PER_DEV];
536 n_links = rte_event_port_links_get(TEST_DEV_ID, i, queues,
538 TEST_ASSERT(n_links > 0, "Failed to get port links %d\n",
540 err = rte_event_port_setup(TEST_DEV_ID, i, NULL);
541 TEST_ASSERT(err == 0, "Failed to setup port err %d\n", err);
542 err = rte_event_port_link(TEST_DEV_ID, i, queues, priorities,
544 TEST_ASSERT(n_links == err, "Failed to link all queues"
545 " err %s\n", rte_strerror(rte_errno));
548 err = rte_event_port_link(TEST_DEV_ID, ev_port, &ev_qid, NULL, 1);
549 TEST_ASSERT(err == 1, "Failed to link queue port %u",
552 err = rte_event_eth_tx_adapter_start(TEST_INST_ID);
553 TEST_ASSERT(err == 0, "Expected 0 got %d", err);
555 if (!(dev_info.event_dev_cap & RTE_EVENT_DEV_CAP_DISTRIBUTED_SCHED)) {
556 err = rte_event_dev_service_id_get(0, (uint32_t *)&eid);
557 TEST_ASSERT(err == 0, "Expected 0 got %d", err);
559 err = rte_service_runstate_set(eid, 1);
560 TEST_ASSERT(err == 0, "Expected 0 got %d", err);
562 err = rte_service_set_runstate_mapped_check(eid, 0);
563 TEST_ASSERT(err == 0, "Expected 0 got %d", err);
566 err = rte_event_eth_tx_adapter_service_id_get(TEST_INST_ID, &tid);
567 TEST_ASSERT(err == 0, "Expected 0 got %d", err);
569 err = rte_service_runstate_set(tid, 1);
570 TEST_ASSERT(err == 0, "Expected 0 got %d", err);
572 err = rte_service_set_runstate_mapped_check(tid, 0);
573 TEST_ASSERT(err == 0, "Expected 0 got %d", err);
575 err = rte_event_dev_start(TEST_DEV_ID);
576 TEST_ASSERT(err == 0, "Expected 0 got %d", err);
578 for (q = 0; q < MAX_NUM_QUEUE; q++) {
579 for (i = 0; i < RING_SIZE; i++)
581 for (i = 0; i < RING_SIZE; i++) {
583 err = tx_adapter_single(TEST_ETHDEV_ID, q, pbufs[i],
585 RTE_SCHED_TYPE_ORDERED);
586 TEST_ASSERT(err == 0, "Expected 0 got %d", err);
588 for (i = 0; i < RING_SIZE; i++) {
589 TEST_ASSERT_EQUAL(pbufs[i], &bufs[i],
590 "Error: received data does not match"
591 " that transmitted");
595 err = rte_event_eth_tx_adapter_stats_get(TEST_INST_ID, NULL);
596 TEST_ASSERT(err == -EINVAL, "Expected -EINVAL got %d", err);
598 err = rte_event_eth_tx_adapter_stats_get(TEST_INST_ID, &stats);
599 TEST_ASSERT(err == 0, "Expected 0 got %d", err);
600 TEST_ASSERT_EQUAL(stats.tx_packets, MAX_NUM_QUEUE * RING_SIZE,
601 "stats.tx_packets expected %u got %"PRIu64,
602 MAX_NUM_QUEUE * RING_SIZE,
605 err = rte_event_eth_tx_adapter_stats_reset(TEST_INST_ID);
606 TEST_ASSERT(err == 0, "Expected 0 got %d", err);
608 err = rte_event_eth_tx_adapter_stats_get(TEST_INST_ID, &stats);
609 TEST_ASSERT(err == 0, "Expected 0 got %d", err);
610 TEST_ASSERT_EQUAL(stats.tx_packets, 0,
611 "stats.tx_packets expected %u got %"PRIu64,
615 err = rte_event_eth_tx_adapter_stats_get(1, &stats);
616 TEST_ASSERT(err == -EINVAL, "Expected -EINVAL got %d", err);
618 err = rte_event_eth_tx_adapter_queue_del(TEST_INST_ID, TEST_ETHDEV_ID,
620 TEST_ASSERT(err == 0, "Expected 0 got %d", err);
622 err = rte_event_eth_tx_adapter_free(TEST_INST_ID);
623 TEST_ASSERT(err == 0, "Expected 0 got %d", err);
625 rte_event_dev_stop(TEST_DEV_ID);
631 tx_adapter_dynamic_device(void)
633 uint16_t port_id = rte_eth_dev_count_avail();
634 const char *null_dev[2] = { "eth_null0", "eth_null1" };
635 struct rte_eth_conf dev_conf;
639 memset(&dev_conf, 0, sizeof(dev_conf));
640 for (i = 0; i < RTE_DIM(null_dev); i++) {
641 ret = rte_vdev_init(null_dev[i], NULL);
642 TEST_ASSERT_SUCCESS(ret, "%s Port creation failed %d",
646 ret = tx_adapter_create();
647 TEST_ASSERT_SUCCESS(ret, "Adapter create failed %d",
651 ret = rte_eth_dev_configure(port_id + i, MAX_NUM_QUEUE,
652 MAX_NUM_QUEUE, &dev_conf);
653 TEST_ASSERT_SUCCESS(ret, "Failed to configure device %d", ret);
655 ret = rte_event_eth_tx_adapter_queue_add(TEST_INST_ID,
657 TEST_ASSERT_SUCCESS(ret, "Failed to add queues %d", ret);
661 for (i = 0; i < RTE_DIM(null_dev); i++) {
662 ret = rte_event_eth_tx_adapter_queue_del(TEST_INST_ID,
664 TEST_ASSERT_SUCCESS(ret, "Failed to delete queues %d", ret);
669 for (i = 0; i < RTE_DIM(null_dev); i++)
670 rte_vdev_uninit(null_dev[i]);
675 static struct unit_test_suite event_eth_tx_tests = {
676 .setup = testsuite_setup,
677 .teardown = testsuite_teardown,
678 .suite_name = "tx event eth adapter test suite",
680 TEST_CASE_ST(NULL, NULL, tx_adapter_create_free),
681 TEST_CASE_ST(tx_adapter_create, tx_adapter_free,
682 tx_adapter_queue_add_del),
683 TEST_CASE_ST(tx_adapter_create, tx_adapter_free,
684 tx_adapter_start_stop),
685 TEST_CASE_ST(tx_adapter_create, tx_adapter_free,
687 TEST_CASE_ST(NULL, NULL, tx_adapter_dynamic_device),
688 TEST_CASES_END() /**< NULL terminate unit test array */
693 test_event_eth_tx_adapter_common(void)
695 return unit_test_suite_runner(&event_eth_tx_tests);
698 REGISTER_TEST_COMMAND(event_eth_tx_adapter_autotest,
699 test_event_eth_tx_adapter_common);