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 5C4934608F; Wed, 15 Jan 2025 10:38:48 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E3C3C4025F; Wed, 15 Jan 2025 10:38:47 +0100 (CET) Received: from dkmailrelay1.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 491BD4003C for ; Wed, 15 Jan 2025 10:38:46 +0100 (CET) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesys.local [192.168.4.10]) by dkmailrelay1.smartsharesystems.com (Postfix) with ESMTP id 051EC20582; Wed, 15 Jan 2025 10:38:46 +0100 (CET) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 Subject: RE: [PATCH v2] mbuf: add fast free bulk function X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Wed, 15 Jan 2025 10:38:44 +0100 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35E9F9B3@smartserver.smartshare.dk> In-Reply-To: <02835d2e-6acb-45df-8897-4590360be861@huawei.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH v2] mbuf: add fast free bulk function Thread-Index: AdtnGgj0noBfw1HvT3GCY03Zchno6QAEtL/Q References: <20250114162544.125448-1-mb@smartsharesystems.com> <20250114163951.125667-1-mb@smartsharesystems.com> <02835d2e-6acb-45df-8897-4590360be861@huawei.com> From: =?UTF-8?B?TW9ydGVuIEJyw7hydXA=?= To: "huangdengdui" , Cc: "Thomas Monjalon" , "Ferruh Yigit" , "Andrew Rybchenko" , "Slava Ovsiienko" , "Shahaf Shuler" , "Olivier Matz" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-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