summaryrefslogtreecommitdiff
path: root/lib/librte_vhost/rte_vdpa.h
diff options
context:
space:
mode:
authorXiaolong Ye <xiaolong.ye@intel.com>2018-09-29 05:47:46 +0800
committerFerruh Yigit <ferruh.yigit@intel.com>2018-10-11 18:53:49 +0200
commit0e0a7d38014153e252bed9ae53a47098e325f77d (patch)
tree5e50839048407eb61ace07ef654b82115bb33427 /lib/librte_vhost/rte_vdpa.h
parent65313f1a822a24524b01ea37f2b802322d1e7300 (diff)
downloaddpdk-0e0a7d38014153e252bed9ae53a47098e325f77d.zip
dpdk-0e0a7d38014153e252bed9ae53a47098e325f77d.tar.gz
dpdk-0e0a7d38014153e252bed9ae53a47098e325f77d.tar.xz
vhost: introduce API to get vDPA device number
It's used to get number of available registered vDPA devices. Signed-off-by: Xiaolong Ye <xiaolong.ye@intel.com> Acked-by: Xiao Wang <xiao.w.wang@intel.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Diffstat (limited to 'lib/librte_vhost/rte_vdpa.h')
-rw-r--r--lib/librte_vhost/rte_vdpa.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/librte_vhost/rte_vdpa.h b/lib/librte_vhost/rte_vdpa.h
index 90465ca..b8223e3 100644
--- a/lib/librte_vhost/rte_vdpa.h
+++ b/lib/librte_vhost/rte_vdpa.h
@@ -84,4 +84,7 @@ rte_vdpa_find_device_id(struct rte_vdpa_dev_addr *addr);
struct rte_vdpa_device * __rte_experimental
rte_vdpa_get_device(int did);
+/* Get current available vdpa device number */
+int __rte_experimental
+rte_vdpa_get_device_num(void);
#endif /* _RTE_VDPA_H_ */