> -----Original Message----- > From: Bie, Tiwei > Sent: Friday, November 24, 2017 1:39 PM > To: Wang, Xiao W <xiao.w.w...@intel.com> > Cc: dev@dpdk.org; y...@fridaylinux.org > Subject: Re: [dpdk-dev] [PATCH 1/2] net/virtio: make control queue thread- > safe > > On Fri, Nov 24, 2017 at 03:03:59AM -0800, Xiao Wang wrote: > [...] > > diff --git a/drivers/net/virtio/virtio_rxtx.h > > b/drivers/net/virtio/virtio_rxtx.h > > index 54f1e84..24e3026 100644 > > --- a/drivers/net/virtio/virtio_rxtx.h > > +++ b/drivers/net/virtio/virtio_rxtx.h > > @@ -84,6 +84,7 @@ struct virtnet_ctl { > > rte_iova_t virtio_net_hdr_mem; /**< hdr for each xmit packet */ > > uint16_t port_id; /**< Device port identifier. */ > > const struct rte_memzone *mz; /**< mem zone to populate CTL ring. > */ > > + rte_spinlock_t sl; /**< spinlock for > control queue. */ > > Please use spaces instead of (4 spaces) tabs between the code and comments.
Will change it in v2, thanks! BRs, Xiao > > Best regards, > Tiwei Bie