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 40C8BA2EFC for ; Wed, 18 Sep 2019 06:12:44 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A21941BF4B; Wed, 18 Sep 2019 06:12:43 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140109.outbound.protection.outlook.com [40.107.14.109]) by dpdk.org (Postfix) with ESMTP id 07C3D1BF3A for ; Wed, 18 Sep 2019 06:12:42 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jfpip7jC8T1taJNlGaNf9JfRiZOqaLGNPKDid5KHxFqa/aQ7r/6mVK7MMsO+7XAYOlYTrGwpUY7OCIs4b87Ku9ZSJVU2XecCbflwJ7E83LdM+XjkAbMsuDI9s2n6UQJ+9e9K8di6YYoF2WcVjazyrwsZB213fHssdCwY1PF9hWrvg4p8lZnpPIhSj7Tep4Ngijn2VmqtB/u7TnCrtfPyncnjpxmqPu9uraAkbbpcCoyNa61d5rbSMv0NvJ/HB1niomnIAufz3Eg+xE3PXEFfjYX/igUOCxWFQsCM+fFSTWiODFo3Vjmixv005wRyTzOZ4wQ7AxqO3gD5QLM2tyLHAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FyP5IeMy/+PZDTWVJDe/7lsn8m7zz7Ok+TZWEOEi3Os=; b=R/RCD1NK5uMxeYz/dE8cm4jFfqRKev2zZVYttKhdsd1+JpB62oyEsHiXUkE2+S/gcCmvapO0l9jOmyPRPIf5WMMNy9qZl91jW1qbyWWw+UXddWnZLEWrAgR2xSmS6RSQel/+1DzYfFVC06iifIlmzEYotMow5DL9E5oVtxmThJ48kZ0HpgcRV3zSNTc7HZwHnO6pWhDuCCDP2KfZjjAz1P/t3w3JEiXWyX4eBumC0ILkwNhpHQZHzpY9rCoFT7QbqHzkStUeFMZ3rnrgP/F1aXcEYhM8cdz37qEfQ9kb2oc8lgu9PKm5s+1Sm87hRVtMJhxGrt/Ery3Hfx1kLD+rgA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nokia.com; dmarc=pass action=none header.from=nokia.com; dkim=pass header.d=nokia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FyP5IeMy/+PZDTWVJDe/7lsn8m7zz7Ok+TZWEOEi3Os=; b=meeoS+FNt3yt0MN5K/HB+Ve07pW9wJAxtnDx9XXqo8z/c0agnuQWLexc0yaeDBNdx9kz8VHJ9GqpMl6nW7V2cpM1o70cgNCRDi1Uz9uawhxBWt/Lp6lvNzfvZT8gtcTi5iQ9VcHRAo/mFs2snMh/aTOK1p9UByboAfItoBiJCzU= Received: from DB7PR07MB6059.eurprd07.prod.outlook.com (20.178.107.204) by DB7PR07MB4475.eurprd07.prod.outlook.com (52.135.139.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2284.17; Wed, 18 Sep 2019 04:12:41 +0000 Received: from DB7PR07MB6059.eurprd07.prod.outlook.com ([fe80::9558:d957:804c:9c07]) by DB7PR07MB6059.eurprd07.prod.outlook.com ([fe80::9558:d957:804c:9c07%4]) with mapi id 15.20.2284.009; Wed, 18 Sep 2019 04:12:41 +0000 From: "Singh, Satish 1. (Nokia - IN/Bangalore)" To: "Tran (US), Katherine K" , "users@dpdk.org" Thread-Topic: Help with mbuf and mempool Thread-Index: AdVtgoGu2Pd4iLcpTj2xwRAGW8D72wAVIYBg Date: Wed, 18 Sep 2019 04:12:41 +0000 Message-ID: References: <8b2d784f4c1f4615ae0e9855a549c737@boeing.com> In-Reply-To: <8b2d784f4c1f4615ae0e9855a549c737@boeing.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=satish.1.singh@nokia.com; x-originating-ip: [131.228.32.181] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 57fc5b40-879b-40fa-95e2-08d73bee7337 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600167)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:DB7PR07MB4475; x-ms-traffictypediagnostic: DB7PR07MB4475: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-forefront-prvs: 01644DCF4A x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(4636009)(136003)(346002)(396003)(376002)(39860400002)(366004)(189003)(199004)(13464003)(6506007)(99286004)(66066001)(9686003)(76176011)(7696005)(71190400001)(71200400001)(316002)(110136005)(102836004)(186003)(26005)(53546011)(33656002)(446003)(11346002)(476003)(3846002)(6436002)(6116002)(486006)(74316002)(6246003)(2501003)(81166006)(81156014)(305945005)(8676002)(8936002)(229853002)(55016002)(2906002)(478600001)(14454004)(6306002)(25786009)(86362001)(64756008)(66446008)(7736002)(66556008)(66476007)(76116006)(256004)(52536014)(5660300002)(66946007); DIR:OUT; SFP:1102; SCL:1; SRVR:DB7PR07MB4475; H:DB7PR07MB6059.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nokia.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: Dcws2C0ddcjGxMfpZtdfGfb1VVV6k8e4DyG9F9kvKBjCAoTaoTRVVB+67L39iQVcuxHkMJkE7e2fmG4mb7mAHSTY/7U0mgtRAbKNd7BM66lYUUEhPF1tCwJ6aaV2Ty0yanZJe8vogMpN42St5TOWyOlWudUnt9+bJrUKS6MdHpeaSN1X5VplLevNflYeKndLwLblxWqzBJrvy/T30YJFX1Qe4Wq+P8wQ1+iXtKEITN9VDowjUwBVn5MI0jgT7r+xdyvsm9lii4LiOIulSWrtAiRA3+b/dd0nmx6cdkenDr7JULqLxP5vZxJFVXjO+T6miFiJEvnwvmQPIcE6obFuesoBO4EdVZDp0KYqpQ6vQF8u9pJjvPhWLOWZTs8moRgN6YwR+hu/2IflD4/mnI1K8TbwreJtgf9Aok6p/OcuNCc= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 57fc5b40-879b-40fa-95e2-08d73bee7337 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Sep 2019 04:12:41.6113 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Hfyher41J7SJpHyokJx34e/2iRshg4N1krfLdCxh1xeCg2ajBBuSPYjtWv9HIrgNp2c+dPReW7rwELjzeeG0ttg+AjXDTSsihcVPyiyyQu4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR07MB4475 Subject: Re: [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" Hi, You are using Socket 0, and might be there is no memory in this socket or n= o memory left in this socket 0. Try with SOCKET_ID_ANY. Regards, SATISH SINGH -----Original Message----- From: users On Behalf Of Tran (US), Katherine K Sent: Tuesday, September 17, 2019 11:36 PM To: users@dpdk.org Subject: [dpdk-users] Help with mbuf and mempool Hello, I am trying to allocate an mbuf to use for IP fragmentation. When instantia= ting 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 =3D 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 =3D 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 =3D 1; socket =3D rte_lcore_to_socket_id(lcore_id); if (rte_lcore_is_enabled(lcore_id) =3D=3D 0) printf("RTE LCORE is enabled!"); socket =3D rte_lcore_to_socket_id(lcore_id); if (socket =3D=3D SOCKET_ID_ANY) socket =3D 0; elt_size =3D sizeof(struct rte_mbuf) + (unsigned)RTE_MBUF_DEFAULT_B= UF_SIZE; //mp =3D rte_mempool_create_empty(buf, NB_MBUF, elt_size, RTE_MBUF_= DEFAULT_BUF_SIZE, sizeof(struct rte_pktmbuf_pool_private), socket, 0); mp =3D rte_pktmbuf_pool_create(buf, NB_MBUF, 32, 0, RTE_MBUF_DEFAUL= T_BUF_SIZE, socket); /* if (socket_direct_pool[socket] =3D=3D NULL) { RTE_LOG(INFO, IP_FRAG, "Creating direct mempool on socket %= i\n", socket); snprintf(buf, sizeof(buf), "pool_direct_%i", socket); mp =3D rte_pktmbuf_pool_create(buf, NB_MBUF, 32, 0, AERO_FRAG_SIZE, socket); if (mp =3D=3D NULL) { RTE_LOG(ERR, IP_FRAG, "Cannot create direct mempool= \n"); return -1; } socket_direct_pool[socket] =3D mp; } */ //mbuf =3D rte_pktmbuf_alloc(mp); //fragment(mbuf, qconf); } ------------------------------------------ -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: fragment.c URL: