<html>
<head>
<base href="https://bugs.dpdk.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8" class="bz_new_table">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - rte_eth_rx_burst is blocking in libpcap pmd on no packets"
href="https://bugs.dpdk.org/show_bug.cgi?id=1526">1526</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>rte_eth_rx_burst is blocking in libpcap pmd on no packets
</td>
</tr>
<tr>
<th>Product</th>
<td>DPDK
</td>
</tr>
<tr>
<th>Version</th>
<td>24.03
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>Normal
</td>
</tr>
<tr>
<th>Component</th>
<td>ethdev
</td>
</tr>
<tr>
<th>Assignee</th>
<td>dev@dpdk.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ofer.d@claroty.com
</td>
</tr>
<tr>
<th>Target Milestone</th>
<td>---
</td>
</tr></table>
<p>
<div class="bz_comment_block">
<pre class="bz_comment_text">Hi,
I see a weird behaviour when using libpcap pmd, that when no packets getting to
interface, the call to rte_eth_rx_burst is blocking.
I see the following stack:
#0 0x00007f17d496cbcf in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x000055f290d6ef84 in pcap_wait_for_frames_mmap ()
#2 0x000055f290d71db0 in pcap_read_linux_mmap_v3 ()
#3 0x000055f290d50c8f in pcap_next ()
#4 0x000055f290714263 in eth_pcap_rx ()
#5 0x000055f29018f2f2 in rte_eth_rx_burst (nb_pkts=64, rx_pkts=0x7ffec08382b0,
queue_id=<optimized out>, port_id=<optimized out>) at
/usr/local/stow/dpdk/include/rte_ethdev.h:6110
I looked in libpcap and it indeed seems that pcap_read_linux_mmap_v3 is
blocking, and what is meant to be called, when using dpdk, is
pcap_dpdk_dispatch (which indeed seems non blocking).
Can you please help debug and understand why is it behaving like that?
Thanks ahead!
</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://bugs.dpdk.org/show_bug.cgi?id=1526">
<meta itemprop="name" content="View bug">
</div>
<meta itemprop="description" content="Bugzilla bug update notification">
</div>
</body>
</html>