[dpdk-dev] [PATCH 2/3] net/avf: remove spinlock functions

Wenzhuo Lu wenzhuo.lu at intel.com
Thu Jan 11 07:52:36 CET 2018


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 <wenzhuo.lu at intel.com>
---
 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



More information about the dev mailing list