<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=us-ascii">
<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:Aptos;
panose-1:2 11 0 4 2 2 2 2 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:12.0pt;
font-family:"Aptos",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#467886;
text-decoration:underline;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Aptos",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="#467886" vlink="#96607D" style="word-wrap:break-word">
<div class="WordSection1">
<div id="mail-editor-reference-message-container">
<div>
<div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:11.0pt">> I'm having segfault issues when running pktgen in a virtualbox virtual
<br>
> machine.<br>
> <br>
> Here's what I run it in and some details about running the commands,<br>
> <br>
> and what I can do to get it to run correctly<br>
> <br>
> <br>
> pktgen version: git main brunch<br>
> <br>
> # git log<br>
> commit cc1d4c606dea3939adf75cc02de0f7cf2b28cf1e (HEAD -> main, tag: <br>
> pktgen-24.07.0, origin/main, origin/HEAD)<br>
> <br>
> dpdk version: dpdk-24.07<br>
> <br>
> [root@localhost dpdk-24.07]# ./usertools/dpdk-devbind.py -s<br>
> <br>
> Network devices using DPDK-compatible driver<br>
> ============================================<br>
> 0000:00:09.0 '82540EM Gigabit Ethernet Controller 100e' drv=igb_uio <br>
> unused=e1000,vfio-pci<br>
> 0000:00:0a.0 '82540EM Gigabit Ethernet Controller 100e' drv=igb_uio <br>
> unused=e1000,vfio-pci<br>
> <br>
> pktgen run command:<br>
> <br>
> gdb --args /root/pktgen-dpdk/usr/local/bin/pktgen -m 1.0<br>
> <br>
> Port DevName Index NUMA PCI Information Src MAC <br>
> Promiscuous<br>
> Thread 1 "pktgen" received signal SIGSEGV, Segmentation fault.<br>
> 0x000000000043c38b in dump_device_info () at ../app/pktgen-port-cfg.c:102<br>
> 102 pkt = &pinfo->seq_pkt[SINGLE_PKT];<br>
> <br>
> (gdb) bt<br>
> #0 0x000000000043c38b in dump_device_info () at <br>
> ../app/pktgen-port-cfg.c:102<br>
> #1 0x000000000043e3cf in pktgen_config_ports () at <br>
> ../app/pktgen-port-cfg.c:325<br>
> #2 0x000000000043aa23 in main (argc=1, argv=0x7fffffffe2d8) at <br>
> ../app/pktgen-main.c:465<br>
> <br>
> (gdb) n<br>
> 89 bus = rte_bus_find_by_device(dev.device);<br>
> (gdb)<br>
> 90 if (bus && !strcmp(rte_bus_name(bus), "pci")) {<br>
> (gdb)<br>
> 94 vend[0] = device[0] = '\0';<br>
> (gdb)<br>
> 95 sscanf(rte_dev_bus_info(dev.device), "vendor_id=%4s, <br>
> device_id=%4s", vend, device);<br>
> (gdb)<br>
> 97 rte_eth_dev_get_name_by_port(i, name);<br>
> (gdb)<br>
> 98 snprintf(buff, sizeof(buff), "%s:%s/%s", vend, <br>
> device, rte_dev_name(dev.device));<br>
> (gdb)<br>
> 90 if (bus && !strcmp(rte_bus_name(bus), "pci")) {<br>
> (gdb)<br>
> 101 pinfo = l2p_get_port_pinfo(i);<br>
> (gdb)<br>
> 102 pkt = &pinfo->seq_pkt[SINGLE_PKT];<br>
> (gdb)<br>
> <br>
> Thread 1 "pktgen" received signal SIGSEGV, Segmentation fault.<br>
> 0x000000000043c38b in dump_device_info () at ../app/pktgen-port-cfg.c:102<br>
> 102 pkt = &pinfo->seq_pkt[SINGLE_PKT];<br>
> (gdb) p pinfo<br>
> $3 = (port_info_t *) 0x0<br>
> (gdb)<br>
> <br>
> <br>
> <br>
<br>
Pktgen no longer has a maintainer, so it considered abandoned at this point.<br>
What does DPDK startup show? The problem is probably that virtualbox doesn't fully<br>
emulate the Intel NIC and the DPDK PMD doesn't like that.<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi Stephen,<o:p></o:p></p>
<p class="MsoNormal">(sorry if formatting is bad as MacOS Outlook has some issues with plain text replies)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I still maintain Pktgen, but mostly from GitHub issues @ <a href="https://github.com/pktgen/Pktgen-DPDK">
https://github.com/pktgen/Pktgen-DPDK</a> I do have very limited time, so not always the fastest responses.<o:p></o:p></p>
<p class="MsoNormal">DPDK gets a lot of emails and sometimes I miss these emails (need to improve my emails rule filter).<o:p></o:p></p>
<p class="MsoNormal">I do update dpdk.org Pktgen repo when I can, but it seemed like most of the requests were coming from GitHub.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">This person created an issue at Pktgen GitHub and also posted to this group at the same time. I did respond to his issue and try to work out a solution. I never test using a VM or containers, so it is difficult to help them sometimes.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If you wish you can remove Pktgen from dpdk.org, but if you do please include a link to the GitHub repository.<o:p></o:p></p>
<p class="MsoNormal">Thank you.<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:11.0pt"><br>
<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>