vhost: get internal ops when registering
authorHuawei Xie <huawei.xie@intel.com>
Wed, 8 Oct 2014 18:54:48 +0000 (02:54 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 13 Oct 2014 17:16:54 +0000 (19:16 +0200)
commitf7825769590b6688e33cc59798e39ec10f88879e
tree37112287bffcf1daa890f44020f4ebf9a86f1ca4
parent17b8320a3e11e146868906d0082b6e402d5f2255
vhost: get internal ops when registering

vhost_net_device_ops is internal implementation in vhost lib.
register_cuse_device will be vhost driver register API.
There is no need for it to know the internal vhost ops.
Instead, that ops is retrieved in register_cuse_device
through get_virtio_net_callbacks.

Signed-off-by: Huawei Xie <huawei.xie@intel.com>
Acked-by: Changchun Ouyang <changchun.ouyang@intel.com>
lib/librte_vhost/rte_virtio_net.h
lib/librte_vhost/vhost-net-cdev.c
lib/librte_vhost/vhost-net-cdev.h