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 2AD6CA2F6B for ; Tue, 8 Oct 2019 22:12:50 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9BA451C06B; Tue, 8 Oct 2019 22:12:49 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by dpdk.org (Postfix) with ESMTP id 274C01C033 for ; Tue, 8 Oct 2019 22:12:48 +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: Tue, 8 Oct 2019 22:12:45 +0200 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35C60B62@smartserver.smartshare.dk> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [dpdk-dev] [PATCH v4 1/1] mbuf: add bulk free function Thread-Index: AdV9/XY1mxM7gpVlQlmcRbK7M+WeBAAAjnrQ References: <20191007101427.16191-1-mb@smartsharesystems.com> <20191007101427.16191-2-mb@smartsharesystems.com> From: =?utf-8?B?TW9ydGVuIEJyw7hydXA=?= To: "Andrew Rybchenko" , Cc: , , , , , Subject: Re: [dpdk-dev] [PATCH v4 1/1] mbuf: add bulk free function 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" PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBkZXYgW21haWx0bzpkZXYtYm91 bmNlc0BkcGRrLm9yZ10gT24gQmVoYWxmIE9mIEFuZHJldyBSeWJjaGVua28NCj4gU2VudDogVHVl c2RheSwgT2N0b2JlciA4L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