DPDK usage discussions
 help / color / mirror / Atom feed
From: "Wiles, Keith" <keith.wiles@intel.com>
To: Alex Kiselev <kiselev99@gmail.com>
Cc: users <users@dpdk.org>
Subject: Re: [dpdk-users] pktgen lua scripting
Date: Mon, 27 Feb 2017 21:27:53 +0000	[thread overview]
Message-ID: <ABC5DC47-17CA-4D19-87F8-A5E98C832F09@intel.com> (raw)
In-Reply-To: <CAMKNYbwUeDYQuYhowoR0=h4ynb1UcSr4zV2Q+3E_OEVMdhRMyQ@mail.gmail.com>


> 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

      reply	other threads:[~2017-02-27 21:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-27 20:56 Alex Kiselev
2017-02-27 21:27 ` Wiles, Keith [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ABC5DC47-17CA-4D19-87F8-A5E98C832F09@intel.com \
    --to=keith.wiles@intel.com \
    --cc=kiselev99@gmail.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).