From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-la0-x230.google.com (mail-la0-x230.google.com [IPv6:2a00:1450:4010:c03::230]) by dpdk.org (Postfix) with ESMTP id F2D7E156 for ; Tue, 5 Nov 2013 17:46:20 +0100 (CET) Received: by mail-la0-f48.google.com with SMTP id ec20so2793278lab.7 for ; Tue, 05 Nov 2013 08:47:14 -0800 (PST) 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 :cc:content-type; bh=i4NqfVQYa+AyEUjP/qDy3/M/IXIkUfOllrqeLzXakUw=; b=CZEc7pTZTxqVY3b7fiB0GewNmU/UmW2ncTG4WNZBv3fY09mCRePIMY4UAQTOaEDL3Y o6acUYxEcoAt1Zwx4Nvj8RGey1/t8KJ1ZY8oImVo9p8+IRcBP65pOaGKK3LIVI2xLbcE 4lw4rZcj8gKG7sRGjGO3oNNiUoVV6txHY0jnFJh3XZrWo94LdtJZ9O7Izq9tmkQyzxZK S9I3lE/z4iXFUkAVRLIa5BtmmClAFtZsdWnkwbvzz13B8Qh/ebhiV7WiuSLJRTlnKt0k tKsf9JPb/Gv/87AVpkSx/RBMqOSEl3gKVa0/nRsPjvAkRcNyMhdko7QB8Ll9oVwIwJyi 9u5Q== MIME-Version: 1.0 X-Received: by 10.112.198.199 with SMTP id je7mr671831lbc.53.1383670033770; Tue, 05 Nov 2013 08:47:13 -0800 (PST) Received: by 10.114.183.13 with HTTP; Tue, 5 Nov 2013 08:47:13 -0800 (PST) In-Reply-To: <201311051218.27016.thomas.monjalon@6wind.com> References: <20131105103325.GA25808@debian> <201311051218.27016.thomas.monjalon@6wind.com> Date: Wed, 6 Nov 2013 00:47:13 +0800 Message-ID: From: Jose Gavine Cueto To: Thomas Monjalon Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] preallocation of void ** obj_p of rte_ring_dequeue 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, 05 Nov 2013 16:46:21 -0000 Hi Cyril, Your'e welcome, and by the way the multiprocess example of simple_mp seems confusing here: static int lcore_recv(__attribute__((unused)) void *arg) { unsigned lcore_id = rte_lcore_id(); printf("Starting core %u\n", lcore_id); while (!quit){ *void *msg;* if (*rte_ring_dequeue(recv_ring, &msg*) < 0){ usleep(5); continue; } printf("core %u: Received '%s'\n", lcore_id, (char *)msg); rte_mempool_put(message_pool, msg); } return 0; } It seems that it isn't allocating msg here, or maybe I'm just missing something ? Cheers, Pepe On Tue, Nov 5, 2013 at 7:18 PM, Thomas Monjalon wrote: > 05/11/2013 11:33, Cyril Cressent : > > On a side note, it looks like the API reference page for rte_ring.h is > > broken? It's missing a lot of functions. I'll look into it if I get a > > chance. > > http://dpdk.org/doc/api/rte__ring_8h.html#func-members > > It is fixed by the patch I just sent. Thanks for reporting. > -- > Thomas > -- To stop learning is like to stop loving.