vhost: remove useless code for Rx/Tx
authorHuawei Xie <huawei.xie@intel.com>
Wed, 8 Oct 2014 18:54:37 +0000 (02:54 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 13 Oct 2014 17:11:38 +0000 (19:11 +0200)
commitf14c0b4db8dea334e10f279de0a1ab711a5bdaf8
tree62d22e00e7724f44e7b795d632d7897871fd811e
parent5c7a80aec366009214bd9f30a1fc7e3389fa93fb
vhost: remove useless code for Rx/Tx

Remove all other codes and only keep virtio_dev_rx, copy_from_mbuf_to_vring,
virtio_dev_merge_rx, virtio_dev_merge_tx.

Previous vhost merge-able feature introduces another version of tx function,
virtio_dev_merge_tx. Actually it is not related to merge-able feature but is
the fix for memcpy between mbuf and vring descriptors.
This lib will create the tx functions based on virtio_dev_merge_tx.

Signed-off-by: Huawei Xie <huawei.xie@intel.com>
Acked-by: Changchun Ouyang <changchun.ouyang@intel.com>
[Thomas: do not remove code used or moved later]
lib/librte_vhost/vhost_rxtx.c