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 68FEFA2EFC for ; Thu, 19 Sep 2019 23:55:54 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A3A611F1C9; Thu, 19 Sep 2019 23:55:53 +0200 (CEST) Received: from clt-mbsout-01.mbs.boeing.net (clt-mbsout-01.mbs.boeing.net [130.76.144.162]) by dpdk.org (Postfix) with ESMTP id E036D1F1C8 for ; Thu, 19 Sep 2019 23:55:51 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by clt-mbsout-01.mbs.boeing.net (8.14.4/8.14.4/DOWNSTREAM_MBSOUT) with SMTP id x8JLtoJq029828; Thu, 19 Sep 2019 17:55:50 -0400 Received: from XCH16-04-11.nos.boeing.com (xch16-04-11.nos.boeing.com [144.115.66.89]) by clt-mbsout-01.mbs.boeing.net (8.14.4/8.14.4/UPSTREAM_MBSOUT) with ESMTP id x8JLtgE2029779 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=FAIL); Thu, 19 Sep 2019 17:55:42 -0400 Received: from XCH16-04-09.nos.boeing.com (144.115.66.87) 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; Thu, 19 Sep 2019 14:55:41 -0700 Received: from XCH16-04-09.nos.boeing.com ([fe80::f92e:6c3f:238b:debc]) by XCH16-04-09.nos.boeing.com ([fe80::f92e:6c3f:238b:debc%2]) with mapi id 15.01.1713.004; Thu, 19 Sep 2019 14:55:41 -0700 From: "Tran (US), Katherine K" To: Suraj R Gupta , Arvind Narayanan CC: "Singh, Satish 1. (Nokia - IN/Bangalore)" , "users@dpdk.org" Thread-Topic: [dpdk-users] Help with mbuf and mempool Thread-Index: AdVtgoGu2Pd4iLcpTj2xwRAGW8D72wAVIYBgAAT3WIAAEHcyUAAPGzGAAACiRgAADoeOAA== Date: Thu, 19 Sep 2019 21:55:41 +0000 Message-ID: References: <8b2d784f4c1f4615ae0e9855a549c737@boeing.com> <2518123f7de445beb76130ef05921462@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: A0E0E4FA34574F422024F34633AD6398AE36D41147E17C5F40125067F376CA652000: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" VGhhbmsgeW91IOKAkyBUaGUgcnRlX2VhbF9pbml0KCkgZnVuY3Rpb24gaGVscGVkIHRvIHJlc29s dmUgdGhlIGNvbXBpbGUgZXJyb3IuDQoNCkZyb206IFN1cmFqIFIgR3VwdGEgW21haWx0bzpzdXJh anJndXB0YUBpaXRoLmFjLmluXQ0KU2VudDogV2VkbmVzZGF5LCBTZXB0ZW1iZXIgMTgsIDIwMTkg Nzo1NSBBTQ0KVG86IEFydmluZCBOYXJheWFuYW4gPHdlYmd1cnUyNjg4QGdtYWlsLmNvbT4NCkNj OiBUcmFuIChVUyksIEthdGhlcmluZSBLIDxrYXRoZXJpbmUuay50cmFuQGJvZWluZy5jb20+OyBT aW5naCwgU2F0aXNoIDEuIChOb2tpYSAtIElOL0JhbmdhbG9yZSkgPHNhdGlzaC4xLnNpbmdoQG5v a2lhLmNvbT47IHVzZXJzQGRwZGsub3JnDQpTdWJqZWN0OiBSZTogW2RwZGstdXNlcnNdIEhlbHAg d2l0aCBtYnVmIGFuZC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RydWN0IHJ0ZV9tZW1wb29sICpzb2Nr ZXRfZGlyZWN0X3Bvb2xbUlRFX01BWF9OVU1BX05PREVTXTsNCg0KaW50DQptYWluKGludCBhcmdj LCBjaGFyICoqYXJndikNCnsNCg0KICAgICAgICBzdHJ1Y3QgcnRlX21idWYgKm1idWYgPSBOVUxM Ow0KICAgICAgICBzdHJ1Y3Qgbm9kZV9xdWV1ZV9jb25mICpxY29uZjsNCg0KICAgICAgICBjaGFy IGJ1ZltQQVRIX01BWF07DQogICAgICAgIHN0cnVjdCBydGVfbWVtcG9vbCAqbXA7DQogICAgICAg IHN0cnVjdCBydGVfbHBtICpscG07DQogICAgICAgIHN0cnVjdCBydGVfbHBtNiAqbHBtNjsNCiAg ICAgICAgc3RydWN0IHJ0ZV9scG1fY29uZmlnIGxwbV9jb25maWc7IC8qS1QgUmVhZGRlZCovDQog ICAgICAgIGludCBzb2NrZXQ7DQogICAgICAgIHVuc2lnbmVkIGxjb3JlX2lkOw0KDQogICAgICAg IHVuc2lnbmVkIGVsdF9zaXplOw0KDQogICAgICAgIGxjb3JlX2lkID0gMTsNCiAgICAgICAgc29j a2V0ID0gcnRlX2xjb3JlX3RvX3NvY2tldF9pZChsY29yZV9pZCk7DQoNCiAgICAgICAgaWYgKHJ0 ZV9sY29yZV9pc19lbmFibGVkKGxjb3JlX2lkKSA9PSAwKQ0KICAgICAgICAgICAgICAgIHByaW50 ZigiUlRFIExDT1JFIGlzIGVuYWJsZWQhIik7DQoNCiAgICAgICAgc29ja2V0ID0gcnRlX2xjb3Jl X3RvX3NvY2tldF9pZChsY29yZV9pZCk7DQogICAgICAgIGlmIChzb2NrZXQgPT0gU09DS0VUX0lE X0FOWSkNCiAgICAgICAgICAgICAgICBzb2NrZXQgPSAwOw0KDQogICAgICAgIGVsdF9zaXplID0g c2l6ZW9mKHN0cnVjdCBydGVfbWJ1ZikgKyAodW5zaWduZWQpUlRFX01CVUZfREVGQVVMVF9CVUZf U0laRTsNCg0KICAgICAgICAv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