* [dpdk-users] pktgen lua scripting
@ 2017-02-27 20:56 Alex Kiselev
2017-02-27 21:27 ` Wiles, Keith
0 siblings, 1 reply; 2+ messages in thread
From: Alex Kiselev @ 2017-02-27 20:56 UTC (permalink / raw)
To: users
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
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-users] pktgen lua scripting
2017-02-27 20:56 [dpdk-users] pktgen lua scripting Alex Kiselev
@ 2017-02-27 21:27 ` Wiles, Keith
0 siblings, 0 replies; 2+ messages in thread
From: Wiles, Keith @ 2017-02-27 21:27 UTC (permalink / raw)
To: Alex Kiselev; +Cc: users
> On Feb 27, 2017, at 2:56 PM, Alex Kiselev <kiselev99@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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-02-27 21:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-27 20:56 [dpdk-users] pktgen lua scripting Alex Kiselev
2017-02-27 21:27 ` Wiles, Keith
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).