<div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span style="line-height:1.5;scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)">Hi, </span></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span style="line-height:1.5;scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)"><br></span></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span style="line-height:1.5;scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)">I have an issue with <span style="display: inline !important; background-color: rgb(255, 255, 255);">rte_eth_rx_burst() for</span> IGC poll mode driver never returning any packets and need some advice.</span><div style="line-height:1.5;scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)"><br style="scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)"></div><div style="line-height:1.5;scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)"><span style="scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)">I have this network port:</span></div><div style="line-height:1.5;scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)"><span style="scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)">09:00.0 Ethernet controller: Intel Corporation Ethernet Controller I225-V (rev 03)</span></div><div style="line-height:1.5;scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)"><br style="scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)"></div><div style="line-height:1.5;scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)"><span style="scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)">Bound to igb_uio:</span></div><div style="line-height:1.5;scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)"><span style="scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)">Network devices using DPDK-compatible driver</span></div><div style="line-height:1.5;scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)"><span style="scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)">============================================</span></div><div style="line-height:1.5;scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)"><span style="scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)">0000:09:00.0 'Ethernet Controller I225-V 15f3' drv=igb_uio unused=igc</span></div><div style="line-height:1.5;scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)"><br style="scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)"></div><div style="line-height:1.5;scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)"><span style="scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)">I'm testing this both with testpmd and my own app, which works fine with other drivers such as net/ena and net/i40e. I'm using single RX/TX queue pair with default configs with <span>rte_eth_promiscuous_enable() and </span><span style="font-family:system-ui, sans-serif;display:inline !important">rte_eth_allmulticast_enable().</span></span></div><div style="line-height:1.5;scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)"><br style="scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)"></div><div style="line-height:1.5;scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)"><span style="scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)"><span style="display:inline !important">The device seems to rte_eth_dev_start() fine, and rte_eth_stats_get() seem to be detecting inbound packets. Below is the output from testpmd:</span></span></div><div style="line-height:1.5;scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)"><span style="scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)"><span style="display:inline !important"><br></span></span></div><blockquote style="border-left: 3px solid rgb(200, 200, 200); border-top-color: rgb(200, 200, 200); border-right-color: rgb(200, 200, 200); border-bottom-color: rgb(200, 200, 200); padding-left: 10px; color: rgb(102, 102, 102);"><div><span style="font-family: Menlo, Consolas, "Courier New", monospace; font-size: 7.5pt; line-height: normal;">Press enter to exit</span><div><span style="font-family: Menlo, Consolas, "Courier New", monospace; font-size: 7.5pt; line-height: normal;">eth_igc_interrupt_action():  Port 0: Link Up - speed 1000 Mbps - full-duplex</span></div><div><br></div><div><span style="font-family: Menlo, Consolas, "Courier New", monospace; font-size: 7.5pt; line-height: normal;">Port 0: link state change event</span></div><div><span style="font-family: Menlo, Consolas, "Courier New", monospace; font-size: 7.5pt; line-height: normal;">^CTelling cores to stop...</span></div><div><span style="font-family: Menlo, Consolas, "Courier New", monospace; font-size: 7.5pt; line-height: normal;">Waiting for lcores to finish...</span></div><div><br></div><div><span style="font-family: Menlo, Consolas, "Courier New", monospace; font-size: 7.5pt; line-height: normal;">  ---------------------- Forward statistics for port 0  ----------------------</span></div><div><span style="font-family: Menlo, Consolas, "Courier New", monospace; font-size: 7.5pt; line-height: normal;">  RX-packets: 129            RX-dropped: 800           RX-total: 929</span></div><div><span style="font-family: Menlo, Consolas, "Courier New", monospace; font-size: 7.5pt; line-height: normal;">  TX-packets: 0              TX-dropped: 0             TX-total: 0</span></div><div><span style="font-family: Menlo, Consolas, "Courier New", monospace; font-size: 7.5pt; line-height: normal;">  ----------------------------------------------------------------------------</span></div><div><br></div><div><span style="font-family: Menlo, Consolas, "Courier New", monospace; font-size: 7.5pt; line-height: normal;">  +++++++++++++++ Accumulated forward statistics for all ports+++++++++++++++</span></div><div><span style="font-family: Menlo, Consolas, "Courier New", monospace; font-size: 7.5pt; line-height: normal;">  RX-packets: 129            RX-dropped: 800           RX-total: 929</span></div><div><span style="font-family: Menlo, Consolas, "Courier New", monospace; font-size: 7.5pt; line-height: normal;">  TX-packets: 0              TX-dropped: 0             TX-total: 0</span></div><div><span style="font-family: Menlo, Consolas, "Courier New", monospace; font-size: 7.5pt; line-height: normal;">  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++</span></div><div><br></div><span style="font-family: Menlo, Consolas, "Courier New", monospace; font-size: 7.5pt; line-height: normal;">Done.</span><br></div></blockquote></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span style="line-height:1.5;scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)"><span style="scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)">However, rte_eth_rx_burst() never returns anything, neither in testpmd nor in my own app.</span></span><br><span style="line-height:1.5;scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)"><span style="scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)"><br></span></span></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span style="line-height:1.5;scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)"><span style="scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)">In my own app, I log both <span>rte_eth_stats_get() and</span> non-zero xstats from rte_eth_xstats_get_by_id():</span></span><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><blockquote style="border-left: 3px solid rgb(200, 200, 200); border-top-color: rgb(200, 200, 200); border-right-color: rgb(200, 200, 200); border-bottom-color: rgb(200, 200, 200); padding-left: 10px; color: rgb(102, 102, 102);"><div style="font-family: Arial, sans-serif; font-size: 14px;"><div><span style="font-family: Menlo, Consolas, "Courier New", monospace; font-size: 7.5pt; line-height: normal;">07:02:13.406873186 INF stats.rx                                : 0</span></div><div><span style="font-family: Menlo, Consolas, "Courier New", monospace; font-size: 7.5pt; line-height: normal;">07:02:13.406892616 INF dev_stats.ipackets                      : 78</span></div><div><span style="font-family: Menlo, Consolas, "Courier New", monospace; font-size: 7.5pt; line-height: normal;">07:02:13.406903636 INF dev_stats.opackets                      : 0</span></div><div><span style="font-family: Menlo, Consolas, "Courier New", monospace; font-size: 7.5pt; line-height: normal;">07:02:13.406914166 INF dev_stats.imissed                       : 0</span></div><div><span style="font-family: Menlo, Consolas, "Courier New", monospace; font-size: 7.5pt; line-height: normal;">07:02:13.406924536 INF dev_stats.ierrors                       : 0</span></div><div><span style="font-family: Menlo, Consolas, "Courier New", monospace; font-size: 7.5pt; line-height: normal;">07:02:13.406934116 INF dev_stats.oerrors                       : 0</span></div><div><span style="font-family: Menlo, Consolas, "Courier New", monospace; font-size: 7.5pt; line-height: normal;">07:02:13.406943956 INF dev_stats.rx_nombuf                     : 0</span></div><div><span style="font-family: Menlo, Consolas, "Courier New", monospace; font-size: 7.5pt; line-height: normal;">07:02:13.407247777 INF xstats rx_good_packets                  : 78</span></div><div><span style="font-family: Menlo, Consolas, "Courier New", monospace; font-size: 7.5pt; line-height: normal;">07:02:13.407257147 INF xstats rx_good_bytes                    : 17205</span></div><div><span style="font-family: Menlo, Consolas, "Courier New", monospace; font-size: 7.5pt; line-height: normal;">07:02:13.407265267 INF xstats rx_size_64_packets               : 6</span></div><div><span style="font-family: Menlo, Consolas, "Courier New", monospace; font-size: 7.5pt; line-height: normal;">07:02:13.407274627 INF xstats rx_size_65_to_127_packets        : 31</span></div><div><span style="font-family: Menlo, Consolas, "Courier New", monospace; font-size: 7.5pt; line-height: normal;">07:02:13.407285757 INF xstats rx_size_128_to_255_packets       : 22</span></div><div><span style="font-family: Menlo, Consolas, "Courier New", monospace; font-size: 7.5pt; line-height: normal;">07:02:13.407297537 INF xstats rx_size_256_to_511_packets       : 16</span></div><div><span style="font-family: Menlo, Consolas, "Courier New", monospace; font-size: 7.5pt; line-height: normal;">07:02:13.407309127 INF xstats rx_size_512_to_1023_packets      : 3</span></div><div><span style="font-family: Menlo, Consolas, "Courier New", monospace; font-size: 7.5pt; line-height: normal;">07:02:13.407321327 INF xstats rx_broadcast_packets             : 8</span></div><div><span style="font-family: Menlo, Consolas, "Courier New", monospace; font-size: 7.5pt; line-height: normal;">07:02:13.407331597 INF xstats rx_multicast_packets             : 64</span></div><div><span style="font-family: Menlo, Consolas, "Courier New", monospace; font-size: 7.5pt; line-height: normal;">07:02:13.407346357 INF xstats rx_total_packets                 : 78</span></div><div><span style="font-family: Menlo, Consolas, "Courier New", monospace; font-size: 7.5pt; line-height: normal;">07:02:13.407355547 INF xstats rx_total_bytes                   : 17205</span></div><div><span style="font-family: Menlo, Consolas, "Courier New", monospace; font-size: 7.5pt; line-height: normal;">07:02:13.407364127 INF xstats rx_sent_to_host_packets          : 78</span></div><span style="font-family: Menlo, Consolas, "Courier New", monospace; font-size: 7.5pt; line-height: normal;">07:02:13.407375347 INF xstats interrupt_assert_count           : 1</span><br></div></blockquote><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span style="display:inline !important">Still, rte_eth_rx_burst() never returns anything. </span></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span style="display:inline !important"><br></span></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span style="display:inline !important">It's worthwhile to note that <span style="display: inline !important; background-color: rgb(255, 255, 255);">rte_eth_rx_burst()</span> works fine when I, instead of net/igc, use net/ena (with ENA card) or net/i40e (Intel x710 card).</span><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span style="display:inline !important"><br></span></div><div style="font-family: Arial, sans-serif; font-size: 14px;">The debug log from EAL and net/igc is attached, in case that helps.</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span style="display:inline !important">There's a warning "<span>igc_rx_init(): forcing scatter mode", but I've already tried changing my mbuf sizes so that the warning goes away but that also didn't help.</span></span></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span style="scrollbar-width:thin">Any advice?</span><br><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">Thanks,</div><div style="font-family: Arial, sans-serif; font-size: 14px;">Fabio</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div>