[dpdk-users] pktgen lua scripting

Wiles, Keith keith.wiles at intel.com
Mon Feb 27 22:27:53 CET 2017


> On Feb 27, 2017, at 2:56 PM, Alex Kiselev <kiselev99 at gmail.com> wrote:
> 
> Hi.
> 
> I have just started with the pktgen lua scripting language ang got
> something that looks like a bug:
> 
> pktgen: /usr/src/dpdk-17.02/lib/librte_timer/rte_timer.c:520:
> rte_timer_manage: Assertion `lcore_id < 128' failed.
> Aborted (core dumped)
> 
> I run the pktgen
> # ./app/app/x86_64-native-linuxapp-gcc/app/pktgen -cf -n2 -- -m "1.0, 2.1" -G
> 
> 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 socket is not assigned to a DPDK lcore routine. While the delay is running, then timers will not be handled. One more thing on the list to fix.

> 
> and then I get the assertion error.
> 
> Here is my test lua script. It's just a useless test script:
> 
> package.path = package.path ..";?.lua;test/?.lua;app/?.lua;"
> 
> 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);
> 
> 
> pktgen.screen("on");
> pktgen.set("1", "count", 400);
> pktgen.delay(1000);
> printf("done\n");
> 
> This is the line that causes the error:
> pktgen.delay(1000);
> 
> I am getting the error with
> pktgen-3.0.14 + dpdk-16.07
> or
> pktgen-3.1.2 + dpdk-17.02
> 
> In both cases dpdk was built with the following target:
> export RTE_TARGET=x86_64-native-linuxapp-gcc
> 
> 
> --
> Kiselev Alexander

Regards,
Keith



More information about the users mailing list