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 9C17DA0613 for ; Fri, 27 Sep 2019 12:42:52 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 670FD1BEFA; Fri, 27 Sep 2019 12:42:51 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by dpdk.org (Postfix) with ESMTP id A70ED1BEF0 for ; Fri, 27 Sep 2019 12:42: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: Fri, 27 Sep 2019 12:42:47 +0200 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35B42AD5@smartserver.smartshare.dk> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [RFC] mbuf: rte_pktmbuf_free() optimized for multi-seg packets Thread-Index: AdV1IE2Jg0F28AGlR4O74LjdZtB2gQ== From: =?utf-8?B?TW9ydGVuIEJyw7hydXA=?= To: Subject: [dpdk-dev] [RFC] mbuf: rte_pktmbuf_free() optimized for multi-seg packets 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" SGkgYWxsLA0KDQpUaGUgcnRlX3BrdG1idWZfZnJlZSgpIGZ1bmN0aW9uIGNvdWxkIGJlIG9wdGlt aXplZCBieSBmcmVlaW5nIG11bHRpcGxlIHNlZ21lbnRzIGluIGJ1bGsgdXNpbmcgcnRlX21lbXBv b2xfcHV0X2J1bGsoKS4NCg0KSSBnb3QgdGhpcyBpZGVhIHdoaWxlIG9wdGltaXppbmcgdGhlIHJ0 ZV9wa3RtYnVmX2Zy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