From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 428F847D0 for ; Fri, 22 Jul 2016 15:08:00 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP; 22 Jul 2016 06:08:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,405,1464678000"; d="scan'208";a="851260729" Received: from sie-lab-214-036.ir.intel.com (HELO silpixa00394365.ir.intel.com) ([10.237.214.36]) by orsmga003.jf.intel.com with ESMTP; 22 Jul 2016 06:07:59 -0700 From: Pablo de Lara To: dev@dpdk.org Cc: helin.zhang@intel.com, Pablo de Lara Date: Fri, 22 Jul 2016 14:08:41 +0100 Message-Id: <1469192923-168564-1-git-send-email-pablo.de.lara.guarch@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-dev] [PATCH 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 13:08:00 -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). Pablo de Lara (2): eal: add tailq safe iterator macro net/i40e: avoid unsafe tailq element removal drivers/net/i40e/i40e_ethdev.c | 12 +++++++----- lib/librte_eal/common/include/rte_tailq.h | 11 +++++++++++ 2 files changed, 18 insertions(+), 5 deletions(-) -- 2.7.4