On Wed, 10 Jan 2018 14:15:49 +0800
Wenzhuo Lu <wenzhuo...@intel.com> 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.

Reply via email to