[PATCH v2 2/4] test/event_eth_tx_adapter: remove dependency on NULL PMD

Bruce Richardson
2026-02-19T17:40:19Z

The eventdev eth Tx adapter only uses the net_null driver for the final
test case within the suite. Rather than adding an explicit dependency on
that driver, just report the last case as skipped if not present.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
app/test/test_event_eth_tx_adapter.c | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/app/test/test_event_eth_tx_adapter.c b/app/test/test_event_eth_tx_adapter.c
index a128a4f2c2..bec298a8b8 100644
--- a/app/test/test_event_eth_tx_adapter.c
+++ b/app/test/test_event_eth_tx_adapter.c
@@ -937,6 +937,7 @@ tx_adapter_set_get_params(void)
static int
tx_adapter_dynamic_device(void)
{
+#ifdef RTE_NET_NULL
uint16_t port_id = rte_eth_dev_count_avail();
const char *null_dev[2] = { "eth_null0", "eth_null1" };
struct rte_eth_conf dev_conf;
@@ -977,6 +978,9 @@ tx_adapter_dynamic_device(void)
rte_vdev_uninit(null_dev[i]);

return TEST_SUCCESS;
+#else
+ return TEST_SKIPPED;
+#endif
}

static struct unit_test_suite event_eth_tx_tests = {
--
2.51.0