From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id EF8442E81 for ; Mon, 27 Feb 2017 22:27:56 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Feb 2017 13:27:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,215,1484035200"; d="scan'208";a="1135693032" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga002.fm.intel.com with ESMTP; 27 Feb 2017 13:27:54 -0800 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 27 Feb 2017 13:27:54 -0800 Received: from fmsmsx113.amr.corp.intel.com ([169.254.13.17]) by FMSMSX112.amr.corp.intel.com ([169.254.5.137]) with mapi id 14.03.0248.002; Mon, 27 Feb 2017 13:27:54 -0800 From: "Wiles, Keith" To: Alex Kiselev CC: users Thread-Topic: [dpdk-users] pktgen lua scripting Thread-Index: AQHSkTwL6FNhT5Eddk6ZpzEcmwcJpKF95FmA Date: Mon, 27 Feb 2017 21:27:53 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.254.115.94] Content-Type: text/plain; charset="us-ascii" Content-ID: <6E1B5C027368064E977CA55131740FAE@intel.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-users] pktgen lua scripting X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Feb 2017 21:27:57 -0000 > On Feb 27, 2017, at 2:56 PM, Alex Kiselev wrote: >=20 > Hi. >=20 > I have just started with the pktgen lua scripting language ang got > something that looks like a bug: >=20 > pktgen: /usr/src/dpdk-17.02/lib/librte_timer/rte_timer.c:520: > rte_timer_manage: Assertion `lcore_id < 128' failed. > Aborted (core dumped) >=20 > I run the pktgen > # ./app/app/x86_64-native-linuxapp-gcc/app/pktgen -cf -n2 -- -m "1.0, 2.1= " -G >=20 > than I execute the lua script using the socat program > # socat - TCP4:localhost:22022 < test/test1.lua In the file app/lpktgenlib.c around line 962 or function __delay() you need= to comment out the call to rte_timer_manage(). The thread running the sock= et is not assigned to a DPDK lcore routine. While the delay is running, the= n timers will not be handled. One more thing on the list to fix. >=20 > and then I get the assertion error. >=20 > Here is my test lua script. It's just a useless test script: >=20 > package.path =3D package.path ..";?.lua;test/?.lua;app/?.lua;" >=20 > printf("Lua Version : %s\n", pktgen.info.Lua_Version); > printf("Pktgen Version : %s\n", pktgen.info.Pktgen_Version); > printf("Pktgen Copyright : %s\n", pktgen.info.Pktgen_Copyright); > printf("Pktgen Authors : %s\n", pktgen.info.Pktgen_Authors); >=20 >=20 > pktgen.screen("on"); > pktgen.set("1", "count", 400); > pktgen.delay(1000); > printf("done\n"); >=20 > This is the line that causes the error: > pktgen.delay(1000); >=20 > I am getting the error with > pktgen-3.0.14 + dpdk-16.07 > or > pktgen-3.1.2 + dpdk-17.02 >=20 > In both cases dpdk was built with the following target: > export RTE_TARGET=3Dx86_64-native-linuxapp-gcc >=20 >=20 > -- > Kiselev Alexander Regards, Keith