> -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
> -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
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
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
4 matches
Mail list logo