From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 36520A0C43; Wed, 20 Oct 2021 12:41:42 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 121C240687; Wed, 20 Oct 2021 12:41:42 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 2365140142 for ; Wed, 20 Oct 2021 12:41:39 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10142"; a="252234400" X-IronPort-AV: E=Sophos;i="5.87,166,1631602800"; d="scan'208";a="252234400" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Oct 2021 03:41:39 -0700 X-IronPort-AV: E=Sophos;i="5.87,166,1631602800"; d="scan'208";a="483674879" Received: from bricha3-mobl.ger.corp.intel.com ([10.252.29.221]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-SHA; 20 Oct 2021 03:41:37 -0700 Date: Wed, 20 Oct 2021 11:41:34 +0100 From: Bruce Richardson To: "Xueming(Steven) Li" Cc: NBU-Contact-Thomas Monjalon , "david.marchand@redhat.com" , Lior Margalit , "dev@dpdk.org" , "grive@u256.net" Message-ID: References: <20211005123012.264727-1-xuemingl@nvidia.com> <20211020082200.2412189-1-xuemingl@nvidia.com> <20211020082200.2412189-4-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [dpdk-dev] [PATCH v3 3/3] test/devargs: add devargs test cases 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 Sender: "dev" On Wed, Oct 20, 2021 at 09:40:55AM +0000, Xueming(Steven) Li wrote: > On Wed, 2021-10-20 at 11:08 +0200, David Marchand wrote: > > On Wed, Oct 20, 2021 at 10:22 AM Xueming Li wrote: > > > > > > Initial version to test Global devargs syntax. > > > > > > Signed-off-by: Xueming Li > > > > 10/95 DPDK:fast-tests / devargs_autotest FAIL 0.17 s (exit > > status 255 or signal 127 SIGinvalid) > > > > --- command --- > > DPDK_TEST='devargs_autotest' > > /home/runner/work/dpdk/dpdk/build/app/test/dpdk-test -l 0-1 > > --file-prefix=devargs_autotest > > --- stdout --- > > RTE>>devargs_autotest > > == test valid case == > > rte_devargs_parse(net_virtio_user0,iface=test,path=/dev/vhost-net,queues=1) > > returned -14 (but should not) > > rte_devargs_parse(net_virtio_user0,iface=test,path=/class/bus/,queues=1) > > returned -14 (but should not) > > Test Failed > > RTE>> > > --- stderr --- > > EAL: Detected CPU lcores: 2 > > EAL: Detected NUMA nodes: 1 > > EAL: Detected shared linkage of DPDK > > EAL: Multi-process socket /var/run/dpdk/devargs_autotest/mp_socket > > EAL: Selected IOVA mode 'PA' > > EAL: No available 1048576 kB hugepages reported > > EAL: VFIO support initialized > > APP: HPET is not enabled, using TSC as default timer > > EAL: failed to parse device "net_virtio_user0" > > EAL: failed to parse device "net_virtio_user0" > > Yes, noticed that, seems virtio driver not enabled. Tried to add > "net_virtio" to test_deps in meson file, but failed with: > ../app/test/meson.build:444:4: ERROR: Tried to get unknown variable > "static_rte_net_virtio". > > Seems meson scripts only lookup dependency on libs, I'm not good at > meson, any suggestion? > "net_virtio" is correct for the virtio driver. However, you probably need to do like is done for the other network drivers linked into the autotest, and make it conditional on the support being present, since not every build enables the virtio driver. For example, as is currently in the meson.build for the autotests: # The following linkages of drivers are required because # they are used via a driver-specific API. if dpdk_conf.has('RTE_NET_BOND') test_deps += 'net_bond' test_sources += ['test_link_bonding.c', 'test_link_bonding_rssconf.c'] ... endif /Bruce