From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by dpdk.org (Postfix) with ESMTP id 6DBAF159 for ; Tue, 1 Apr 2014 13:52:13 +0200 (CEST) Received: by mail-wi0-f177.google.com with SMTP id cc10so4962237wib.4 for ; Tue, 01 Apr 2014 04:53:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=iwfHDPAAPQ9z7Z2UO4/f+s3NM8sR8NG8RHFGlA2zUTI=; b=yCK7hsX6NlGoLWX3NW9/afBR3YCY8sVLca1BqWFXYREu2k9h37MOeccthqRZo6aIB1 QReOUKqcRt1Fi6DD4avVo0d6cmtW7Y8lTXKKm6oenw66MhaPqs/3/oFWMqGm2tqHvFkP DmFaYlqvaLAAoxZdjFAwDpxhSr2UyKxxIh95bnfsw2H5VubD3IZVT9Y2x+L8hQ9VG3TC j2obw9t4aj5rBodY4ercqvBbaP8EoHWlJTdCXTkL4W8T8Ia+GadabhsapeHwTFWg0tHC NcbEtHtxqs8+ncpGI6aEQjsopdXl/d6YYIMvsOrsa2Xz1XDI3d7MnUjPhXgIo4GqnpNr IhMA== MIME-Version: 1.0 X-Received: by 10.180.24.72 with SMTP id s8mr1382151wif.20.1396353227842; Tue, 01 Apr 2014 04:53:47 -0700 (PDT) Received: by 10.194.237.227 with HTTP; Tue, 1 Apr 2014 04:53:47 -0700 (PDT) In-Reply-To: References: Date: Tue, 1 Apr 2014 14:53:47 +0300 Message-ID: From: Meir Tseitlin To: dev@dpdk.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] rte_pktmbuf_alloc fails 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: Tue, 01 Apr 2014 11:52:13 -0000 I think I found the problem - it was solved by manually calling rte_pktmbuf_free for each packet. It seems that rte_pktmbuf_free is not automatically called from within rte_eth_tx_burst if packets are sent to pcap device. Is it possible? On Tue, Apr 1, 2014 at 2:08 PM, Meir Tseitlin wrote: > Hi, > > I modified l2fwd example to "inject" additional Ethernet packets into the > flow by allocating them with rte_pktmbuf_alloc. > > I do succeed to call rte_pktmbuf_alloc when none (or almost none) packets > where forwarded since application start, but it fails when application is > busy handling traffic (even light traffic). > > Following Intel developers guide suggestion about thread safety, I am > calling this function within the same CPU core I am about to send the > packet. > > Any ideas? > > Thanks > Meir Tseitlin > -- Kind regards, *Meir Tseitlin* Software architect*Mobile:* +972.54.7647417 *Fax:* +972.72.2812365 *Email:* meir.tech@gmail.com *http://il.linkedin.com/in/meirts * *Independent consultant* See who we know in commonWant a signature like this?