From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id BCF12A00C5 for ; Fri, 5 Jun 2020 18:21:11 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D0C851D513; Fri, 5 Jun 2020 18:21:10 +0200 (CEST) Received: from mail-il1-f193.google.com (mail-il1-f193.google.com [209.85.166.193]) by dpdk.org (Postfix) with ESMTP id 8C6571C221 for ; Fri, 5 Jun 2020 18:21:09 +0200 (CEST) Received: by mail-il1-f193.google.com with SMTP id v11so10176903ilh.1 for ; Fri, 05 Jun 2020 09:21:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=RScrVrn/SgP+1lW+AQ/46yH+ucLEgooW88xoHuOpby0=; b=TM1LGiVYGRpNazLpoeLzdeSCQ9aT1YO5oh1+m85NvbLWeBRZz1G0Xd8/ZWjhp8jrQC iu1Chx+3N8mtfPMT0IYp+TlRdsqDgANvIBazyw8PK8DCmPgcuOVpB7iYOJztnz6uVfDF stpSz9Jg2743bDQBwC5pzzKU/myrwCyl1OJimlByPBvhXlYxvR37fjO2UXZ+i81+E0G9 GfyB+uXxxU/cjbJiaIaC39WpFzJn7SPJrMKo6axf1uC/4vfvET4w7rOprDhwRTHsM0ei aJQHdFm3zhOFT41U20aAj3gWX0pEM57E026oPb6leDh+0Vocrp1fKfC9w8W2QdXttqBt pIiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=RScrVrn/SgP+1lW+AQ/46yH+ucLEgooW88xoHuOpby0=; b=g/FLDwN+rHdXYcCwfWuEEYNar8UkA5decfcTWxK//0bMMOYeC52nv6e3q0eK4CYpGv A5wVrSof2O/7qnWzJuGBMxMQyQK5WPEY/R0hsajoovKauEbyy7dXyZNu+Z4P3xr+rQAo 7H0rroF5jBEUTQBay56DXjDHRGlhI5gUPmtuvK+F6PdINTwk48BfLYThefE/nrNSHEy8 Vk3jbqO+zexxsxj0eta4ogs4sik42czU7Fa3mlJCoDxroKDtm4g/ROn1kuOwrKAXCLTb YCe4QzMr6TBl5cqZE8HGFzjsJPSKwD6EEhs4bNU9xWBsE4hLtOJYZ10PWFTCfXUCv/l5 AkpQ== X-Gm-Message-State: AOAM531ZF+myIeHQhxWRP+O38JX0ospBUmdW08ZWqUQoF8jEVo1C2mEi 121J65o8LKjZxkMN2Fa7oEacUmwnD4LTwhwZdV/Oq+X1 X-Google-Smtp-Source: ABdhPJySXmrxhkyO0JEjJqhmdqT7zAilaHdE/pVd9cxMRXAQ+GsBqPnxHx/zwKwJ6ZxS6nWU6xl1v2r5u0wQgI8CoCc= X-Received: by 2002:a92:d1d0:: with SMTP id u16mr9151548ilg.2.1591374068424; Fri, 05 Jun 2020 09:21:08 -0700 (PDT) MIME-Version: 1.0 References: <20200604102319.146abf16@hermes.lan> In-Reply-To: From: David Aldrich Date: Fri, 5 Jun 2020 17:20:57 +0100 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] 'MBUF: error setting mempool handler' X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" May I restate my problem please as there was an error in my original message: I am using some DPDK application code that worked with DPDK 2.2.0. I am trying to port it to DPDK 18.08, running on Centos 7. The code gives error: MBUF: error setting mempool handler This error occurs in the call to rte_pktmbuf_pool_create() below: for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) { if (rte_lcore_is_enabled(lcore_id) == 0) continue; iCpuSocket = rte_lcore_to_socket_id(lcore_id); if (iCpuSocket == SOCKET_ID_ANY) iCpuSocket = 0; // Preparing direct memory pool per Socket if (socket_direct_pool[iCpuSocket] == NULL) { mp = rte_pktmbuf_pool_create( buf, NB_MBUF, 32, 0, RTE_MBUF_DEFAULT_BUF_SIZE, iCpuSocket); if (mp == NULL) { return -1; } socket_direct_pool[iCpuSocket] = mp; } I don't know how to fix this. I have seen other people reporting this when building the dpdk application code as a library (i.e. there were missing symbols), but I am building directly as an executable. Any suggestions please? On Fri, Jun 5, 2020 at 10:43 AM David Aldrich wrote: > On Thu, 4 Jun 2020 17:50:18 +0100 >> David Aldrich wrote: >> >> >> >> You should not be using 8.08 is not a Long Term Stable release. It is not >> supported. >> >> > I'm using 18.08 LTS > > >> You should be using rte_pktmbuf_pool_create() rather than >> rte_mempool_create(). >> Lots has changed in the years since 2.2.0 >> > > Sorry, I made a mistake. The error: > > MBUF: error setting mempool handler > > occurs in: > > mp = rte_pktmbuf_pool_create( buf, > NB_MBUF, > 32, > 0, > RTE_MBUF_DEFAULT_BUF_SIZE, > iCpuSocket); > > Any advice please? > > On Thu, Jun 4, 2020 at 6:23 PM Stephen Hemminger < > stephen@networkplumber.org> wrote: > >> On Thu, 4 Jun 2020 17:50:18 +0100 >> David Aldrich wrote: >> >> > I am using some DPDK application code that worked with DPDK 2.2.0. I am >> > trying to port it to DPDK 18.08. The code gives error: >> > >> > MBUF: error setting mempool handler >> > >> > >> > I guess the app code that causes this is: >> > >> > ptRxQueInfo->pool = rte_mempool_create(buf, >> > > nb_mbuf/2, >> > > MBUF_SIZE, >> > > 0, >> > > sizeof(struct >> rte_pktmbuf_pool_private), >> > > >> > > rte_pktmbuf_pool_init, >> > > NULL, >> > > rte_pktmbuf_init, >> > > NULL, >> > > iCpuSocket, >> > > 0) >> > >> > >> > I really don't know how to fix this. Any suggestions please? >> >> You should not be using 8.08 is not a Long Term Stable release. It is not >> supported. >> >> You should be using rte_pktmbuf_pool_create() rather than >> rte_mempool_create(). >> Lots has changed in the years since 2.2.0 >> >>