Re: [dpdk-dev] [PATCH v6 1/3] net/virtio: make control queue thread-safe

2018-01-08 Thread Wang, Xiao W
Hi, > -Original Message- > From: Yuanhan Liu [mailto:y...@fridaylinux.org] > Sent: Monday, January 8, 2018 9:07 PM > To: Wang, Xiao W > Cc: Bie, Tiwei ; dev@dpdk.org; > step...@networkplumber.org > Subject: Re: [PATCH v6 1/3] net/virtio: make control queue thread-safe > > On Sun, Jan 07,

Re: [dpdk-dev] [PATCH v6 1/3] net/virtio: make control queue thread-safe

2018-01-08 Thread Yuanhan Liu
On Sun, Jan 07, 2018 at 04:05:11AM -0800, Xiao Wang wrote: > diff --git a/drivers/net/virtio/virtio_rxtx.h > b/drivers/net/virtio/virtio_rxtx.h > index 54f1e849b..71b5798b0 100644 > --- a/drivers/net/virtio/virtio_rxtx.h > +++ b/drivers/net/virtio/virtio_rxtx.h > @@ -84,6 +84,7 @@ struct virtnet_c

[dpdk-dev] [PATCH v6 1/3] net/virtio: make control queue thread-safe

2018-01-06 Thread Xiao Wang
The virtio_send_command function may be called from app's configuration routine, but also from an interrupt handler called when live migration is done on the backup side. So this patch makes control queue thread-safe first. Signed-off-by: Xiao Wang --- drivers/net/virtio/virtio_ethdev.c | 7