From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 00CC0A04FB for ; Tue, 9 Jun 2020 09:27:40 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E06DB2A62; Tue, 9 Jun 2020 09:27:39 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 55CD3276C; Tue, 9 Jun 2020 09:27:36 +0200 (CEST) IronPort-SDR: jJm2YjkbWIYHZ0SGX7t8V4gUbxXFLKfevtnL7jvxZtJIeN8y/xBh8dJddraXQZAV0WinccVMyl NWcBVL/rMW+g== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jun 2020 00:27:35 -0700 IronPort-SDR: 7t40Juja5FaWvkgHnIfM698avSlAiOQmoKs5bHXWehQwD/OrajZAcQRNnPi6Ssij53zA5xQLy7 1xh20FAU3JnQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,490,1583222400"; d="scan'208";a="472980513" Received: from dpdk_yexl_af_xdp.sh.intel.com ([10.67.119.201]) by fmsmga005.fm.intel.com with ESMTP; 09 Jun 2020 00:27:30 -0700 From: Xiaolong Ye To: Olivier Matz , Thomas Monjalon , Konstantin Ananyev Cc: dev@dpdk.org, haiyue.wang@intel.com, Xiaolong Ye , stable@dpdk.org Date: Tue, 9 Jun 2020 15:12:56 +0800 Message-Id: <20200609071256.59837-1-xiaolong.ye@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200609052955.59196-1-xiaolong.ye@intel.com> References: <20200609052955.59196-1-xiaolong.ye@intel.com> Subject: [dpdk-stable] [PATCH v2] mbuf: remove unused next member in dyn flag/field X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" TAILQ_ENTRY next is not needed in struct mbuf_dynfield_elt and mbuf_dynflag_elt, since they are actually chained by rte_tailq_entry's next field when calling TAILQ_INSERT_TAIL(mbuf_dynfield/dynflag_list, te, next). Fixes: 4958ca3a443a ("mbuf: support dynamic fields and flags") Cc: stable@dpdk.org Signed-off-by: Xiaolong Ye Acked-by: Olivier Matz --- V2: update subject as Olivier suggested. lib/librte_mbuf/rte_mbuf_dyn.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/librte_mbuf/rte_mbuf_dyn.c b/lib/librte_mbuf/rte_mbuf_dyn.c index d6931f847..953e3ec31 100644 --- a/lib/librte_mbuf/rte_mbuf_dyn.c +++ b/lib/librte_mbuf/rte_mbuf_dyn.c @@ -19,7 +19,6 @@ #define RTE_MBUF_DYN_MZNAME "rte_mbuf_dyn" struct mbuf_dynfield_elt { - TAILQ_ENTRY(mbuf_dynfield_elt) next; struct rte_mbuf_dynfield params; size_t offset; }; @@ -31,7 +30,6 @@ static struct rte_tailq_elem mbuf_dynfield_tailq = { EAL_REGISTER_TAILQ(mbuf_dynfield_tailq); struct mbuf_dynflag_elt { - TAILQ_ENTRY(mbuf_dynflag_elt) next; struct rte_mbuf_dynflag params; unsigned int bitnum; }; -- 2.17.1