From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0C4E1429AE; Fri, 21 Apr 2023 17:19:08 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D5D274113D; Fri, 21 Apr 2023 17:19:07 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 9586D410FB for ; Fri, 21 Apr 2023 17:19:06 +0200 (CEST) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 Subject: RE: [RFC] lib: set/get max memzone segments Date: Fri, 21 Apr 2023 17:19:05 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35D878AD@smartserver.smartshare.dk> In-Reply-To: <7647463.lvqk35OSZv@thomas> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [RFC] lib: set/get max memzone segments Thread-Index: Adl0YZEsJ9wxdLJpTHi5Zdx+s29jpwAAGw6w References: <20230419083634.2027689-1-ophirmu@nvidia.com> <1796765.8hzESeGDPO@thomas> <98CBD80474FA8B44BF855DF32C47DC35D878A7@smartserver.smartshare.dk> <7647463.lvqk35OSZv@thomas> From: =?UTF-8?B?TW9ydGVuIEJyw7hydXA=?= To: "Thomas Monjalon" Cc: "Ophir Munk" , , "Bruce Richardson" , "Devendra Singh Rawat" , "Alok Prasad" , "Matan Azrad" , "Lior Margalit" , "Tyler Retzlaff" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org PiBGcm9tOiBUaG9tYXMgTW9uamFsb24gW21haWx0bzp0aG9tYXNAbW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