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 867E0A3168 for ; Thu, 17 Oct 2019 11:46:51 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E978E1E8EF; Thu, 17 Oct 2019 11:46:50 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by dpdk.org (Postfix) with ESMTP id 8DABE1E8BE for ; Thu, 17 Oct 2019 11:46:49 +0200 (CEST) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Date: Thu, 17 Oct 2019 11:46:48 +0200 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35C60B85@smartserver.smartshare.dk> In-Reply-To: <20191016072242.3dr7i7xmdokztjd4@platinum> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: rte_mempool_get_bulk uses either cache or common pool Thread-Index: AdWD8oNmQeokT16uQNW5uLW+UwWtCAA0WPow References: <98CBD80474FA8B44BF855DF32C47DC35C60B78@smartserver.smartshare.dk> <20191016072242.3dr7i7xmdokztjd4@platinum> From: =?utf-8?B?TW9ydGVuIEJyw7hydXA=?= To: "Olivier Matz" Cc: "Andrew Rybchenko" , "dpdk-dev" Subject: Re: [dpdk-dev] rte_mempool_get_bulk uses either cache or common 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" PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBPbGl2aWVyIE1hdHogW21haWx0 bzpvbGl2aWVyLm1hdHpANndpbmQuY29tXQ0KPiBTZW50OiBXZWRuZ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