From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id D24112BD8 for ; Mon, 29 Aug 2016 18:55:01 +0200 (CEST) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP; 29 Aug 2016 09:54:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,597,1470726000"; d="scan'208";a="2376638" Received: from dpdk-test-2.inn.intel.com ([10.125.24.191]) by orsmga004.jf.intel.com with ESMTP; 29 Aug 2016 09:54:41 -0700 From: Yury Kylulin To: helin.zhang@intel.com, konstantin.ananyev@intel.com, jingjing.wu@intel.com Cc: wenzhuo.lu@intel.com, dev@dpdk.org, Yury Kylulin Date: Mon, 29 Aug 2016 19:50:46 +0300 Message-Id: <1472489448-15911-1-git-send-email-yury.kylulin@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-dev] [PATCH 0/2] fix mbufs leakage during Rx queue release on ixgbe/i40e X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2016 16:55:02 -0000 This patch set fixes problem when mbufs are not released back to the original memory pool during Rx queue relese call leading to mbufs "leakage". This issue happens when device stop (rte_eth_dev_stop()) will be called after device start (rte_eth_dev_start()) without any incoming packets received since device start. In this case both rxq->rx_tail and rxq->rxrearm_start equal to 0 and release cycle will not be executed. On the next device start (rte_eth_dev_start()) new set of mbufs for the RX queue will be allocated. Yury Kylulin (2): net/ixgbe: fix mbufs leakage during Rx queue release net/i40e: fix mbufs leakage during Rx queue release drivers/net/i40e/i40e_rxtx_vec.c | 16 ++++++++++++++-- drivers/net/ixgbe/ixgbe_rxtx_vec_common.h | 16 ++++++++++++++-- 2 files changed, 28 insertions(+), 4 deletions(-) -- 2.7.4