From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: [PATCH 0/2] Fix crash with vpmd and mbuf debug Date: Fri, 3 Jul 2015 16:40:04 +0100 Message-ID: <1435938006-22254-1-git-send-email-bruce.richardson@intel.com> To: dev@dpdk.org Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id E45025A95 for ; Fri, 3 Jul 2015 17:40:08 +0200 (CEST) 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" When mbuf debug support is turned on in the build time config, crashes will occur when clearing up the RX/TX rings, if the 10G vector PMD is in use. This error can be reproduced using testpmd. This patchset makes the setup/teardown code easier to debug by marking "cold" code paths as such, and then fixes the errors by checking for already-freed mbufs when clearing the rings. Bruce Richardson (2): ixgbe: add "cold" attribute to setup/teardown fns ixgbe: check mbuf refcnt when clearing RX/TX ring drivers/net/ixgbe/ixgbe_rxtx.c | 62 ++++++++++++++++++++------------------ drivers/net/ixgbe/ixgbe_rxtx_vec.c | 24 ++++++++++----- 2 files changed, 48 insertions(+), 38 deletions(-) -- 2.4.3