From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by dpdk.org (Postfix) with ESMTP id 4C0F4282 for ; Fri, 9 Jan 2015 15:12:11 +0100 (CET) Received: by mail-vc0-f175.google.com with SMTP id hy10so3225150vcb.6 for ; Fri, 09 Jan 2015 06:12:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=9QoWnHVIpq+/GKZbBYSLD30bHEMrAzMuO34ht7OjSyU=; b=MC0n1lpX7TZlMXGJyyiXGRiict1DBIpDrU24kgsap7X8qPUhpwi9PMH+xCaA8Ld70Y /1OLeV7kaMePr9nfhXo+R4wfOR+fAOb601AFve8YyRLXWobJH0XV2L8OHls8sTax8crx j5lTlNG8AEfhQx+YSvrrGkQHhIr8LQ1IJSDQ6QX+TT1fAjzCfzrTorzsnDpIunXJ25BH DyWSCEYN9Y60Hv6AgcPD7U+ATK0c73ZrVCTXc0CjYPvEGng41RH3zyXwImOztI44xF7W 5bE2t9cUzqrCadikALvSDmX1cuCV/b6SMSJVr5AQc95XEfq5LRbwl43zUq9axIKw7yoL 8Hsg== X-Gm-Message-State: ALoCoQmluyO9pxpAE2OTxuPLkz+PKAlLudplvsw3R+lRW4PAtjZa/NISyaw4Y/42yRDm9vM5E+OF MIME-Version: 1.0 X-Received: by 10.220.17.144 with SMTP id s16mr9893604vca.10.1420812730740; Fri, 09 Jan 2015 06:12:10 -0800 (PST) Received: by 10.52.96.225 with HTTP; Fri, 9 Jan 2015 06:12:10 -0800 (PST) Date: Fri, 9 Jan 2015 14:12:10 +0000 Message-ID: From: Alejandro Lucero To: dev Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] ret_pktmbuf_pool_init problem with opaque_arg 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: Fri, 09 Jan 2015 14:12:11 -0000 Inside this function mbuf_data_room_size is set to a default value if opaque_arg is null and it should be set to the value pointed by opaque_arg if not null. Current implementation is using not the value but with the pointer itself. I think this: roomsz = (uint16_t)(uintptr_t)opaque_arg; should be something like this: roomsz = *(uint16_t *)opaque_arg;