vhost: enqueue/dequeue burst
authorHuawei Xie <huawei.xie@intel.com>
Wed, 8 Oct 2014 18:54:45 +0000 (02:54 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 13 Oct 2014 17:16:54 +0000 (19:16 +0200)
commita4fff3bba82b79637a25622652481c973fdb3c9f
tree1a917d816f36cb80733e8b6d92fae73e3dd3345b
parent830bea8bc4e10445273f6754a2ce9bb6b8bf662b
vhost: enqueue/dequeue burst

rte_vhost_enqueue_burst copies host packets to guest.
rte_vhost_enqueue_burst will call virtio_dev_rx and virtio_dev_merge_rx
respectively depending on whether merge-able feature is negotiated or not
in the vhost device.

virtio_dev_merge_tx is renamed to rte_vhost_dequeue_burst.
rte_vhost_dequeue_burst gets to-be-sent packets from guest.

Signed-off-by: Huawei Xie <huawei.xie@intel.com>
Acked-by: Changchun Ouyang <changchun.ouyang@intel.com>
[Thomas: merged patches]
lib/librte_vhost/rte_virtio_net.h
lib/librte_vhost/vhost_rxtx.c