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 787B4A32A4 for ; Fri, 25 Oct 2019 17:29:12 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4205D1C2E8; Fri, 25 Oct 2019 17:29:12 +0200 (CEST) Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30056.outbound.protection.outlook.com [40.107.3.56]) by dpdk.org (Postfix) with ESMTP id D21B11C25E for ; Fri, 25 Oct 2019 17:29:10 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PmvFlY84nb18RZPGBRDl7FCSeAUrl2bD7QeIItPkVurE94rYDzNduBG4HemxrPn1WcdE4Vxw4tWzxU9FQEs40Dhpfe4qQVJNWLtlm/rfx8oTdPxjPr6BHqZ9o2hIEYaTSDxOkJSw7ACrGBsfovTlgP3UVw2O0Zjlt3Rd5mYfcVU7jCDBqwNLf9CY18lIymLk8fwhSrUYxpAjK4TVE2poMO9xNO2rWxcA2NTcSZUWAoOIAxCGkUO2o3mT1in8utzCmiF68gf04TH7nM9uleU5cxfS14InzEr7cych7MT8mM2Z+MNYbVY/zQhFfLgoY0mm+MoPBvuwfF3FPYSI8Oaq8g== 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=c+TAMDUtZ4lJLTUEaZr/GZolGlmLR+uLWHbyv15e1Us=; b=LK3uTzbx2LmnsVNVeKONU9XAtS8FadWMvCHDeDeFvjPfiO//e/HOJzZNcOm+uq54ykLmOq7cCrLgSP/sdr+U8RiT2D0iuA0a6z1wI0ETdZgNiCx+Jtutka63EKoCKPAmljoJGXG3woWDAo0Qw5IlIs+9lW697glsiNGGk6p4mQbUatb6xmVSjGUStqVU2xt+z95A/cn3IsMt64pCYOXjDi1aao5bp9B4+vLaSMbazzn1gDCTGZTS21HbpW9Uc9tsKggTx7QDE6M1jNtMMuenWuyGWAw2Tx9oz6OYc9FD/NF+cat8sskKLjj8J3Z2uj/AZGEBgFh+OlY+it+FwZ0tfw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=c+TAMDUtZ4lJLTUEaZr/GZolGlmLR+uLWHbyv15e1Us=; b=db7e7XOgEOZ6yJ1tNnQSjfbFaSykgXmLGu1wkgh/JpUYNp2iuFolOOCK7V2+kuE8PdrjpSb8godOnzCHD+0sDNQGpUXT+soTQarJujH0CMT+JgLWOjXK9x+T87xO/YsFfBhbv78lElSDmbfx6X4/dNIWfUqHhM6D8tYiq2CTCv8= Received: from DB6PR05MB3190.eurprd05.prod.outlook.com (10.175.233.17) by DB6PR05MB4647.eurprd05.prod.outlook.com (10.168.21.159) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2367.24; Fri, 25 Oct 2019 15:29:09 +0000 Received: from DB6PR05MB3190.eurprd05.prod.outlook.com ([fe80::fd92:dda6:f1d:6b3c]) by DB6PR05MB3190.eurprd05.prod.outlook.com ([fe80::fd92:dda6:f1d:6b3c%7]) with mapi id 15.20.2387.021; Fri, 25 Oct 2019 15:29:09 +0000 From: "Xueming(Steven) Li" To: Jerin Jacob CC: Olivier Matz , Andrew Rybchenko , dpdk-dev , Asaf Penso , Ori Kam , Stephen Hemminger Thread-Topic: [dpdk-dev] [RFC] mempool: introduce indexed memory pool Thread-Index: AQHVhLfZ9IJlmyroj0yPEAxoeGx99Kdea1+AgABizwCAADuvgIABHv5QgAG+/wCACZe10A== Date: Fri, 25 Oct 2019 15:29:09 +0000 Message-ID: References: <1571295301-25911-1-git-send-email-xuemingl@mellanox.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=xuemingl@mellanox.com; x-originating-ip: [180.162.53.30] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 65e18fe7-6d93-4f47-5d60-08d759601491 x-ms-traffictypediagnostic: DB6PR05MB4647:|DB6PR05MB4647: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-forefront-prvs: 02015246A9 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(396003)(136003)(39860400002)(366004)(346002)(376002)(189003)(13464003)(199004)(305945005)(316002)(11346002)(102836004)(7736002)(6916009)(446003)(26005)(74316002)(66946007)(66476007)(64756008)(66556008)(66066001)(66446008)(2906002)(53546011)(33656002)(25786009)(76116006)(3846002)(6116002)(54906003)(476003)(186003)(1411001)(6506007)(8936002)(99286004)(86362001)(81156014)(14444005)(256004)(9686003)(478600001)(14454004)(8676002)(71200400001)(5024004)(55016002)(81166006)(6436002)(6246003)(7696005)(5660300002)(76176011)(52536014)(229853002)(4326008)(486006)(71190400001)(21314003); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR05MB4647; H:DB6PR05MB3190.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ppItL8k032DpzTHc+8M7IK9Tcm/26f4rPj5LE+hdoDQV+uGvURpXzSjFPGA72bbXPGhhVk/tHeo5UGhnMBrAy1RWnBvpA7qLjEOxvKrJ9em4KA2xI/dH5Y2oDBPU8RQzhFZTaqiQJYeKBNVPXxDN4+mZU2WG7/33/wmMXQF4Kx5MlqnI69l17EaA3ofrftDWIj6ZhuQonFZKjED2dfISkpccILuvz3h1ntfXabQ5kHCfK2KPGhvJB86213LW7tN7phudYmd+hc3aq+a/n1KYuebpuSoDgWEoZnr0Dh79Ej3aYroeQiXpovpcvsHP14UJGjXp0NDS/xaTbA4nyOOV8HN/eXOneebJd5pvts9xQMlCkVkhyHtP8G837m3b4NnnTApfOM8Wo9n+33jWytLWKu6gVWlJON3Y5jgAun/4kBHqSDgmtF3YF3XXmOQXJBYP Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 65e18fe7-6d93-4f47-5d60-08d759601491 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Oct 2019 15:29:09.1928 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: +rx2/JdUFMvQazIOljwpckaR+euuJpyhSW+BJc2er46DKgE+DH9slRB+PnR3dJvTywNkpaIev7+XQT1LvOQ9hw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR05MB4647 Subject: Re: [dpdk-dev] [RFC] mempool: introduce indexed memory pool 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" DQo+RnJvbTogSmVyaW4gSmFjb2IgPGplcmluamFjb2JrQGdtYWlsLmNvbT4gDQo+U2VudDogU2F0 dXJkYXksIE9jdG9iZXIgMTksIDIwMTkgODoyOCBQTQ0KPg0KPk9uIEZyaSwgMTggT2N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