From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 03 Jul 2015 08:40:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,400,1432623600"; d="scan'208";a="757967127" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga002.jf.intel.com with ESMTP; 03 Jul 2015 08:40:07 -0700 Received: from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com [10.237.217.45]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id t63Fe6d1013854; Fri, 3 Jul 2015 16:40:06 +0100 Received: from sivswdev01.ir.intel.com (localhost [127.0.0.1]) by sivswdev01.ir.intel.com with ESMTP id t63Fe6FF022293; Fri, 3 Jul 2015 16:40:06 +0100 Received: (from bricha3@localhost) by sivswdev01.ir.intel.com with id t63Fe67c022289; Fri, 3 Jul 2015 16:40:06 +0100 From: Bruce Richardson To: dev@dpdk.org Date: Fri, 3 Jul 2015 16:40:04 +0100 Message-Id: <1435938006-22254-1-git-send-email-bruce.richardson@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dpdk-dev] [PATCH 0/2] Fix crash with vpmd and mbuf debug 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: Fri, 03 Jul 2015 15:40:09 -0000 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