From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dror Birkman Subject: PCAP memory leak in freeing jumbo frames Date: Thu, 3 Nov 2016 11:35:14 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: Nicolas Pernas Maradei , ferruh.yigit@intel.com To: dev@dpdk.org Return-path: Received: from mail-qt0-f177.google.com (mail-qt0-f177.google.com [209.85.216.177]) by dpdk.org (Postfix) with ESMTP id 1092329CA for ; Thu, 3 Nov 2016 10:35:15 +0100 (CET) Received: by mail-qt0-f177.google.com with SMTP id c47so24407407qtc.2 for ; Thu, 03 Nov 2016 02:35:15 -0700 (PDT) List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi, I have a huge memory leak when I release mbufs allocated by eth_pcap_rx_jumbo(). I use rte_mempool_put_bulk() to release the mbufs. To my horror I found out it puts back to the mempool only the head mbuf and not its segments! I know rte_pktmbuf_free() frees the mbuf and all it segments, but afaik it is not thread safe. What is the thread safe way to free mbufs (preferably in bulk) and their segments? TIA, Dror