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

2018-01-08 Thread Wang, Xiao W
> -Original Message- > From: Wang, Xiao W > Sent: Monday, January 8, 2018 11:12 PM > To: Yuanhan Liu > Cc: Bie, Tiwei ; dev@dpdk.org; > step...@networkplumber.org > Subject: RE: [PATCH v6 2/3] net/virtio: add packet injection method > > > > > -Original Message- > > From: Yuanh

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

2018-01-08 Thread Wang, Xiao W
> -Original Message- > From: Yuanhan Liu [mailto:y...@fridaylinux.org] > Sent: Monday, January 8, 2018 9:04 PM > To: Wang, Xiao W > Cc: Bie, Tiwei ; dev@dpdk.org; > step...@networkplumber.org > Subject: Re: [PATCH v6 2/3] net/virtio: add packet injection method > > On Sun, Jan 07, 2018

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

2018-01-08 Thread Yuanhan Liu
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

[dpdk-dev] [PATCH v6 2/3] net/virtio: add packet injection method

2018-01-06 Thread Xiao Wang
This patch adds dev_pause, dev_resume and inject_pkts api to allow driver to pause the worker threads and inject special packets into Tx queue. The next patch will be based on this. Signed-off-by: Xiao Wang --- drivers/net/virtio/virtio_ethdev.c | 56 + drive