On Sun, Jan 07, 2018 at 04:05:12AM -0800, Xiao Wang wrote:
> +     /*
> +      * App management thread and virtio interrupt handler thread
> +      * both can change the 'started' flag, this lock is meant to
> +      * avoid such a contention.
> +      */
> +     rte_spinlock_t state_lock;

Why not turning the "started" to atomic type, so that you don't need
the lock?

        --yliu
> +     struct rte_mbuf **inject_pkts;
>  
>       struct virtqueue **vqs;
>  };

Reply via email to