Hi,
> -Original Message-
> From: Bie, Tiwei
> Sent: Saturday, January 6, 2018 2:01 AM
> To: Wang, Xiao W
> Cc: dev@dpdk.org; y...@fridaylinux.org; step...@networkplumber.org
> Subject: Re: [PATCH v5 2/3] net/virtio: add packet injection method
>
> On Fri, Jan 05, 2018 at 08:46:56AM -0800
On Fri, Jan 05, 2018 at 08:46:56AM -0800, Xiao Wang wrote:
[...]
> +/*
> + * Recover hw state to let worker thread continue.
> + */
> +void
> +virtio_dev_resume(struct rte_eth_dev *dev)
> +{
> + struct virtio_hw *hw = dev->data->dev_private;
> +
> + hw->started = 1;
> + rte_spinlock_unl
This patch adds dev_pause, dev_resume and inject_pkts api to allow
driver to pause the worker thread 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 | 51 +
driver
3 matches
Mail list logo