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 F3341A31F3 for ; Fri, 18 Oct 2019 12:10:49 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AFD1B1C230; Fri, 18 Oct 2019 12:10:49 +0200 (CEST) Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50059.outbound.protection.outlook.com [40.107.5.59]) by dpdk.org (Postfix) with ESMTP id 9EED31C203 for ; Fri, 18 Oct 2019 12:10:48 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hxoA1lvotICqGY+hQQlKd0TuvbWW8LIyXVD3u0taGrBn5suTNDgbopSfkZbAxyij9CYQXrZZZmUNUIxraQv0S+VSTvHUflWObK0ACyTDazmrRuwD58x6yh7nVIpPG1/Puo0HEneQI0ccnAGDVWlGzbGhs5ZGrAhgQIKSF5Bh0js6+rtQ5lKg5Pv4OGReWVn0CNtc5syn8VBgI3Ar9VIBv91nFuyly6oLKvX/rWl7nX8WeI7KR+gznYkMF4dRWaAGtbj7udee+snHA4zLWvwwJS3QDbjBl7rPUhjbFF/YLl+lww4AqR3iptS85v5vzw2UtfCkbA8hMr6AGk/WldjlqQ== 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=3d4mHA3ZVXR9OMjtVfoazfVGgYeswcku2eTZCiJzjrk=; b=H93svSmjFVi9VmJlFsYJlX8VMfgnN0Skp5jaMrzVyAHkIzYVyM3wSS+8FXxqrSDVNV+mrqKksf3CZdnLj2z6bbI3p18WIctG0nsmQqTvTZJhI1ktvQOxj/k5Zf2wMrKbPDJwka67Nwx/4CzKUBvrvBcOZ78+hZV7SOsxqvVzBRXOqHmkNerSbhhYg118pErGtC5B+0S0G2Qz2K0SzSbOwaUiaqZ12j6EwI9kzofRtNpr6cyTfm61u7yhKw8vkiXuFtlZGHsvBEqAzkfenWcG2VQQNyw8WtQtwgvl4Dq3xlHkWugVektFRfsXMgohe9cx3g4VIQPJ5B8R6BN3J/CtJA== 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=3d4mHA3ZVXR9OMjtVfoazfVGgYeswcku2eTZCiJzjrk=; b=d2ez4gwKq9XFxHwUkEuypGtPjFxfbKkwC6SIaPX2xt9NST7dCkfzHY/cZoLYUQgbrtpZ931EHTfKXwCNrF+ydnIwudsuYmLeAso/6rEGLlhB83rgLBQh/0+ze0gslIsAbzxHTGX81JPr/crjSi4EB/s+cjYHBkTKGih0IxFybk8= Received: from DB6PR05MB3190.eurprd05.prod.outlook.com (10.175.233.17) by DB6PR05MB4695.eurprd05.prod.outlook.com (10.168.20.159) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2347.21; Fri, 18 Oct 2019 10:10:47 +0000 Received: from DB6PR05MB3190.eurprd05.prod.outlook.com ([fe80::dc9f:b2a5:f845:771]) by DB6PR05MB3190.eurprd05.prod.outlook.com ([fe80::dc9f:b2a5:f845:771%7]) with mapi id 15.20.2347.024; Fri, 18 Oct 2019 10:10:47 +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+AgABizwCAADuvgIABHv5Q Date: Fri, 18 Oct 2019 10:10:46 +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.54.112] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ef73ed07-06cb-4034-c8ac-08d753b371d1 x-ms-office365-filtering-ht: Tenant x-ms-traffictypediagnostic: DB6PR05MB4695:|DB6PR05MB4695: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-forefront-prvs: 01949FE337 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(39860400002)(366004)(346002)(376002)(396003)(136003)(189003)(199004)(13464003)(486006)(54906003)(33656002)(2906002)(7736002)(229853002)(305945005)(3846002)(6436002)(74316002)(6116002)(446003)(11346002)(5660300002)(8936002)(476003)(55016002)(8676002)(6246003)(478600001)(71200400001)(71190400001)(25786009)(6916009)(86362001)(66446008)(99286004)(66946007)(64756008)(66556008)(81166006)(81156014)(66066001)(7696005)(76116006)(256004)(316002)(66476007)(186003)(53546011)(6506007)(52536014)(14454004)(26005)(102836004)(1411001)(9686003)(76176011)(4326008)(21314003); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR05MB4695; 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: JDJFTARM44F5aX2NsayzobYM36jL5WP660Z53ayRQdagC2U/PqzbTRSneqOwlC4o0/h5i1mZFN/JONr9yf7JGJkVKevctBsmmDiISsDRZ37ZHusujKpAgknixa+tIgjHtNSQ+DdO0z3VI2NW385fnhbzKspcGt0OxlollrE9tE0t38TRR3UCXUvgiL2ZmeB21LyboH0jrj5wXfMSGGkx+MQFCtBcsI08B3+AZMJ9DxbOeypxyYmCroomll1eGPFiegwk+bqt375D0eiZpZDwDJ4gNJaj6m1bqnQnOfiLi9WKDJqfXEUb2bcH/ucQsnsOEju1hqOYqw06cXLC+GKJzJSBvwuuWB0SG9n3wtux1RKPjQnXUuQEcjqNahSXi/fnIzSx4YCoAWr4Tbj/xyw/UVGE3o8JoxbuB/FmV6esFH4= 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: ef73ed07-06cb-4034-c8ac-08d753b371d1 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Oct 2019 10:10:46.8970 (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: g8L8jQdoKywhWdV2WAjOvuSvCtbNaecKZtm/UciGdVkirNlCWgveo24EuDOaE0dUKZxhkpQmkZHYNHgTPmQIrw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR05MB4695 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" PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBKZXJpbiBKYWNvYiA8amVyaW5q YWNvYmtAZ21haWwuY29tPg0KPiBTZW50OiBGcmlkYXksIE9jdG9iZXIgMTgsIDIwMTkgMTI6NDEg QU0NCj4gVG86IFh1ZW1pbmcoU3RldmVuKSBMaSA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