From: Huawei Xie Date: Wed, 8 Oct 2014 18:54:49 +0000 (+0800) Subject: vhost: expose register and start functions X-Git-Tag: spdx-start~10292 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e5c2ded5033f0375eeca80950ac4969b636dcf0f;p=dpdk.git vhost: expose register and start functions Rename register_cuse_device as rte_vhost_driver_register API. Rename start_session_loop as rte_vhost_driver_session_start API. Signed-off-by: Huawei Xie Acked-by: Changchun Ouyang --- diff --git a/lib/librte_vhost/vhost-net-cdev.c b/lib/librte_vhost/vhost-net-cdev.c index 4eeb676f70..d9d24bc4e6 100644 --- a/lib/librte_vhost/vhost-net-cdev.c +++ b/lib/librte_vhost/vhost-net-cdev.c @@ -302,7 +302,7 @@ static const struct cuse_lowlevel_ops vhost_net_ops = { * also passed when the device is registered in main.c. */ int -register_cuse_device(const char *base_name) +rte_vhost_driver_register(const char *dev_name) { struct cuse_info cuse_info; char device_name[PATH_MAX] = ""; @@ -353,7 +353,7 @@ register_cuse_device(const char *base_name) * The CUSE session is launched allowing the application to receive open, release and ioctl calls. */ int -start_cuse_session_loop(void) +rte_vhost_driver_session_start(void) { fuse_session_loop(session); diff --git a/lib/librte_vhost/vhost-net-cdev.h b/lib/librte_vhost/vhost-net-cdev.h index 0db8f0a9af..fa67caf720 100644 --- a/lib/librte_vhost/vhost-net-cdev.h +++ b/lib/librte_vhost/vhost-net-cdev.h @@ -77,8 +77,6 @@ struct vhost_net_device_ops { int (* reset_owner) (struct vhost_device_ctx); }; -int register_cuse_device(const char *base_name, int index, struct vhost_net_device_ops const * const); -int start_cuse_session_loop(void); struct vhost_net_device_ops const *get_virtio_net_callbacks(void); #endif /* _VHOST_NET_CDEV_H_ */