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 C86EA47D1 for ; Fri, 22 Jul 2016 16:02:07 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 22 Jul 2016 07:01:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,405,1464678000"; d="scan'208";a="1000536891" Received: from sie-lab-214-036.ir.intel.com (HELO silpixa00394365.ir.intel.com) ([10.237.214.36]) by orsmga001.jf.intel.com with ESMTP; 22 Jul 2016 07:01:17 -0700 From: Pablo de Lara To: dev@dpdk.org Cc: helin.zhang@intel.com, Pablo de Lara Date: Fri, 22 Jul 2016 15:02:00 +0100 Message-Id: <1469196122-168989-1-git-send-email-pablo.de.lara.guarch@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1469192923-168564-1-git-send-email-pablo.de.lara.guarch@intel.com> References: <1469192923-168564-1-git-send-email-pablo.de.lara.guarch@intel.com> Subject: [dpdk-dev] [PATCH v2 0/2] Safe tailq element removal in i40e driver 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, 22 Jul 2016 14:02:08 -0000 i40e driver was removing elements when iterating tailq lists with TAILQ_FOREACH macro, which is not safe. Instead, TAILQ_FOREACH_SAFE macro is used when removing/freeing these elements, which is defined in DPDK if it is not already defined (in FreeBSD). Changes in v2: - Modified second commit title Pablo de Lara (2): eal: add tailq safe iterator macro net/i40e: fix unsafe tailq element removal drivers/net/i40e/i40e_ethdev.c | 12 +++++++----- lib/librte_eal/common/include/rte_tailq.h | 8 ++++++++ 2 files changed, 15 insertions(+), 5 deletions(-) -- 2.7.4