From: David Marchand <david.marchand@redhat.com>
To: dev@dpdk.org
Cc: bruce.richardson@intel.com
Subject: [PATCH v3 5/9] test/devargs: rely on net null driver
Date: Mon, 21 Sep 2026 13:47:32 +0200 [thread overview]
Message-ID: <20260921114737.2334589-6-david.marchand@redhat.com> (raw)
In-Reply-To: <20260921114737.2334589-1-david.marchand@redhat.com>
The net/null driver is enabled in all our tests builds in the CI.
Standardize on using net/null instead of net/ring.
This also removes use of an internal API.
Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
---
Changes since v1:
- dropped dependency on net/ring, used net/null instead,
---
app/test/test_devargs.c | 19 ++++---------------
1 file changed, 4 insertions(+), 15 deletions(-)
diff --git a/app/test/test_devargs.c b/app/test/test_devargs.c
index 0bd14c24ec..0300a2c753 100644
--- a/app/test/test_devargs.c
+++ b/app/test/test_devargs.c
@@ -10,7 +10,7 @@
#include <rte_common.h>
#include <rte_devargs.h>
#include <rte_kvargs.h>
-#include <bus_driver.h>
+#include <rte_bus.h>
#include <rte_class.h>
#include "test.h"
@@ -160,22 +160,11 @@ test_valid_devargs(void)
"pci", "1:2.3", NULL },
{ "pci:1:2.3,k0=v0",
0, 0, 1, "pci", "1:2.3", NULL },
+ { "net_null0",
+ 0, 0, 0, "vdev", "net_null0", NULL },
};
- static const struct devargs_case legacy_ring_list[] = {
- { "net_ring0",
- 0, 0, 0, "vdev", "net_ring0", NULL },
- { "net_ring0,iface=test,path=/class/bus/,queues=1",
- 0, 0, 3, "vdev", "net_ring0", NULL },
- };
- struct rte_bus *vdev_bus = rte_bus_find_by_name("vdev");
- int ret;
- ret = test_valid_devargs_cases(list, RTE_DIM(list));
- if (vdev_bus != NULL && vdev_bus->parse("net_ring0", NULL) == 0)
- /* Ring vdev driver enabled. */
- ret |= test_valid_devargs_cases(legacy_ring_list,
- RTE_DIM(legacy_ring_list));
- return ret;
+ return test_valid_devargs_cases(list, RTE_DIM(list));
}
/* Test several invalid cases */
--
2.54.0
next prev parent reply other threads:[~2026-09-21 11:48 UTC|newest]
Thread overview: 68+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-17 9:29 [PATCH 00/10] Limit usage of internal API in tests David Marchand
2026-07-17 9:29 ` [PATCH 01/10] bbdev: fix stats aggregation from queues David Marchand
2026-07-17 17:22 ` Chautru, Nicolas
2026-07-18 7:47 ` David Marchand
2026-07-17 9:29 ` [PATCH 02/10] bbdev: add per-queue statistics API David Marchand
2026-07-17 9:29 ` [PATCH 03/10] hash: fix GFNI stubs export David Marchand
2026-07-17 9:38 ` Bruce Richardson
2026-07-17 9:55 ` Konstantin Ananyev
2026-07-17 9:29 ` [PATCH 04/10] test: uninline helper for forking David Marchand
2026-07-17 9:39 ` Bruce Richardson
2026-07-17 9:30 ` [PATCH 05/10] test/bonding: get MAC address with public API David Marchand
2026-07-17 9:30 ` [PATCH 06/10] test/devargs: check driver presence " David Marchand
2026-07-17 9:55 ` Bruce Richardson
2026-07-17 10:08 ` David Marchand
2026-07-17 10:14 ` Bruce Richardson
2026-07-17 12:34 ` David Marchand
2026-07-17 12:56 ` Thomas Monjalon
2026-07-17 9:30 ` [PATCH 07/10] test/vdev: find device " David Marchand
2026-07-17 9:30 ` [PATCH 08/10] test: limit internal API usage David Marchand
2026-07-17 9:30 ` [PATCH 09/10] ci: make ABI reference generation faster David Marchand
2026-07-17 9:30 ` [PATCH 10/10] ci: run reference unit tests against ABI David Marchand
2026-07-17 9:35 ` [PATCH 00/10] Limit usage of internal API in tests David Marchand
2026-07-23 12:55 ` [PATCH v2 0/9] " David Marchand
2026-07-23 12:55 ` [PATCH v2 1/9] bbdev: add per-queue statistics API David Marchand
2026-09-18 15:29 ` Bruce Richardson
2026-07-23 12:55 ` [PATCH v2 2/9] hash: fix GFNI stubs export David Marchand
2026-07-23 12:55 ` [PATCH v2 3/9] test: uninline helper for forking David Marchand
2026-07-23 12:55 ` [PATCH v2 4/9] test/bonding: get MAC address with public API David Marchand
2026-07-23 13:30 ` Bruce Richardson
2026-07-23 12:55 ` [PATCH v2 5/9] test/devargs: rely on net null driver David Marchand
2026-07-23 13:31 ` Bruce Richardson
2026-07-23 12:55 ` [PATCH v2 6/9] test/vdev: find device with public API David Marchand
2026-09-18 15:30 ` Bruce Richardson
2026-07-23 12:55 ` [PATCH v2 7/9] test: limit internal API usage David Marchand
2026-07-23 13:33 ` Bruce Richardson
2026-07-23 15:04 ` Morten Brørup
2026-07-23 12:55 ` [PATCH v2 8/9] ci: make ABI reference generation faster David Marchand
2026-09-18 15:32 ` Bruce Richardson
2026-07-23 12:55 ` [PATCH v2 9/9] ci: run reference binaries against current ABI David Marchand
2026-09-18 15:41 ` Bruce Richardson
2026-09-21 11:47 ` [PATCH v3 0/9] Limit usage of internal API in tests David Marchand
2026-09-21 11:47 ` [PATCH v3 1/9] bbdev: add per-queue statistics API David Marchand
2026-09-21 11:47 ` [PATCH v3 2/9] hash: fix GFNI stubs export David Marchand
2026-09-21 11:47 ` [PATCH v3 3/9] test: uninline helper for forking David Marchand
2026-09-21 11:47 ` [PATCH v3 4/9] test/bonding: get MAC address with public API David Marchand
2026-09-21 11:47 ` David Marchand [this message]
2026-09-21 16:38 ` [PATCH v3 5/9] test/devargs: rely on net null driver Stephen Hemminger
2026-09-21 11:47 ` [PATCH v3 6/9] test/vdev: find device with public API David Marchand
2026-09-21 16:39 ` Stephen Hemminger
2026-09-21 11:47 ` [PATCH v3 7/9] test: limit internal API usage David Marchand
2026-09-21 11:47 ` [PATCH v3 8/9] ci: make ABI reference generation faster David Marchand
2026-09-21 11:47 ` [PATCH v3 9/9] ci: run reference binaries against current ABI David Marchand
2026-09-21 16:39 ` Stephen Hemminger
2026-09-22 7:38 ` David Marchand
2026-09-22 9:40 ` [PATCH v4 0/9] Limit usage of internal API in tests David Marchand
2026-09-22 9:40 ` [PATCH v4 1/9] bbdev: add per-queue statistics API David Marchand
2026-09-22 9:40 ` [PATCH v4 2/9] hash: fix GFNI stubs export David Marchand
2026-09-22 9:40 ` [PATCH v4 3/9] test: uninline helper for forking David Marchand
2026-09-22 9:40 ` [PATCH v4 4/9] test/bonding: get MAC address with public API David Marchand
2026-09-22 9:40 ` [PATCH v4 5/9] test/devargs: rely on net null driver David Marchand
2026-09-22 9:40 ` [PATCH v4 6/9] test/vdev: find device with public API David Marchand
2026-09-22 9:40 ` [PATCH v4 7/9] test: limit internal API usage David Marchand
2026-09-22 9:40 ` [PATCH v4 8/9] ci: make ABI reference generation faster David Marchand
2026-09-22 9:40 ` [PATCH v4 9/9] ci: run reference binaries against current ABI David Marchand
2026-09-22 10:03 ` Bruce Richardson
2026-09-29 13:38 ` [PATCH v4 0/9] Limit usage of internal API in tests David Marchand
2026-09-29 19:50 ` Stephen Hemminger
2026-09-30 7:32 ` David Marchand
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260921114737.2334589-6-david.marchand@redhat.com \
--to=david.marchand@redhat.com \
--cc=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox