From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by smtp.lore.kernel.org (Postfix) with ESMTP id 65F72C982ED for ; Mon, 21 Sep 2026 11:48:25 +0000 (UTC) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8E716427E8; Mon, 21 Sep 2026 13:48:09 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 12D85427DD for ; Mon, 21 Sep 2026 13:48:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1789991287; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Bq6osS0TQqC2piknJ0Zpgn3IMosuXHEMoybXaMUBumg=; b=I6S/q1FsE6cfNxhG8AvVbiJr/VsyrC+iM4l2RysAmyuRNgW7u4NdNP5iOHNy9CmUA+3AsV aVMmwkZe+gz8L33K6hJw9/Rz8EA9xZG7CUKHc4OunTQwaZbZVSVVn4EPmDXQ4wkS9NTc9y 6jlc8+w1Ct86NFFgzjNh2cuUQp7LXNM= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-251-Cmk1lMdxP2-J72HbfXRqJg-1; Mon, 21 Sep 2026 07:48:04 -0400 X-MC-Unique: Cmk1lMdxP2-J72HbfXRqJg-1 X-Mimecast-MFC-AGG-ID: Cmk1lMdxP2-J72HbfXRqJg_1789991283 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 14C7019540EC; Mon, 21 Sep 2026 11:48:03 +0000 (UTC) Received: from dmarchan.redhat.corp (headnet05.pony-001.prod.iad2.dc.redhat.com [10.2.32.117]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 4AB3C1800446; Mon, 21 Sep 2026 11:48:02 +0000 (UTC) From: David Marchand 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 Message-ID: <20260921114737.2334589-6-david.marchand@redhat.com> In-Reply-To: <20260921114737.2334589-1-david.marchand@redhat.com> References: <20260717093006.229370-1-david.marchand@redhat.com> <20260921114737.2334589-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: h0LHulRzZ7qd-8e-unK1DzzeVwL5dotPbCLhfCtynFs_1789991283 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 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 Acked-by: Bruce Richardson --- 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 #include #include -#include +#include #include #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