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

2018-01-05 Thread Tiwei Bie
On Fri, Jan 05, 2018 at 12:27:37PM -0800, Stephen Hemminger wrote: > On Thu, 4 Jan 2018 07:59:37 -0800 > Xiao Wang wrote: > > > 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 wi

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

2018-01-05 Thread Stephen Hemminger
On Thu, 4 Jan 2018 07:59:37 -0800 Xiao Wang wrote: > 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 Why is this needed? It isn

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

2018-01-03 Thread Tiwei Bie
On Thu, Jan 04, 2018 at 07:59:37AM -0800, Xiao Wang wrote: [...] > +void > +virtio_inject_pkts(struct rte_eth_dev *dev, struct virtnet_tx *txvq, > + struct rte_mbuf **buf, int count) > +{ > + struct virtio_hw *hw = dev->data->dev_private; > + > + hw->special_buf = buf; I think

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

2018-01-03 Thread Xiao Wang
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 | 44 + driver