git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vhost: replace vDPA device ID in Vhost
[dpdk.git]
/
lib
/
librte_vhost
/
rte_vhost.h
diff --git
a/lib/librte_vhost/rte_vhost.h
b/lib/librte_vhost/rte_vhost.h
index
d43669f
..
2fbc364
100644
(file)
--- a/
lib/librte_vhost/rte_vhost.h
+++ b/
lib/librte_vhost/rte_vhost.h
@@
-90,6
+90,7
@@
extern "C" {
#define VHOST_USER_F_PROTOCOL_FEATURES 30
#endif
#define VHOST_USER_F_PROTOCOL_FEATURES 30
#endif
+struct rte_vdpa_device;
/**
* Information relating to memory regions including offsets to
/**
* Information relating to memory regions including offsets to
@@
-402,14
+403,15
@@
int rte_vhost_driver_unregister(const char *path);
*
* @param path
* The vhost-user socket file path
*
* @param path
* The vhost-user socket file path
- * @param d
id
- *
Device id
+ * @param d
ev
+ *
vDPA device pointer
* @return
* 0 on success, -1 on failure
*/
__rte_experimental
int
* @return
* 0 on success, -1 on failure
*/
__rte_experimental
int
-rte_vhost_driver_attach_vdpa_device(const char *path, int did);
+rte_vhost_driver_attach_vdpa_device(const char *path,
+ struct rte_vdpa_device *dev);
/**
* Unset the vdpa device id
/**
* Unset the vdpa device id
@@
-429,11
+431,11
@@
rte_vhost_driver_detach_vdpa_device(const char *path);
* @param path
* The vhost-user socket file path
* @return
* @param path
* The vhost-user socket file path
* @return
- *
Device id, -1
on failure
+ *
vDPA device pointer, NULL
on failure
*/
__rte_experimental
*/
__rte_experimental
-int
-rte_vhost_driver_get_vdpa_device
_id
(const char *path);
+struct rte_vdpa_device *
+rte_vhost_driver_get_vdpa_device(const char *path);
/**
* Set the feature bits the vhost-user driver supports.
/**
* Set the feature bits the vhost-user driver supports.
@@
-977,11
+979,11
@@
rte_vhost_extern_callback_register(int vid,
* @param vid
* vhost device id
* @return
* @param vid
* vhost device id
* @return
- *
device id
+ *
vDPA device pointer on success, NULL on failure
*/
__rte_experimental
*/
__rte_experimental
-int
-rte_vhost_get_vdpa_device
_id
(int vid);
+struct rte_vdpa_device *
+rte_vhost_get_vdpa_device(int vid);
/**
* Notify the guest that should get virtio configuration space from backend.
/**
* Notify the guest that should get virtio configuration space from backend.