From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wenzhuo Lu Subject: [PATCH 2/3] net/avf: remove spinlock functions Date: Thu, 11 Jan 2018 14:52:36 +0800 Message-ID: <1515653557-63430-3-git-send-email-wenzhuo.lu@intel.com> References: <1515653557-63430-1-git-send-email-wenzhuo.lu@intel.com> Cc: dev@dpdk.org, Wenzhuo Lu To: ferruh.yigit@intel.com Return-path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id F37241B1E7 for ; Thu, 11 Jan 2018 07:50:42 +0100 (CET) In-Reply-To: <1515653557-63430-1-git-send-email-wenzhuo.lu@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Move the spinlock functions to the base code, and make them inline. This patch is for next-net and want to be squashed to the commit in fixes tag. Fixes: fcb27233824a ("net/avf: initialization of avf PMD") Signed-off-by: Wenzhuo Lu --- drivers/net/avf/avf_ethdev.c | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/drivers/net/avf/avf_ethdev.c b/drivers/net/avf/avf_ethdev.c index 0ed6e1c..f596e6b 100644 --- a/drivers/net/avf/avf_ethdev.c +++ b/drivers/net/avf/avf_ethdev.c @@ -409,27 +409,3 @@ enum avf_status_code return AVF_SUCCESS; } - -/* spinlock func for base code */ -void -avf_init_spinlock_d(struct avf_spinlock *sp) -{ - rte_spinlock_init(&sp->spinlock); -} - -void -avf_acquire_spinlock_d(struct avf_spinlock *sp) -{ - rte_spinlock_lock(&sp->spinlock); -} - -void -avf_release_spinlock_d(struct avf_spinlock *sp) -{ - rte_spinlock_unlock(&sp->spinlock); -} - -void -avf_destroy_spinlock_d(__rte_unused struct avf_spinlock *sp) -{ -} -- 1.9.3