net/virtio: add packet injection method
authorXiao Wang <xiao.w.wang@intel.com>
Wed, 10 Jan 2018 01:23:53 +0000 (09:23 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commit1978a9dc57f0e9bd83c64c31ec99a8869ab5a133
treef416d2734abcc1a79474bff6b1bfa1c6c5d7828f
parenta2ffb87b1b60ded74a5e73be69503065faa827c7
net/virtio: add packet injection method

This patch adds dev_pause, dev_resume and inject_pkts APIs 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 <xiao.w.wang@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_ethdev.c
drivers/net/virtio/virtio_ethdev.h
drivers/net/virtio/virtio_pci.h
drivers/net/virtio/virtio_rxtx.c
drivers/net/virtio/virtio_rxtx_simple.c