From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from emea01-db3-obe.outbound.protection.outlook.com (mail-db3on0081.outbound.protection.outlook.com [157.55.234.81]) by dpdk.org (Postfix) with ESMTP id BA5328D97 for ; Tue, 14 Jun 2016 13:38:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=UL9CeHiVaDyk4O6IGDMc3Y143mOwujZIUuZ1AuY6oyw=; b=N2KxuVLdxhtMcyg9EQsTVWL8JYbCG5goeG3Fms1fKRUYUM9w/1HmR1UX9J15KUjKpo5vKQ7epbCCHvHqCl0Eb6aMC8rWSAi78qlKMycmTyAo0jncw2ZbFNtpnWQoa85IbGZRifU2ZspE5vjFthDkv21z7aWD3Tb++6ohLW+9Qtw= Received: from DB5PR0401MB2054.eurprd04.prod.outlook.com (10.166.11.137) by DB5PR0401MB2053.eurprd04.prod.outlook.com (10.166.11.136) with Microsoft SMTP Server (TLS) id 15.1.517.8; Tue, 14 Jun 2016 11:38:44 +0000 Received: from DB5PR0401MB2054.eurprd04.prod.outlook.com ([10.166.11.137]) by DB5PR0401MB2054.eurprd04.prod.outlook.com ([10.166.11.137]) with mapi id 15.01.0517.011; Tue, 14 Jun 2016 11:38:44 +0000 From: Shreyansh Jain To: David Hunt , "dev@dpdk.org" CC: "olivier.matz@6wind.com" , "viktorin@rehivetech.com" , "jerin.jacob@caviumnetworks.com" Thread-Topic: [PATCH v10 1/3] mempool: support external mempool operations Thread-Index: AQHRxiGkqXkNZzcpYUKRre9bmPpdaZ/o1XuQ Date: Tue, 14 Jun 2016 11:38:18 +0000 Deferred-Delivery: Tue, 14 Jun 2016 11:37:34 +0000 Message-ID: References: <1465571806-22008-1-git-send-email-david.hunt@intel.com> <1465897575-37638-1-git-send-email-david.hunt@intel.com> <1465897575-37638-2-git-send-email-david.hunt@intel.com> In-Reply-To: <1465897575-37638-2-git-send-email-david.hunt@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; x-originating-ip: [192.88.169.1] x-ms-office365-filtering-correlation-id: a4333ac9-d313-4d54-2617-08d394487124 x-microsoft-exchange-diagnostics: 1; DB5PR0401MB2053; 6:uOgyC7K7XLJF8LiSgB4P08es2DiqhRsslrwexCintZJByi4opZNbZeyc9003jhY3qaIifScG0x3lbvPDNOj7qpqs55X3uhmT6mFTZk3TSZPCXcirYSlmLDYH/wDuqqToOqwLNgyLTRedgG7lzvasVmjUYGa8dW+n/lotfvK4DOs05sI/9ZtcwsuODGzOETQCZAA0QhOnjgUC9hpYSSVtDbUx3RwuQoJQvQfIeerv1O8NntkdKuLRZNNPjTWZ1hZ6DmKER4eMPf/ZeLsJ32npyrPbWY5gpliKv2+UT/w5r439C84YjUZZ2WuR3n4E9sWtPov6CYz9KM7sq8auUcE0TA==; 5:Ddj0jczG+XvJeKGjQRHL1g+bD10XxD/108vQnTQrpEN9+A9jf/nro3rcjBuL6BRQ/6YpSw+hQ+Nns/2CQVkIrnDMyUKxlVTgyffDNB/fxd/U9VzKtHnAL0l2jG9VrI4bp70ghN9Z4pfuk/fg/9vfkQ==; 24:efR+yuRHvzqK0UOu2/eJy3p5rY6KWP+pQnUopg3fTFjDUlSVqB6kF37xY82gfxlm4jGgWxXV4iBj7Oa9VBncTrfPCvpIc4TGqBNl4QimDog=; 7:fJVJGbOEmSqmqFDgU9NkziaGxkWj/gLOuVWJVEqUfwm0V1A3hSLLiUUQHUbBbHb9VS/lEaP6lxBgssLFScLi8+hYpLt1k1yvJKhmqnhWAf2gxQBBBBXsTlCQ0QuxF4xRKD+ekF/RKRates7pxmxGZ/GfcES/1Thc75rYJzftlqsCZikEDiq1ZcZV70iNVnpCrhtuPcNQrHoNI/ziIrt1rpE7tVKw657E8SwcdzBRejQ= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DB5PR0401MB2053; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(185117386973197)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:DB5PR0401MB2053; BCL:0; PCL:0; RULEID:; SRVR:DB5PR0401MB2053; x-forefront-prvs: 09730BD177 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(377454003)(199003)(189002)(13464003)(122556002)(86362001)(4326007)(66066001)(106116001)(2906002)(106356001)(105586002)(586003)(3846002)(11100500001)(102836003)(6116002)(10400500002)(2501003)(8936002)(9686002)(19580405001)(5004730100002)(77096005)(5002640100001)(19580395003)(76176999)(54356999)(74316001)(2950100001)(189998001)(2900100001)(87936001)(76576001)(33656002)(3280700002)(101416001)(5008740100001)(92566002)(81166006)(81156014)(8676002)(50986999)(97736004)(3660700001)(5003600100002)(68736007)(5001770100001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB5PR0401MB2053; H:DB5PR0401MB2054.eurprd04.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; CAT:NONE; LANG:en; CAT:NONE; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Jun 2016 11:38:44.4010 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR0401MB2053 Subject: Re: [dpdk-dev] [PATCH v10 1/3] mempool: support external mempool operations X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jun 2016 11:38:46 -0000 Hi, > -----Original Message----- > From: David Hunt [mailto:david.hunt@intel.com] > Sent: Tuesday, June 14, 2016 3:16 PM > To: dev@dpdk.org > Cc: olivier.matz@6wind.com; viktorin@rehivetech.com; > jerin.jacob@caviumnetworks.com; Shreyansh Jain ; > David Hunt > Subject: [PATCH v10 1/3] mempool: support external mempool operations >=20 > Until now, the objects stored in a mempool were internally stored in a > ring. This patch introduces the possibility to register external handlers > replacing the ring. >=20 > The default behavior remains unchanged, but calling the new function > rte_mempool_set_handler() right after rte_mempool_create_empty() allows > the user to change the handler that will be used when populating > the mempool. >=20 > This patch also adds a set of default ops (function callbacks) based > on rte_ring. >=20 > Signed-off-by: Olivier Matz > Signed-off-by: David Hunt Acked-by: Shreyansh Jain