<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=utf-8">
<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;}
@font-face
        {font-family:"Times New Roman \(Body CS\)";
        panose-1:2 11 6 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        mso-ligatures:none;}
@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">
<div id="mail-editor-reference-message-container">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:.5in">
<b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">Maayan Kashani <mkashani@nvidia.com><br>
<b>Date: </b>Wednesday, July 12, 2023 at 8:57 AM<br>
<b>To: </b>Antonio Di Bacco <a.dibacco.ks@gmail.com>, users@dpdk.org <users@dpdk.org><br>
<b>Cc: </b>Raslan Darawsheh <rasland@nvidia.com>, Ali Alnubani <alialnu@nvidia.com><br>
<b>Subject: </b>RE: dpdk-testpmd works but dpdk pktgen crashes on startup with MLX5 card<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:11.0pt">Hi, Antonio,<br>
Sorry for the late reply,<br>
Thanks for bringing this issue to our attention.<br>
We need to investigate it, and share more data once we have it. <br>
<br>
Regards,<br>
Maayan Kashani<br>
<br>
> -----Original Message-----<br>
> From: Antonio Di Bacco <a.dibacco.ks@gmail.com><br>
> Sent: Wednesday, 12 July 2023 0:52<br>
> To: users@dpdk.org<br>
> Subject: dpdk-testpmd works but dpdk pktgen crashes on startup with MLX5<br>
> card<br>
> <br>
> External email: Use caution opening links or attachments<br>
> <br>
> <br>
> If I try to use dpdk-pktgen on a MLX5 card, I get this SIGSEGV<br>
> <br>
> [user@dhcp-10-84-89-229 pktgen-dpdk]$  sudo<br>
> LD_LIBRARY_PATH=/usr/local/lib64 ./usr/local/bin/pktgen -l50-54  -n 2  --allow<br>
> c1:00.0 -- -P -m "52.1"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Hope the format is correct I told macos outlook to reply as text, but it never seems to work.
</span><span style="font-size:12.0pt;font-family:"Apple Color Emoji"">☹</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">I noticed here you define lcores  -l 50-54, which means 50 is used for timers and display output. Then 51-54 are used for ports.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">The one thing I see here is that you define a lcore.port mapping  of -m “52.1” meaning lcore 52 and port 1. You only have 1 port, which means it should be -m “52.0” the other unused lcores will be reported
 as not used. Looks like I need to add some tests to detect this problem. </span>
<span style="font-size:12.0pt;font-family:"Apple Color Emoji"">☹</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">I hope this helps. I did not see this email as I have a filter set to detect a subject line with Pktgen in the text.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:11.0pt"><br>
> <br>
> *** Copyright(c) <2010-2023>, Intel Corporation. All rights reserved.<br>
> *** Pktgen  created by: Keith Wiles -- >>> Powered by DPDK <<<<br>
> <br>
>     0: mlx5_pci        9      1   15b3:1019/c1:00.0<br>
> <br>
> <br>
> <br>
> *** Unable to create capture memzone for socket ID 2<br>
> *** Unable to create capture memzone for socket ID 3<br>
> *** Unable to create capture memzone for socket ID 4<br>
> *** Unable to create capture memzone for socket ID 5<br>
> *** Unable to create capture memzone for socket ID 6<br>
> *** Unable to create capture memzone for socket ID 7<br>
> ---- repeating message<br>
> ----<br>
> *** Unable to create capture memzone for socket ID 219<br>
> *** Unable to create capture memzone for socket ID 220<br>
> *** Unable to create capture memzone for socket ID 221<br>
> *** Unable to create capture memzone for socket ID 222<br>
> WARNING: Nothing to do on lcore 51: exiting<br>
> WARNING: Nothing to do on lcore 53: exiting<br>
> WARNING: Nothing to do on lcore 54: exiting<br>
> - Ports 0-0 of 1   <Main Page>  Copyright(c) <2010-2023>, Intel Corporation<br>
>   Port:Flags        :<br>
> Link State          :<br>
> Pkts/s Rx           :<br>
>        Tx           :<br>
> MBits/s Rx/Tx       :<br>
> Pkts/s Rx Max       :<br>
>        Tx Max       :<br>
> Broadcast           :<br>
> Multicast           :<br>
> Sizes 64            :<br>
>       65-127        :<br>
>       128-255       :<br>
>       256-511       :<br>
>       512-1023      :<br>
>       1024-1518     :<br>
> Runts/Jumbos        :<br>
> ARP/ICMP Pkts       :<br>
> Errors Rx/Tx        :<br>
> Total Rx Pkts       :<br>
>       Tx Pkts       :<br>
>       Rx/Tx MBs     :<br>
> TCP Flags           :<br>
> TCP Seq/Ack         :<br>
> Pattern Type        :<br>
> Tx Count/% Rate     :<br>
> Pkt Size/Rx:Tx Burst:<br>
> TTL/Port Src/Dest   :<br>
> Pkt Type:VLAN ID    :<br>
> 802.1p CoS/DSCP/IPP :<br>
> VxLAN Flg/Grp/vid   :<br>
> IP  Destination     :<br>
>     Source          :<br>
> MAC Destination     :<br>
>     Source          :<br>
> NUMA/Vend:ID/PCI    :<br>
> -- Pktgen 23.06.1 (DPDK 22.11.2)  Powered by DPDK  (pid:20433) ----------------<br>
> <br>
> <br>
> ====== Pktgen got a Segment Fault<br>
> <br>
> Obtained 11 stack frames.<br>
> ./usr/local/bin/pktgen() [0x43f1b8]<br>
> /lib64/libc.so.6(+0x54df0) [0x7fe22a2a3df0]<br>
> ./usr/local/bin/pktgen() [0x458859]<br>
> ./usr/local/bin/pktgen() [0x4592cc]<br>
> ./usr/local/bin/pktgen() [0x43d6d9]<br>
> ./usr/local/bin/pktgen() [0x43d73a]<br>
> ./usr/local/bin/pktgen() [0x41cd10]<br>
> ./usr/local/bin/pktgen() [0x43f601]<br>
> /lib64/libc.so.6(+0x3feb0) [0x7fe22a28eeb0]<br>
> /lib64/libc.so.6(__libc_start_main+0x80) [0x7fe22a28ef60]<br>
> ./usr/local/bin/pktgen() [0x404bf5]<br>
> <br>
> <br>
> Testpmd works fine on the same card.<br>
> <br>
> Anyone can give me a suggestion?<br>
> <br>
> Best regards.<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</body>
</html>