<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";}
span.line
{mso-style-name:line;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">I believe you’ll see this error if pktgen was not compiled with lua support. Check that pktgen is compiled with lua enabled, in the meson_options.txt file.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><a href="https://github.com/pktgen/Pktgen-DPDK/blob/dev/meson_options.txt#L1">https://github.com/pktgen/Pktgen-DPDK/blob/dev/meson_options.txt#L1</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">In my build notes I have the following, but I’m unsure if this still applies. I have not tried a recent version.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<pre><span class="line"><span style="color:black">make buildlua</span></span><span style="color:black"><o:p></o:p></span></pre>
<pre><span class="line"><span style="color:black">meson build</span></span><span style="color:black"><o:p></o:p></span></pre>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">Saniyya Nizar <saniyya.pm@gmail.com><br>
<b>Date: </b>Wednesday, December 21, 2022 at 5:19 AM<br>
<b>To: </b>users@dpdk.org <users@dpdk.org><br>
<b>Subject: </b>Pktgen failing to execute with Lua scripts<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal">External Email: This message originated outside of NETSCOUT. Do not click links or open attachments unless you recognize the sender and know the content is safe.<br>
<br>
Hi Community, <br>
<br>
I’m trying to execute pktgen using lua scripts.<br>
<br>
The command I’m using is :<br>
./usr/local/bin/pktgen -c ffffffff -n 4 —proc-type auto —file-prefix pktgen1 —P -m “29.0” -f test/dump.lua<br>
<br>
But after instantiating, I see it displaying this message:<br>
>>> User State for CLI not set for Lua<br>
<br>
Is there anything we should be setting before trying to execute Lua scripts? Would highly appreciate some inputs on this.<br>
<br>
Thanks<br>
Saniyya<o:p></o:p></p>
</div>
</div>
</body>
</html>