From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH v6 02/14] net/avf: initialization of avf PMD Date: Wed, 10 Jan 2018 09:17:33 -0800 Message-ID: <20180110091733.229a39ad@xeon-e3> References: <1515388414-16214-1-git-send-email-wenzhuo.lu@intel.com> <1515564961-79227-1-git-send-email-wenzhuo.lu@intel.com> <1515564961-79227-3-git-send-email-wenzhuo.lu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, Jingjing Wu To: Wenzhuo Lu Return-path: Received: from mail-pg0-f65.google.com (mail-pg0-f65.google.com [74.125.83.65]) by dpdk.org (Postfix) with ESMTP id 4AB8E1B1D9 for ; Wed, 10 Jan 2018 18:17:37 +0100 (CET) Received: by mail-pg0-f65.google.com with SMTP id q67so11307857pga.9 for ; Wed, 10 Jan 2018 09:17:37 -0800 (PST) In-Reply-To: <1515564961-79227-3-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" On Wed, 10 Jan 2018 14:15:49 +0800 Wenzhuo Lu wrote: > +/* 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) > +{ > +} You might want to inline these (in a header file) if in critical path.