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 60FAE42AF7; Wed, 17 May 2023 14:24:00 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 35866406B7; Wed, 17 May 2023 14:24:00 +0200 (CEST) Received: from dkmailrelay1.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 998D94067B for ; Wed, 17 May 2023 14:23:58 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesys.local [192.168.4.10]) by dkmailrelay1.smartsharesystems.com (Postfix) with ESMTP id 6EA3A22539; Wed, 17 May 2023 14:23:58 +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: [PATCH] lib/mempool : rte_mempool_avail_count, fixing return bigger than mempool size X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Wed, 17 May 2023 14:23:56 +0200 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35D87929@smartserver.smartshare.dk> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH] lib/mempool : rte_mempool_avail_count, fixing return bigger than mempool size Thread-Index: AdmItjrv0A3a+8vnSbG+Z02n9JxqNwAA08aA References: <20230516134146.480047-1-yasinncaner@gmail.com> <20230516082349.041c0e68@hermes.local> <98CBD80474FA8B44BF855DF32C47DC35D87923@smartserver.smartshare.dk> <98CBD80474FA8B44BF855DF32C47DC35D87926@smartserver.smartshare.dk> <98CBD80474FA8B44BF855DF32C47DC35D87927@smartserver.smartshare.dk> From: =?UTF-8?B?TW9ydGVuIEJyw7hydXA=?= To: "David Marchand" , "Yasin CANER" Cc: "Stephen Hemminger" , , "Yasin CANER" , "Olivier Matz" , "Andrew Rybchenko" 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 PiBGcm9tOiBEYXZpZCBNYXJjaGFuZCBbbWFpbHRvOmRhdmlkLm1hcmNoYW5kQHJlZGhhdC5jb21d DQo+IFNlbnQ6IFdlZG5lc2RheSwgMTcgTWF5IDIwMjMgMTMuNTMNCj4gDQo+IE9uIFdlZCwgTWF5 IDE3LCAyMDIzIGF0IDExOjA14oCvQU0gTW9ydGVuIEJyw7hydXAgPG1iQHNtYXJ0c2hhcmVzeXN0 ZW1zLmNvbT4NCj4gd3JvdGU6DQo+ID4gPiBPbiBUdWUsIDE2IE1heSAyMDIzIDEzOjQxOjQ2ICsw MDAwDQo+ID4gPiBZYXNpbiBDQU5FUiA8eWFzaW5uY2FuZXJAZ21haWwuY29tPiB3cm90ZToNCj4g PiA+DQo+ID4gPiA+IEZyb206IFlhc2luIENBTkVSIDx5YXNpbi5jYW5lckB1bGFraGFiZXJsZXNt ZS5jb20udHI+DQo+ID4gPiA+DQo+ID4gPiA+IGFmdGVyIGEgd2hpbGUgd29ya2luZyBydGVfbWVt cG9vbF9hdmFpbF9jb3VudCBmdW5jdGlvbiByZXR1cm5zIGJpZ2dlcg0KPiA+ID4gPiB0aGFuIG1l bXBvb2wgc2l6ZSB0aGF0IGNhdXNlIG1pc2NhbGN1bGF0aW9uIHJ0ZV9tZW1wb29sX2luX3VzZV9j b3VudC4NCj4gPiA+ID4NCj4gPiA+ID4gaXQgaGVscHMgdG8gYXZvaWQgbWlzY2FsY3VsYXRpb24g cnRlX21lbXBvb2xfaW5fdXNlX2NvdW50Lg0KPiANCj4gSXMgdGhpcyBpc3N1ZSByZXByb2R1Y2Vk IHdpdGggYW4gYXBwbGljYXRpb24gb2YgdGhlIHJlcG9ydGVyLCBvciBhDQo+IERQREsgaW4tdHJl ZSBhcHBsaWNhdGlvbj8NCj4gDQo+IA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