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 4C21AA046B for ; Wed, 24 Jul 2019 09:09:23 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 88A281C10D; Wed, 24 Jul 2019 09:09:22 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 864961C02B for ; Wed, 24 Jul 2019 09:09:20 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x6O709IP026716; Wed, 24 Jul 2019 00:09:19 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=6xGDbU+vgFUaRU9WTsLL71hfOikStXNMEBmyP1rCBR0=; b=xgaNFo0wVQjq44V/TEUOFaIksGJlWyehj3dSwkVm8UUGJvGAKvyplls+ILNjObytGT6J 8y5rWWOafZECFNJQOtsAc9Bh8eb5BP8hmino8Smj518IBX0gszxfjz/pvG/qIF5j78Lc tFkulNQlc7MTjusYhHldXZ+lFmtkFhEo27vNx2dtEL3vl8pIpM6U7abRvC2qIDsw2vo5 KKoPCHn5GkF8VoE90LfQsZMn0ejVcItv4Cu9nwNJffhzIT4zoJX28WAXugBBwX5FRMRD M4r+HG/3qIOypVyVG4IuID4pgm5DjQktkka9YOcWwicdydbtofxvNnn1Zwr8EVE3R9Lv Kg== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0b-0016f401.pphosted.com with ESMTP id 2tx624tu2d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 24 Jul 2019 00:09:19 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 24 Jul 2019 00:09:17 -0700 Received: from NAM04-CO1-obe.outbound.protection.outlook.com (104.47.45.57) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Wed, 24 Jul 2019 00:09:17 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dsqjWTHovzIkhBPwmB5vdKykMX4dfYMCV7hXIJZMngJSyOeto/B20TAh6fXSMK53uCnzNrtw0D0N5X5F32D3unxo8fX8pxgCUrbJEtae5FJBGeN+JuUGsCpAbk3msAQhyR0AXp/UgORwnp1vm5ZUH9vQ4RK77bjOzUAPo/4XqnyKmeJLhJahI3mYUbgAXaNlCIPSc4E6EqInZtkKTvjeeqTq6Iwt7Reut1Zx9Hz42VgVZeCrGI2OVEu8Gqm6rTSKhFEPbPqjxQuHZTSxCDLLckTF5sjY4WmCEZAOnp6AmC3Hjfc0P1G8reclNewhTVwSkp1V1i8gMgn1CGmKgj0MLA== 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=6xGDbU+vgFUaRU9WTsLL71hfOikStXNMEBmyP1rCBR0=; b=WtJhdK+EmqOeQ5Y2URWm3S7elCDsl+n6qD9NuU8V0jcIJDRH4e6fki44XPI+eYXJhgp1gjH0GzRPiRUrJHhTD/lAFNYdgP+mOMzWo8V7W64ER4b6lAqLNTqgTT3P16pm+UposIOqgwNrPNbm7T16CJtI8HoBxndOGAsR2X2DZAHx4hN42ts/UUEcBEW5/V/8ntgFfqERx/WdvnzLynnykwNReSvuh7FdnTJ+Hwk06s16O63JRYVwkZNwFKBp3hDALK/ZqrluaNhBKoHNIyebsJy2Y/Cw7Y6Nr7pCSirTJ+mrLzY9jj2jCA1rFnGsrbyq10c0iRY+25Bz+qtiRa8s5A== ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=marvell.com;dmarc=pass action=none header.from=marvell.com;dkim=pass header.d=marvell.com;arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector2-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6xGDbU+vgFUaRU9WTsLL71hfOikStXNMEBmyP1rCBR0=; b=fNywQfJg9WCIqCgNn55cSUBnMmzUqdxu7pgR+sICK1gThwQevsLmE1lNBlZ8+8T8ZyrSjPErM09oJ6wZsArWv16xJ8POE4UEXTNGTdZz0QEZld0A9GbfXXXzB5qTBmTUXcjgcUs6uOkjprc/nW3IuifAAzha8esQp7YOOO1qUaY= Received: from CH2PR18MB3381.namprd18.prod.outlook.com (52.132.246.204) by CH2PR18MB3144.namprd18.prod.outlook.com (52.132.246.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2094.17; Wed, 24 Jul 2019 07:09:15 +0000 Received: from CH2PR18MB3381.namprd18.prod.outlook.com ([fe80::189c:3889:b207:8922]) by CH2PR18MB3381.namprd18.prod.outlook.com ([fe80::189c:3889:b207:8922%5]) with mapi id 15.20.2115.005; Wed, 24 Jul 2019 07:09:15 +0000 From: Vamsi Krishna Attunuru To: Andrew Rybchenko , "dev@dpdk.org" CC: "thomas@monjalon.net" , Jerin Jacob Kollanukkaran , "olivier.matz@6wind.com" , "ferruh.yigit@intel.com" , "anatoly.burakov@intel.com" , "Kiran Kumar Kokkilagadda" Thread-Topic: [dpdk-dev] [PATCH v8 1/5] mempool: populate mempool with page sized chunks of memory Thread-Index: AQHVQRjlH/HjuNGYjEOIEzqTLatfH6bYC6KAgAATbeCAAHnHAIAAv2oQ Date: Wed, 24 Jul 2019 07:09:15 +0000 Message-ID: References: <20190717090408.13717-1-vattunuru@marvell.com> <20190723053821.30227-1-vattunuru@marvell.com> <20190723053821.30227-2-vattunuru@marvell.com> <4b9cec50-348a-3359-04ee-3b567b49aa9f@solarflare.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [14.140.231.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: cad383a6-4bbd-4135-bb0f-08d71005d698 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:CH2PR18MB3144; x-ms-traffictypediagnostic: CH2PR18MB3144: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 0108A997B2 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(346002)(396003)(366004)(136003)(376002)(39860400002)(13464003)(199004)(189003)(6436002)(8676002)(99286004)(54906003)(2501003)(33656002)(8936002)(81166006)(256004)(110136005)(81156014)(71200400001)(53936002)(316002)(71190400001)(76176011)(14444005)(25786009)(55016002)(7696005)(478600001)(9686003)(26005)(53546011)(66066001)(5660300002)(14454004)(2906002)(446003)(486006)(66446008)(55236004)(66476007)(76116006)(68736007)(6506007)(64756008)(186003)(66556008)(66946007)(229853002)(7736002)(4326008)(6246003)(305945005)(6116002)(52536014)(476003)(11346002)(86362001)(3846002)(74316002)(102836004)(107886003); DIR:OUT; SFP:1101; SCL:1; SRVR:CH2PR18MB3144; H:CH2PR18MB3381.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: Qb0NVfjyMGgqcvL4Vz0T7udJ1Q9i1Jq7a9h+Jb+illgk/uDOBidDMZfZXJHZ11AKMWzT+76fqfoigdLMfNUt65yVVu6e2yDuwyuFOLMNgId2BpJl/XPU6ypjp/ryrn+zThtV2TKfMXQbFaWTd97EbpX6VGfHHsXJh319yfG1mh5E/vk1adWOZJCH8mM3JxC0kA79zf1/MhF7VD1oPDbSCRFLtfHNJyrjzCBRXAVV6r2fwSpG3VY7DFaqVejXC+45D6WZFfutOvFdhJUomvKZExUAtYDWrVahP1ODR6cx+/+4xiRocCmt+MXa3OAC0jfmCYKIgvLI6b2YbRUAsbv80mD9tmHeRxAniCNTWU1W1nmbgDFrY2KRLTZT/k90+Ihso1oVXYgm9BwI+PvF6ZXTiCT+SRnUXBY0XLR1FuRDG2c= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: cad383a6-4bbd-4135-bb0f-08d71005d698 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jul 2019 07:09:15.6099 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: vattunuru@marvell.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR18MB3144 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:5.22.84,1.0.8 definitions=2019-07-24_02:2019-07-23,2019-07-24 signatures=0 Subject: Re: [dpdk-dev] [PATCH v8 1/5] mempool: populate mempool with page sized chunks of memory X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQW5kcmV3IFJ5Y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iA9IG1wLT5oZWFkZXJfc2l6ZSArIG1wLT5lbHRfc2l6ZSArIG1wLT50cmFpbGVyX3NpemU7 DQorICAgICAgIGlmICh0b3RhbF9lbHRfc3ogPiBwZ19zeikNCisgICAgICAgICAgICAgICByZXR1 cm4gcmV0Ow0KDQorICAgICAgIGZvciAobXpfaWQgPSAwLCBuID0gbXAtPnNpemU7IG4gPiAwOyBt el9pZCsrLCBuIC09IHJldCkgew0KDQotICAgICAgICAgICAgICAgcnRlX21lbXBvb2xfb3BfY2Fs Y19tZW1fc2l6ZV9kZWZhdWx0KG1wLCBuLCBwZ19zaGlmdCwNCi0gICAgICAgICAgICAgICAgICAg ICAgICAgICAgJmNodW5rX3NpemUsICZhbGlnbik7DQorICAgICAgICAgICAgICAgcmV0ID0gcnRl X21lbXBvb2xfb3BzX2NhbGNfbWVtX3NpemUobXAsIG4sIHBnX3NoaWZ0LA0KKyAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAmbWluX2NodW5rX3NpemUsICZhbGlnbik7DQorDQorICAgICAg ICAgICAgICAgaWYgKHJldCA8IDApDQogICAgICAgICAgICAgICAgICAgICAgICBnb3RvIGZhaWw7 DQoNCisgICAgICAgICAgICAgICBpZiAobWluX2NodW5rX3NpemUgPiBwZ19zeikNCisgICAgICAg ICAgICAgICAgICAgICAgIG1pbl9jaHVua19zaXplID0gcGdfc3o7DQoNCkNoYW5nZXMgbG9vayBm aW5lLj8NCg0K