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 0EFCAA2EFC for ; Wed, 18 Sep 2019 16:31:36 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7D7DE1C2F8; Wed, 18 Sep 2019 16:31:35 +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 81F8E1C23A for ; Wed, 18 Sep 2019 16:31:34 +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 x8IEVVJG013455; Wed, 18 Sep 2019 10:31:32 -0400 Received: from XCH16-04-08.nos.boeing.com (xch16-04-08.nos.boeing.com [144.115.66.86]) by clt-mbsout-02.mbs.boeing.net (8.14.4/8.14.4/UPSTREAM_MBSOUT) with ESMTP id x8IEVMDt012236 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=FAIL); Wed, 18 Sep 2019 10:31:23 -0400 Received: from XCH16-04-08.nos.boeing.com (144.115.66.86) by XCH16-04-08.nos.boeing.com (144.115.66.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.1713.5; Wed, 18 Sep 2019 07:31:21 -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; Wed, 18 Sep 2019 07:31:21 -0700 From: "Tran (US), Katherine K" To: Suraj R Gupta , "Singh, Satish 1. (Nokia - IN/Bangalore)" CC: "users@dpdk.org" Thread-Topic: [dpdk-users] Help with mbuf and mempool Thread-Index: AdVtgoGu2Pd4iLcpTj2xwRAGW8D72wAVIYBgAAT3WIAAEHcyUA== Date: Wed, 18 Sep 2019 14:31:21 +0000 Message-ID: <2518123f7de445beb76130ef05921462@boeing.com> References: <8b2d784f4c1f4615ae0e9855a549c737@boeing.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [137.137.12.6] x-tm-snts-smtp: 149F2793FEBB7FB5E10E0BAC33310F74ADB52C356DD5CD3F3E41F69031EB9AA22000:8 MIME-Version: 1.0 X-TM-AS-GCONF: 00 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 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" SGksDQoNCkkgaGF2ZSBhbGxvY2F0ZWQgaHVnZXBhZ2VzLiBJIHN0aWxsIGdldCB0aGUgc2FtZSBl cnJvci4NCg0KSSBjaGFuZ2VkIHRoZSBjb2RlIHRvIHRoZSBmb2xsb3dpbmcgYnV0IEkgc3RpbGwg Z2V0IHRoZSBzYW1lIGVycm9yOg0KDQotLS0tLS0tLS0tLS0tIENvZGUgLS0tLS0tLS0tLS0tLS0t DQoNCnN0cnVjdCBydGVfbWVtcG9vbCAqbWVtcG9vbCA9IE5VTEw7DQojZGVmaW5lIE5CX01CVUYg ICAgICAgICAgIDgxOTINCiNkZWZpbmUgUEFUSF9NQVggICAgICAgIDQwOTYNCg0KaW50DQptYWlu KGludCBhcmdjLCBjaGFyICoqYXJndikNCnsNCg0KICAgICAgICAgICAgICAgc3RydWN0IHJ0ZV9t YnVmICptYnVmID0gTlVMTDsNCiAgICAgICAgICAgICAgIGNoYXIgYnVmW1BBVEhfTUFYXTsNCiAg ICAgICAgICAgICAgIHN0cnVjdCBydGVfbWVt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9wb29sX2NyZWF0ZShidWYsIE5C X01CVUYsIDMyLA0KICAgICAgICAgICAgICAgICAgICAgICAgMCwgQUVST19GUkFHX1NJWkUsIHNv Y2tldCk7DQoNCiAgICAgICAgICAgICAgICBpZiAobXAgPT0gTlVMTCkgew0KICAgICAgICAgICAg ICAgICAgICAgICAgUlRFX0xPRyhFUlIsIElQX0ZSQUcsICJDYW5ub3QgY3JlYXRlIGRpcmVjdCBt ZW1wb29sXG4iKTsNCiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAtMTsNCiAgICAgICAg ICAgICAgICB9DQogICAgICAgICAgICAgICAgc29ja2V0X2RpcmVjdF9wb29sW3NvY2tldF0gPSBt cDsNCg0KICAgICAgICB9DQoqLw0KICAgICAgICAvL21idWYgPSBydGVfcGt0bWJ1Zl9hbGxvYyht cCk7DQoNCiAgICAgICAgLy9mcmFnbWVudChtYnVmLCBxY29uZik7DQoNCg0KfQ0KDQotLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0NCg0KDQotLS0tLS0tLS0tLS0tLSBu ZXh0IHBhcnQgLS0tLS0tLS0tLS0tLS0NCkFuIGVtYmVkZGVkIGFuZCBjaGFyc2V0LXVuc3BlY2lm aWVkIHRleHQgd2FzIHNjcnViYmVkLi4uDQpOYW1lOiBmcmFnbWVudC5jDQpVUkw6IDxodHRwOi8v bWFpbHMuZHBkay5vcmcvYXJjaGl2ZXMvdXNlcnMvYXR0YWNobWVudHMvMjAxOTA5MTcvM2U3Zjc5 MWIvYXR0YWNobWVudC5jPg0KDQoNCi0tDQpUaGFua3MgYW5kIFJlZ2FyZHMNClN1cmFqIFIgR3Vw dGENCg==