[dpdk-dev] [PATCH v6 2/3] net/virtio: add packet injection method
Yuanhan Liu
yliu at fridaylinux.org
Mon Jan 8 14:03:34 CET 2018
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;
> };
More information about the dev
mailing list