From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-la0-x22f.google.com (mail-la0-x22f.google.com [IPv6:2a00:1450:4010:c03::22f]) by dpdk.org (Postfix) with ESMTP id 2A579DE4 for ; Wed, 30 Oct 2013 01:17:37 +0100 (CET) Received: by mail-la0-f47.google.com with SMTP id ep20so500820lab.6 for ; Tue, 29 Oct 2013 17:18:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=c09HoAaI9VEPe37qq86qwQBDYu0g/vRxLAvJk7Xx+tU=; b=fPOD7Lido9fLZSCVuhb1b5SCinSxKWOhsSSW9ZfI9dXaLd+4CLEObTcoUw/LgTr0z7 cuxsBK7GBKQQTh/IsjdPDGuvPzOwczrn5l0BlaBjNV6dJaQHgHWOYBYJIh3tIQPd43SO PyAYzKLnArqKYF7vQsTh80W8EbKkLCgcNS4P9JpAaHCKSrTH7pegehXW/lkxQJTz7+1Y 7pgG27Xtoi4vRCBwdjpuzHzIzYU00r/NXxqdNhzpEm1nzr4R5LqHDozYXdbnCvkHmSMB zqCoSu2pKWHNveEx/ZHr5F1myUNZqn+AnF2bjTDNORWQhwlvRy1gBJB77ikuy+ySDA7O 5arw== MIME-Version: 1.0 X-Received: by 10.152.36.41 with SMTP id n9mr1189237laj.21.1383092308436; Tue, 29 Oct 2013 17:18:28 -0700 (PDT) Received: by 10.114.183.13 with HTTP; Tue, 29 Oct 2013 17:18:28 -0700 (PDT) Date: Wed, 30 Oct 2013 08:18:28 +0800 Message-ID: From: Jose Gavine Cueto To: dev@dpdk.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] rte_eth_rx_burst stops running on dpdk extlib X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Oct 2013 00:17:38 -0000 Hi, I'm writing a very simple packet dump application that can be described by the following diagram: --------------------------- | pktdump | ---------------------------- | PMD lib extension | | (extlib) | ---------------------------- | DPDK PMD lib | ---------------------------- pktdump - very simple app. built with gcc and linked with pmd lib extension and dpdk libs. pmd lib extension - an extension of dpdk pmd library, which provides some higher-level APIs dpdk pmd lib - pmd lib provided by Intel I have an issue where in when I run the pktdump app. it's lcore threads stops executing at varying number of times. Sometimes it doesn't even run. But this only happens if I use the PMD lib extension. On the other hand, if pktdump is directly built with pmd lib extension code while pmd lib extension is built as an extapp, it works very well. I wonder what's the difference, code-wise there is none, the only difference I can see is how they are built (extapp, extlib). The pmd lib extension's lcore threads basically do simple forwarding (rx -> tx). So rte_eth_rx_burst is called when receiving packets and rte_eth_tx_burst when transmitting packets. These runs on an lcore thread. snippet of code that runs on lcore: void burst_fwd(...){ num_rx = rte_eth_rx_burst(...) ... rte_eth_tx_burst(...) } Any tips on how to debug this, some quick inspections may help. Is there some specific build options for building libraries, because this only happens on extlib.