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 19C24A0A02; Thu, 25 Mar 2021 07:20:56 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9EAEC140EF8; Thu, 25 Mar 2021 07:20:55 +0100 (CET) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 6531C140EEA for ; Thu, 25 Mar 2021 07:20:54 +0100 (CET) Received: by inbox.dpdk.org (Postfix, from userid 33) id 30253A0A0A; Thu, 25 Mar 2021 07:20:54 +0100 (CET) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Thu, 25 Mar 2021 06:20:53 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: testpmd X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: weix.ling@intel.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 Subject: [dpdk-dev] [Bug 666] [dpdk-21.05] unit_test_eal/test_kvargs: dpdk-20.11.0 use dpdk-21.05 lib to run kvargs_autotest failed. 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" https://bugs.dpdk.org/show_bug.cgi?id=3D666 Bug ID: 666 Summary: [dpdk-21.05] unit_test_eal/test_kvargs: dpdk-20.11.0 use dpdk-21.05 lib to run kvargs_autotest failed. Product: DPDK Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: testpmd Assignee: dev@dpdk.org Reporter: weix.ling@intel.com Target Milestone: --- DPDK version:=20 21.05.0-rc0:e2b8dc5256c0c6d567c136401de67d3249b9086b Other software versions: N/A. OS: CentOS Linux 8/Linux 4.18.0-240.1.1.el8_3.x86_64 Compiler: gcc version 8.3.1 20191121 (Red Hat 8.3.1-5) (GCC) Hardware platform: Intel(R) Xeon(R) Platinum 8180 CPU @ 2.50GHz NIC hardware: Ethernet Controller XL710 for 40GbE QSFP+ 1583 NIC firmware: 7.20 0x80007948 1.2585.0 NIC driver: i40e-2.14.13 Test Setup 1.Build dpdk-21.05.0-rc0 rm -fr dpdk tar -xf dpdk.tar.gz mv dpdk dpdk_lib cd dpdk_lib sed -i '$a\#define RTE_BUILD_SHARED_LIB 1' config/rte_config.h rm -rf x86_64-native-linuxapp-gcc CC=3Dgcc meson -Denable_kmods=3DTrue -Dlibdir=3Dlib --default-library=3Dsh= ared x86_64-native-linuxapp-gcc ninja -C x86_64-native-linuxapp-gcc rm -rf /root/tmp/dpdk_share_lib DESTDIR=3D/root/tmp/dpdk_share_lib ninja -C x86_64-native-linuxapp-gcc -j 1= 10 install rm -rf /root/shared_lib_dpdk mv /root/tmp/dpdk_share_lib/usr/local/lib /root/shared_lib_dpdk export LD_LIBRARY_PATH=3D.*#export LD_LIBRARY_PATH=3D/root/shared_lib_dpdk 2.Build dpdk-20.11.0 rm -fr dpdk tar -xf dpdk.tar.gz cd dpdk rm -rf x86_64-native-linuxapp-gcc CC=3Dgcc meson -Denable_kmods=3DTrue -Dlibdir=3Dlib --default-library=3Dsh= ared x86_64-native-linuxapp-gcc ninja -C x86_64-native-linuxapp-gcc rm -rf x86_64-native-linuxapp-gcc/drivers rm -rf x86_64-native-linuxapp-gcc/lib 3.Start testpmd in dpdk-20.11.0 and start unit test x86_64-native-linuxapp-gcc/app/test/dpdk-test -l 1,2,3,4 -n 4=20=20 --file-prefix=3Ddpdk_26525_20210325103558 -d /root/shared_lib_dpdk kvargs_autotest quit Show the output from the previous commands. [root@localhost dpdk]# x86_64-native-linuxapp-gcc/app/test/dpdk-test -l 1,2= ,3,4 -n 4 --file-prefix=3Ddpdk_26525_20210325103558 -d /root/shared_lib_dpdk EAL: Detected 112 lcore(s) EAL: Detected 2 NUMA nodes EAL: Detected shared linkage of DPDK EAL: Multi-process socket /var/run/dpdk/dpdk_26525_20210325103558/mp_socket EAL: Selected IOVA mode 'VA' EAL: No available 2048 kB hugepages reported EAL: Probing VFIO support... EAL: VFIO support initialized EAL: using IOMMU type 1 (Type 1) EAL: Ignore mapping IO port bar(1) EAL: Ignore mapping IO port bar(4) EAL: Probe PCI driver: net_i40e (8086:1583) device: 0000:18:00.0 (socket 0) EAL: Ignore mapping IO port bar(1) EAL: Ignore mapping IO port bar(4) EAL: Probe PCI driver: net_i40e (8086:1583) device: 0000:18:00.1 (socket 0) EAL: No legacy callbacks, legacy socket not created APP: HPET is not enabled, using TSC as default timer RTE>>kvargs_autotest =3D=3D test valid case =3D=3D =3D=3D test invalid case =3D=3D rte_kvargs_parse() returned 0 (but should not) while processing using valid_keys=3D Test Failed RTE>>quit [root@localhost dpdk]# Expected Result: [root@localhost dpdk]# x86_64-native-linuxapp-gcc/app/test/dpdk-test -l 1,2= ,3,4 -n 4 --file-prefix=3Ddpdk_26525_20210325103558 -d /root/shared_lib_dpdk EAL: Detected 112 lcore(s) EAL: Detected 2 NUMA nodes EAL: Detected shared linkage of DPDK EAL: Multi-process socket /var/run/dpdk/dpdk_26525_20210325103558/mp_socket EAL: Selected IOVA mode 'VA' EAL: No available 2048 kB hugepages reported EAL: Probing VFIO support... EAL: VFIO support initialized EAL: using IOMMU type 1 (Type 1) EAL: Ignore mapping IO port bar(1) EAL: Ignore mapping IO port bar(4) EAL: Probe PCI driver: net_i40e (8086:1583) device: 0000:18:00.0 (socket 0) EAL: Ignore mapping IO port bar(1) EAL: Ignore mapping IO port bar(4) EAL: Probe PCI driver: net_i40e (8086:1583) device: 0000:18:00.1 (socket 0) EAL: No legacy callbacks, legacy socket not created APP: HPET is not enabled, using TSC as default timer RTE>>kvargs_autotest =3D=3D test valid case =3D=3D =3D=3D test invalid case =3D=3D Test OK RTE>>quit Regression Is this issue a regression: (Y/N) Y Version the regression was introduced: Specify git id if known. Bad commit: 9be46b4308a5d5d458b7f60d448893cc65ebb5ae commit 9be46b4308a5d5d458b7f60d448893cc65ebb5ae (HEAD) Author: Xueming Li Date: Thu Mar 11 13:13:28 2021 +0000 kvargs: support multiple lists This patch updates kvargs parser to support value of multiple lists or ranges: k1=3Dv[1,2]v[3-5] Signed-off-by: Xueming Li Acked-by: Viacheslav Ovsiienko Acked-by: Thomas Monjalon --=20 You are receiving this mail because: You are the assignee for the bug.=