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 C7FE2A2EFC for ; Tue, 17 Sep 2019 20:05:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2129B1BEEC; Tue, 17 Sep 2019 20:05:48 +0200 (CEST) Received: from clt-mbsout-02.mbs.boeing.net (clt-mbsout-02.mbs.boeing.net [130.76.144.163]) by dpdk.org (Postfix) with ESMTP id 1AB751BEE5 for ; Tue, 17 Sep 2019 20:05:45 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by clt-mbsout-02.mbs.boeing.net (8.14.4/8.14.4/DOWNSTREAM_MBSOUT) with SMTP id x8HI5i4V029740; Tue, 17 Sep 2019 14:05:44 -0400 Received: from XCH16-04-11.nos.boeing.com (xch16-04-11.nos.boeing.com [144.115.66.89]) by clt-mbsout-02.mbs.boeing.net (8.14.4/8.14.4/UPSTREAM_MBSOUT) with ESMTP id x8HI5dXW028682 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=FAIL) for ; Tue, 17 Sep 2019 14:05:39 -0400 Received: from XCH16-04-08.nos.boeing.com (144.115.66.86) by XCH16-04-11.nos.boeing.com (144.115.66.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.1713.5; Tue, 17 Sep 2019 11:05:38 -0700 Received: from XCH16-04-08.nos.boeing.com ([fe80::adbd:9838:ba8e:54f]) by XCH16-04-08.nos.boeing.com ([fe80::adbd:9838:ba8e:54f%2]) with mapi id 15.01.1713.004; Tue, 17 Sep 2019 11:05:38 -0700 From: "Tran (US), Katherine K" To: "users@dpdk.org" Thread-Topic: Help with mbuf and mempool Thread-Index: AdVtgoGu2Pd4iLcpTj2xwRAGW8D72w== Date: Tue, 17 Sep 2019 18:05:38 +0000 Message-ID: <8b2d784f4c1f4615ae0e9855a549c737@boeing.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-originating-ip: [137.137.12.6] x-tm-snts-smtp: 3D1DECA2FB2A892A4BDD10A3CBF3689D6D910BCFA65F82E7A926E72D60EAF86A2000:8 MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: [dpdk-users] Help with mbuf and mempool 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" Hello, I am trying to allocate an mbuf to use for IP fragmentation. When instantiating a mempool using rte_pktmbuf_pool_create() function, I keep getting the following error message. Error Message: * MEMPOOL: Cannot allocate tailq entry! Will you please let me know what I am missing? Regards, Katie --------------- Code --------------------- #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include struct rte_mempool *mempool = NULL; #define NB_MBUF 8192 #define AERO_FRAG_SIZE 1024 #define PATH_MAX 4096 //static struct rte_mempool *socket_direct_pool[RTE_MAX_NUMA_NODES]; int main(int argc, char **argv) { struct rte_mbuf *mbuf = NULL; struct node_queue_conf *qconf; char buf[PATH_MAX]; struct rte_mempool *mp; struct rte_lpm *lpm; struct rte_lpm6 *lpm6; struct rte_lpm_config lpm_config; /*KT Readded*/ int socket; unsigned lcore_id; unsigned elt_size; lcore_id = 1; socket = rte_lcore_to_socket_id(lcore_id); if (rte_lcore_is_enabled(lcore_id) == 0) printf("RTE LCORE is enabled!"); socket = rte_lcore_to_socket_id(lcore_id); if (socket == SOCKET_ID_ANY) socket = 0; elt_size = sizeof(struct rte_mbuf) + (unsigned)RTE_MBUF_DEFAULT_BUF_SIZE; //mp = rte_mempool_create_empty(buf, NB_MBUF, elt_size, RTE_MBUF_DEFAULT_BUF_SIZE, sizeof(struct rte_pktmbuf_pool_private), socket, 0); mp = rte_pktmbuf_pool_create(buf, NB_MBUF, 32, 0, RTE_MBUF_DEFAULT_BUF_SIZE, socket); /* if (socket_direct_pool[socket] == NULL) { RTE_LOG(INFO, IP_FRAG, "Creating direct mempool on socket %i\n", socket); snprintf(buf, sizeof(buf), "pool_direct_%i", socket); mp = rte_pktmbuf_pool_create(buf, NB_MBUF, 32, 0, AERO_FRAG_SIZE, socket); if (mp == NULL) { RTE_LOG(ERR, IP_FRAG, "Cannot create direct mempool\n"); return -1; } socket_direct_pool[socket] = mp; } */ //mbuf = rte_pktmbuf_alloc(mp); //fragment(mbuf, qconf); } ------------------------------------------ -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: fragment.c URL: