Thread (112 messages) 112 messages, 8 authors, 2018-01-21

Re: [PATCH v6 2/3] net/virtio: add packet injection method

From: Yuanhan Liu <hidden>
Date: 2018-01-08 13:03:53

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;
 };
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help